Skip to content

Commit

Permalink
allow some c99
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Sep 7, 2016
1 parent 8a1f177 commit b6efe6e
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions pep-0007.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,22 @@ particular rule:
C dialect
=========

* Use ANSI/ISO standard C (the 1989 version of the standard). This
means (amongst many other things) that all declarations must be at
the top of a block (not necessarily at the top of function).
* Python versions before 3.6 use ANSI/ISO standard C (the 1989 version
of the standard). This means (amongst many other things) that all
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
without trailing backslashes).
Expand Down

0 comments on commit b6efe6e

Please sign in to comment.