5 ms·
> OpenDUNE is written in ANSI C (C89) Wow! That's badass and hardcore! Not even C++ or C99. Gotta respect that. No clean header for fixed size types (uint32_t)
by Kenji 8y ago
> OpenDUNE is written in ANSI C (C89)
Wow! That's badass and hardcore! Not even C++ or C99. Gotta respect that. No clean header for fixed size types (uint32_t), no vectors, no references. Coding like that is tough.
- jcl 8y agoIt's a by-hand recoding of a C decompilation of the original game's binary. Using C++ -- or any abstraction that departs from the original code or memory structure -- would actually have made the process more difficult, at least initially. And given that the project was started using MSVC in 2009, C99 would not have been an option at the time. The history shows the level of dedication that must have been needed. E.g.: https://github.com/OpenDUNE/OpenDUNE/commit/eed60258 https://github.com/OpenDUNE/OpenDUNE/commit/eed60258