Peanut-GB icon indicating copy to clipboard operation
Peanut-GB copied to clipboard

Make Peanut-GB strictly C89

Open deltabeard opened this issue 1 year ago • 1 comments

This means:

  • Not declaring variables in for-loop initialiser.
  • Not declaring variables in the middle of a block.
  • Not using stdint.h.
  • C++ style single-line comments.

Peanut-GB must compile with Visual C++ 6 (VC6).

deltabeard avatar May 26 '23 13:05 deltabeard

2471c89d2ada67dfffe676c5509db13ea7cf21da Compiles with MSVC 2. Not strictly C89 compliant though, but I'm not sure it's necessary and useful features, such as bitfields of various types, and anonymous structs aren't available in C89 but are still supported in ancient compilers like MSVC 2.

deltabeard avatar Jun 07 '23 10:06 deltabeard