mirror of
https://github.com/python/cpython.git
synced 2025-10-07 23:51:16 +00:00
Add DL_IMPORT(returntype) for all officially exported functions.
This commit is contained in:
parent
b241b67b89
commit
43466ec7b0
44 changed files with 401 additions and 398 deletions
|
@ -37,19 +37,19 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
|
||||
/* System module interface */
|
||||
|
||||
PyObject *PySys_GetObject Py_PROTO((char *));
|
||||
int PySys_SetObject Py_PROTO((char *, PyObject *));
|
||||
FILE *PySys_GetFile Py_PROTO((char *, FILE *));
|
||||
void PySys_SetArgv Py_PROTO((int, char **));
|
||||
void PySys_SetPath Py_PROTO((char *));
|
||||
DL_IMPORT(PyObject *) PySys_GetObject Py_PROTO((char *));
|
||||
DL_IMPORT(int) PySys_SetObject Py_PROTO((char *, PyObject *));
|
||||
DL_IMPORT(FILE *) PySys_GetFile Py_PROTO((char *, FILE *));
|
||||
DL_IMPORT(void) PySys_SetArgv Py_PROTO((int, char **));
|
||||
DL_IMPORT(void) PySys_SetPath Py_PROTO((char *));
|
||||
|
||||
#ifdef HAVE_STDARG_PROTOTYPES
|
||||
void PySys_WriteStdout(const char *format, ...);
|
||||
void PySys_WriteStderr(const char *format, ...);
|
||||
DL_IMPORT(void) PySys_WriteStdout(const char *format, ...);
|
||||
DL_IMPORT(void) PySys_WriteStderr(const char *format, ...);
|
||||
#else
|
||||
/* Better to have no prototypes at all for varargs functions in this case */
|
||||
void PySys_WriteStdout();
|
||||
void PySys_WriteStderr();
|
||||
DL_IMPORT(void) PySys_WriteStdout();
|
||||
DL_IMPORT(void) PySys_WriteStderr();
|
||||
#endif
|
||||
|
||||
extern DL_IMPORT(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue