[issue4558] with_stdc89

2011-05-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Yes, vs2008 requires that variables must be declared at the start of a block, and IIRC there is a AIX compiler that does not allow // comments. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue4558] with_stdc89

2011-05-20 Thread STINNER Victor
STINNER Victor added the comment: Is it still useful to ensure that ISO C89 compilers are supported in 2011? -- nosy: +haypo ___ Python tracker ___ __

[issue4558] with_stdc89

2011-05-19 Thread Roumen Petrov
Roumen Petrov added the comment: Issue with inline was resolved by configure macro. -- Added file: http://bugs.python.org/file22035/python3-20110520-c89.patch ___ Python tracker

[issue4558] with_stdc89

2010-07-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker ___ ___ Python-

[issue4558] with_stdc89

2008-12-08 Thread Roumen Petrov
Changes by Roumen Petrov <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file12253/python-trunk-20081206-c89.patch ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4558] with_stdc89

2008-12-08 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: Socket module need to be patched too otherwise test_socket fail on UNIX domain socket tests. After clean build and with new patch the regression tests results are: 337 tests OK. 3 tests failed: test_curses test_urllib2_localnet test_urllib

[issue4558] with_stdc89

2008-12-07 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: :-( the last my comment is incomplete : work for me after "minimal patch" ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4558] with_stdc89

2008-12-06 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: make EXTRA_CFLAGS='-std=c89' works for me. Added file: http://bugs.python.org/file12253/python-trunk-20081206-c89.patch ___ Python tracker <[EMAIL PROTECTED]>

[issue4558] with_stdc89

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: Python core code must be compliant with the C89 standard but we don't have any checks for C89 compatibility. This patch adds a clean way to check our code base. You can verify my patch by adding a // comment somewhere in the code and ./conf

[issue4558] with_stdc89

2008-12-06 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: P.S. About C++ comments ( // ) I think that another issue is already opened (problem on AIX ? ) . ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4558] with_stdc89

2008-12-06 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: Christian did you like to propose a separate configure flag for every dialect that GCC support? I prefer variables like OPT. ___ Python tracker <[EMAIL PROTECTED]>

[issue4558] with_stdc89

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: I think you don't get the point of the patch. The configure option *enforces* the C89 standard. Every non C89 conform C feature like // comments and the "inline" keyword will cause a compiler error. The patch is meant for testing the Python

[issue4558] with_stdc89

2008-12-06 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: There is no reason to overload configure script. Please look into pyport.h : #define Py_LOCAL(type) static type #define Py_LOCAL_INLINE(type) static inline type Someone add USE_INLINE - not finished. I guess that other source files has to use

[issue4558] with_stdc89

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: The updated patch moves the compiler option to the right place. Added file: http://bugs.python.org/file12247/with_stdc89_2.patch ___ Python tracker <[EMAIL PROTECTED]>

[issue4558] with_stdc89

2008-12-06 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Patch looks good. -- nosy: +georg.brandl ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4558] with_stdc89

2008-12-05 Thread Christian Heimes
New submission from Christian Heimes <[EMAIL PROTECTED]>: The patch adds a configure option --with-stdc89. It also fixes some edge cases in socketmodule.h and linuxaudiodev so all related modules can be build in c89 mode. I'm planning to add the configure option to the build bots in order to det