Ulrich Eckhardt wrote: > Hi! > > There are lots of files that are framed with an extern "C" stanza when > compiled under C++. Now, I appreciate that header files are made suitable for > use with C++ with that, but WTF are those doing in .c files???
I believe it is to allow building the Python source as an embedded part of an external application that is built with a C++ compiler, even when that compiler isn't clever enough to realise that the 'extern "C"' should be implied by the '.c' file extension. I didn't add those lines though - I suggest doing an SVN annotate on some of the affected source files, and looking at the associated checkin comments. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia --------------------------------------------------------------- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com