allow some c99

This commit is contained in:
Benjamin Peterson 2016-09-07 10:55:40 -07:00
parent 8a1f17771b
commit b6efe6e06f
1 changed files with 16 additions and 3 deletions

View File

@ -31,9 +31,22 @@ particular rule:
C dialect C dialect
========= =========
* Use ANSI/ISO standard C (the 1989 version of the standard). This * Python versions before 3.6 use ANSI/ISO standard C (the 1989 version
means (amongst many other things) that all declarations must be at of the standard). This means (amongst many other things) that all
the top of a block (not necessarily at the top of function). declarations must be at the top of a block (not necessarily at the
top of function).
* Python versions greater than or equal to 3.6 use C89 with several
select C99 features:
- Standard integer types in ``<stdint.h>`` and ``<inttypes.h>``
- ``static inline`` functions
- designated initializers (especially nice for type declarations)
- intermingled declarations
- booleans
Future C99 features may be added to this list in the future
depending on compiler support (mostly significantly MSVC).
* Don't use GCC extensions (e.g. don't write multi-line strings * Don't use GCC extensions (e.g. don't write multi-line strings
without trailing backslashes). without trailing backslashes).