-
Notifications
You must be signed in to change notification settings - Fork 460
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
Why C11? #33
Comments
On Windows you can't go with C99, you have to go all the way back to C89 if you want to use Microsoft's C compiler and not fake it as a C++ project, which we weren't willing to do. For other platforms, we saw no problem between targeting C99 and C11, so we simply chose the later standard in case we needed things like the memory alignment directives for mobile (we didn't, but that was one of the reasons). |
Really? I thought even Microsoft caught up to C99 by now. No worries either way, just noticed a bunch of C89 style code in here. Variable declarations at the top of the function, no use of variable length arrays (see #32) . Was wondering if it was intentional. |
@sahrk built the original core of this library, which has a loose connection to DGGRID, and that code is C89, so that's where that came from. We have refactored code and modernized it when digging into it, but we haven't attempted to systematically do so. |
Got it. Thanks. |
Does this library use any C11 feature? Mostly out of curiosity, but also because people are more likely to get along with a C99 library than a C11 library (especially true on Windows from what I gather).
The text was updated successfully, but these errors were encountered: