blob: ca6b6d78982732264a1b7aaeb4d2b540df3e1339 [file] [log] [blame]
Guido van Rossumf70e43a1991-02-19 12:39:46 +00001
Guido van Rossum85a5fbb1990-10-14 12:07:46 +00002/* System module interface */
3
Fred Drake3cf4d2b2000-07-09 00:55:06 +00004#ifndef Py_SYSMODULE_H
5#define Py_SYSMODULE_H
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10DL_IMPORT(PyObject *) PySys_GetObject(char *);
11DL_IMPORT(int) PySys_SetObject(char *, PyObject *);
12DL_IMPORT(FILE *) PySys_GetFile(char *, FILE *);
13DL_IMPORT(void) PySys_SetArgv(int, char **);
14DL_IMPORT(void) PySys_SetPath(char *);
Guido van Rossumd510c781992-03-23 18:20:04 +000015
Neil Schemenauer90b68902001-10-23 02:21:22 +000016DL_IMPORT(void) PySys_WriteStdout(const char *format, ...)
17 __attribute__((format(printf, 1, 2)));
18DL_IMPORT(void) PySys_WriteStderr(const char *format, ...)
19 __attribute__((format(printf, 1, 2)));
Guido van Rossumbf6a9b11998-05-12 14:58:52 +000020
Guido van Rossum051ab121995-02-27 10:17:52 +000021extern DL_IMPORT(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
22extern DL_IMPORT(int) _PySys_CheckInterval;
Guido van Rossuma3309961993-07-28 09:05:47 +000023
Guido van Rossum429b41e2000-12-15 22:01:39 +000024DL_IMPORT(void) PySys_ResetWarnOptions(void);
25DL_IMPORT(void) PySys_AddWarnOption(char *);
26
Guido van Rossuma3309961993-07-28 09:05:47 +000027#ifdef __cplusplus
28}
29#endif
30#endif /* !Py_SYSMODULE_H */