[issue29215] pyport.h uses non C90-style comment

Sander Vrijders report at bugs.python.org
Mon Jan 9 11:11:42 EST 2017


Sander Vrijders added the comment:

Okay, a bit conflicted about the following though. The changelog refers to PEP7. This document indeed states that Python versions greater than or equal to 3.6 use C89 with several select C99 features, such as C++-style line comments. But then below that it has a rule that says never use C++ style // one-line comments. That seems contradictory.

FYI, I mean not complaining about stdint.h, gcc (and clang) also support those with the C90 switch turned on. 

Or should I just assume that all headers are henceforth C99 and any wrapping code should also be C99? Though it seems a bit overkill to kill all compatibility for a single comment line. If I use a C89 comment on my system the build works perfectly.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29215>
_______________________________________


More information about the Python-bugs-list mailing list