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

Fix an issue with the C preprocessor and files which don't end in newlines. #311

Merged
merged 12 commits into from
Oct 18, 2024

Conversation

davidgiven
Copy link
Owner

Previously, if the last line of a file was a preprocessor directive and did not end in a newline, very strange things including crashing would happen. This fixes things so that files are always treated like they end in a newline, even if they don't.

Fixes: #310

@davidgiven davidgiven merged commit 14680fd into default Oct 18, 2024
2 of 6 checks passed
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.

C preprocessor doesn't handle the last line of a file not having a newline properly and crashes
1 participant