[Python-Dev] #ifdef __cplusplus? (original) (raw)

Christian Heimes lists at cheimes.de
Sat Jan 3 03:56:07 CET 2009


Jim Jewett schrieb:

Is the concern that moving them to a header makes them part of the API?

In other words, does replacing PyObject * PyFileFromString(char *name, char *mode) { extern int fclose(FILE *); ... } with #include <stdio.h> mean that the <stdio.h> needs to be included from then on, even if PyFileFromString stops relying upon it?

stdio.h is included by the Python.h header file anyway. There is simply on point in declaring fclose() a second time here.

Christian



More information about the Python-Dev mailing list