[issue4025] C99 comments in Python 2.6 break build on AIX 6.1

Marc-Andre Lemburg report at bugs.python.org
Wed Dec 3 11:20:04 CET 2008


Marc-Andre Lemburg <mal at egenix.com> added the comment:

On 2008-12-03 01:44, Christian Heimes wrote:
> Christian Heimes <lists at cheimes.de> added the comment:
> 
> Barry, the issue in _ctypes/callproc.c could be a problem for us
> although Python 2.6 and 3.0 are compiling fine with -std=c89. Should the
> comment be fixed before the release?

I had a second look at the code. That comment is in #ifdefs:

#ifdef MS_WIN32
...
#endif

so it won't affect compiling ctypes on Unix platforms.

Still, I find the situation with C99 comments scattered around the
source code less than ideal. Either we officially abandon C90 and move
on to C99 or we stick to C90 for all source code (including code that
only gets compiled on Macs or MSVC).

It's just too easy for a C99 comment to slip into code that's
targeted for non-gcc/non-MSVC compilers as well and these then
break the portability of Python to those compilers/platforms.

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


More information about the Python-bugs-list mailing list