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

Compile-time-if related refactoring #429

Closed
wants to merge 3 commits into from
Closed

Compile-time-if related refactoring #429

wants to merge 3 commits into from

Conversation

Akuli
Copy link
Owner

@Akuli Akuli commented Dec 6, 2023

  • Support not, and, or operators in compile-time if statements. For example, if WINDOWS or MACOS:
  • Move platform-specific errno stuff from _windows_startup.jou/_macos_startup.jou to errno.jou
  • Move stdin/stdout/stderr handling from _windows_startup.jou and _macos_startup.jou into a new file _io_init.jou
  • Delete _windows_startup.jou and _macos_startup.jou

@Akuli
Copy link
Owner Author

Akuli commented Dec 7, 2023

This breaks self-hosted compiler, but only on macos, because global variables are not implemented yet and IO on macos needs them. I think I'll merge this after I add support for global variables.

@Akuli Akuli marked this pull request as draft December 7, 2023 17:33
@Akuli Akuli closed this Jan 7, 2025
@Akuli Akuli deleted the less-magic branch January 7, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant