Guido van Rossum | f70e43a | 1991-02-19 12:39:46 +0000 | [diff] [blame] | 1 | |
Guido van Rossum | 85a5fbb | 1990-10-14 12:07:46 +0000 | [diff] [blame] | 2 | /* System module interface */ |
| 3 | |
Fred Drake | 3cf4d2b | 2000-07-09 00:55:06 +0000 | [diff] [blame] | 4 | #ifndef Py_SYSMODULE_H |
| 5 | #define Py_SYSMODULE_H |
| 6 | #ifdef __cplusplus |
| 7 | extern "C" { |
| 8 | #endif |
| 9 | |
| 10 | DL_IMPORT(PyObject *) PySys_GetObject(char *); |
| 11 | DL_IMPORT(int) PySys_SetObject(char *, PyObject *); |
| 12 | DL_IMPORT(FILE *) PySys_GetFile(char *, FILE *); |
| 13 | DL_IMPORT(void) PySys_SetArgv(int, char **); |
| 14 | DL_IMPORT(void) PySys_SetPath(char *); |
Guido van Rossum | d510c78 | 1992-03-23 18:20:04 +0000 | [diff] [blame] | 15 | |
Neil Schemenauer | 90b6890 | 2001-10-23 02:21:22 +0000 | [diff] [blame] | 16 | DL_IMPORT(void) PySys_WriteStdout(const char *format, ...) |
| 17 | __attribute__((format(printf, 1, 2))); |
| 18 | DL_IMPORT(void) PySys_WriteStderr(const char *format, ...) |
| 19 | __attribute__((format(printf, 1, 2))); |
Guido van Rossum | bf6a9b1 | 1998-05-12 14:58:52 +0000 | [diff] [blame] | 20 | |
Guido van Rossum | 051ab12 | 1995-02-27 10:17:52 +0000 | [diff] [blame] | 21 | extern DL_IMPORT(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc; |
| 22 | extern DL_IMPORT(int) _PySys_CheckInterval; |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 23 | |
Guido van Rossum | 429b41e | 2000-12-15 22:01:39 +0000 | [diff] [blame] | 24 | DL_IMPORT(void) PySys_ResetWarnOptions(void); |
| 25 | DL_IMPORT(void) PySys_AddWarnOption(char *); |
| 26 | |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 27 | #ifdef __cplusplus |
| 28 | } |
| 29 | #endif |
| 30 | #endif /* !Py_SYSMODULE_H */ |