blob: e208fc392a49bc6ebfa629b3b7b465331e5f020d [file] [log] [blame]
Guido van Rossumf70e43a1991-02-19 12:39:46 +00001/***********************************************************
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00002Copyright (c) 2000, BeOpen.com.
3Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
5All rights reserved.
Guido van Rossumf70e43a1991-02-19 12:39:46 +00006
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00007See the file "Misc/COPYRIGHT" for information on usage and
8redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossumf70e43a1991-02-19 12:39:46 +00009******************************************************************/
10
Guido van Rossum85a5fbb1990-10-14 12:07:46 +000011/* System module interface */
12
Fred Drake3cf4d2b2000-07-09 00:55:06 +000013#ifndef Py_SYSMODULE_H
14#define Py_SYSMODULE_H
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19DL_IMPORT(PyObject *) PySys_GetObject(char *);
20DL_IMPORT(int) PySys_SetObject(char *, PyObject *);
21DL_IMPORT(FILE *) PySys_GetFile(char *, FILE *);
22DL_IMPORT(void) PySys_SetArgv(int, char **);
23DL_IMPORT(void) PySys_SetPath(char *);
Guido van Rossumd510c781992-03-23 18:20:04 +000024
Guido van Rossumbf6a9b11998-05-12 14:58:52 +000025#ifdef HAVE_STDARG_PROTOTYPES
Guido van Rossum43466ec1998-12-04 18:48:25 +000026DL_IMPORT(void) PySys_WriteStdout(const char *format, ...);
27DL_IMPORT(void) PySys_WriteStderr(const char *format, ...);
Guido van Rossumbf6a9b11998-05-12 14:58:52 +000028#else
29/* Better to have no prototypes at all for varargs functions in this case */
Guido van Rossum43466ec1998-12-04 18:48:25 +000030DL_IMPORT(void) PySys_WriteStdout();
31DL_IMPORT(void) PySys_WriteStderr();
Guido van Rossumbf6a9b11998-05-12 14:58:52 +000032#endif
33
Guido van Rossum051ab121995-02-27 10:17:52 +000034extern DL_IMPORT(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
35extern DL_IMPORT(int) _PySys_CheckInterval;
Guido van Rossuma3309961993-07-28 09:05:47 +000036
37#ifdef __cplusplus
38}
39#endif
40#endif /* !Py_SYSMODULE_H */