Skip to content

Commit b6efe6e

Browse files
committed
allow some c99
1 parent 8a1f177 commit b6efe6e

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

pep-0007.txt

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,22 @@ particular rule:
3131
C dialect
3232
=========
3333

34-
* Use ANSI/ISO standard C (the 1989 version of the standard). This
35-
means (amongst many other things) that all declarations must be at
36-
the top of a block (not necessarily at the top of function).
34+
* Python versions before 3.6 use ANSI/ISO standard C (the 1989 version
35+
of the standard). This means (amongst many other things) that all
36+
declarations must be at the top of a block (not necessarily at the
37+
top of function).
38+
39+
* Python versions greater than or equal to 3.6 use C89 with several
40+
select C99 features:
41+
42+
- Standard integer types in ``<stdint.h>`` and ``<inttypes.h>``
43+
- ``static inline`` functions
44+
- designated initializers (especially nice for type declarations)
45+
- intermingled declarations
46+
- booleans
47+
48+
Future C99 features may be added to this list in the future
49+
depending on compiler support (mostly significantly MSVC).
3750

3851
* Don't use GCC extensions (e.g. don't write multi-line strings
3952
without trailing backslashes).

0 commit comments

Comments
 (0)