[issue4805] Make python code compilable with a C++ compiler
Alexander Belopolsky
report at bugs.python.org
Fri Jan 2 08:30:46 CET 2009
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
A related question discussed on python-dev is whether extern "C" {}
wrappers should ever be used in .c files. I argue that the answer is "no"
even if C++ compilability is desired.
The new patch eliminates several uses of extern "C" {} in .c files while
preserving C++ compilability. This is achieved by including proper header
files instead of declaring external functions in .c files and in some
cases adding declarations of functions that are used outside of the files
they are defined in in the appropriate header files.
Added file: http://bugs.python.org/file12530/c++-patch-1.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4805>
_______________________________________
More information about the Python-bugs-list
mailing list