[Python-Dev] libmpdec already uses and compiles with -std=c99 -pedantic everywhere (original) (raw)
Brett Cannon brett at python.org
Sun Aug 7 13:07:37 EDT 2016
- Previous message (by thread): [Python-Dev] libmpdec already uses and compiles with -std=c99 -pedantic everywhere
- Next message (by thread): [Python-Dev] Review request: issue 10910, pyport.h causes trouble for C++ extensions on BSDs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, 7 Aug 2016 at 08:24 Stefan Krah <stefan at bytereef.org> wrote:
The following C99 features are supported by any buildbot compiler (including obscure ones on snakebite): - stdint.h - static inline functions in header files - extern inline functions (not really necessary for CPython) - variadic macros
I'd like to add: - standard conforming C99 spelling of the "struct hack" (supported by gcc since I can remember). Our current way leads to problems for some analyzers. Some people (not me) would like: - variable declarations everywhere (rather than only at the beginning of blocks).
I think this would probably be enough for the start. Obviously things like variable-length arrays should never be used anyway.
Thanks for the list, Stefan! The only thing I would want to add is:
- bool type -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160807/7acab0a3/attachment.html>
- Previous message (by thread): [Python-Dev] libmpdec already uses and compiles with -std=c99 -pedantic everywhere
- Next message (by thread): [Python-Dev] Review request: issue 10910, pyport.h causes trouble for C++ extensions on BSDs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]