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

Avoiding directives that break statements. #353

Closed
wants to merge 1 commit into from
Closed

Avoiding directives that break statements. #353

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 29, 2015

A suggestion to compile entire statements and expressions, as suggested by code style guidelines from the Linux Kernel and practitioners.

It might improve code understanding, maintainability and error-proneness.

@greghudson
Copy link
Member

I think at this point we can just assume that "b" is supported, and get rid of the ANSI_STDIO conditional. (It's used in a few other places in the tree where we open binary files.) Pre-C89 compatibility was probably a legitimate concern when that code was first written, but not any more.

@greghudson
Copy link
Member

PR #354 supersedes this, so I'm closing it. Thanks for pointing out the problem area.

@greghudson greghudson closed this Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants