summaryrefslogtreecommitdiffstats
path: root/Include/sysmodule.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-12 14:58:52 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-12 14:58:52 (GMT)
commitbf6a9b165a07f0ab4604458b3977bd9b05f3ad94 (patch)
treee2fbd582d356e770e084d84aae0aba46778cae78 /Include/sysmodule.h
parent597ac20708c5a17805d1baaeac787b93b913f851 (diff)
downloadcpython-bf6a9b165a07f0ab4604458b3977bd9b05f3ad94.zip
cpython-bf6a9b165a07f0ab4604458b3977bd9b05f3ad94.tar.gz
cpython-bf6a9b165a07f0ab4604458b3977bd9b05f3ad94.tar.bz2
Add
PySys_WriteStdout(format, ...) PySys_WriteStderr(format, ...)
Diffstat (limited to 'Include/sysmodule.h')
-rw-r--r--Include/sysmodule.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/sysmodule.h b/Include/sysmodule.h
index 424dc87..41e92b3 100644
--- a/Include/sysmodule.h
+++ b/Include/sysmodule.h
@@ -43,6 +43,15 @@ FILE *PySys_GetFile Py_PROTO((char *, FILE *));
void PySys_SetArgv Py_PROTO((int, char **));
void PySys_SetPath Py_PROTO((char *));
+#ifdef HAVE_STDARG_PROTOTYPES
+void PySys_WriteStdout(const char *format, ...);
+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();
+#endif
+
extern DL_IMPORT(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
extern DL_IMPORT(int) _PySys_CheckInterval;