summaryrefslogtreecommitdiffstats
path: root/Include/sysmodule.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-04 18:48:25 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-04 18:48:25 (GMT)
commit43466ec7b07de6bcad016bec60839cd6079c5a9c (patch)
treeec3bf3e1dfbf9535fa56e153e200f6491f34a6b0 /Include/sysmodule.h
parentb241b67b8954b0679377af00d668e3dc92f4c858 (diff)
downloadcpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.zip
cpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.tar.gz
cpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.tar.bz2
Add DL_IMPORT(returntype) for all officially exported functions.
Diffstat (limited to 'Include/sysmodule.h')
-rw-r--r--Include/sysmodule.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/Include/sysmodule.h b/Include/sysmodule.h
index 41e92b3..b655bc2 100644
--- a/Include/sysmodule.h
+++ b/Include/sysmodule.h
@@ -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;