Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Peanut-GB strictly C89 #85

Open
deltabeard opened this issue May 26, 2023 · 1 comment
Open

Make Peanut-GB strictly C89 #85

deltabeard opened this issue May 26, 2023 · 1 comment
Labels
diff: easy Easy difficulty. enhancement New feature or request feat: low-impact A low impact feature; not important but desired.
Milestone

Comments

@deltabeard
Copy link
Owner

deltabeard commented May 26, 2023

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 deltabeard added enhancement New feature or request diff: easy Easy difficulty. feat: low-impact A low impact feature; not important but desired. labels May 26, 2023
@deltabeard deltabeard added this to the v2 milestone May 26, 2023
@deltabeard
Copy link
Owner Author

2471c89
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diff: easy Easy difficulty. enhancement New feature or request feat: low-impact A low impact feature; not important but desired.
Projects
None yet
Development

No branches or pull requests

1 participant