[Python-Dev] #ifdef __cplusplus? (original) (raw)
Jim Jewett jimjjewett at gmail.com
Sat Jan 3 03:46:13 CET 2009
- Previous message: [Python-Dev] PyOS_GetLastModificationTime
- Next message: [Python-Dev] #ifdef __cplusplus?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Alexander Belopolsky wrote:
4. Should exported symbols be always declared in headers or is it ok to just declare them as extern in .c files where they are used?
Is the concern that moving them to a header makes them part of the API?
In other words, does replacing
PyObject * PyFile_FromString(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 PyFile_FromString stops relying upon it?
-jJ
- Previous message: [Python-Dev] PyOS_GetLastModificationTime
- Next message: [Python-Dev] #ifdef __cplusplus?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]