blob: 6a2c08a8751caeb090a394c2a650c0a94e80d5c6 [file] [log] [blame]
Guido van Rossuma3309961993-07-28 09:05:47 +00001#ifndef Py_SYSMODULE_H
2#define Py_SYSMODULE_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
Guido van Rossumf70e43a1991-02-19 12:39:46 +00007/***********************************************************
Guido van Rossum5799b521995-01-04 19:06:22 +00008Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
9The Netherlands.
Guido van Rossumf70e43a1991-02-19 12:39:46 +000010
11 All Rights Reserved
12
Guido van Rossumfd71b9e2000-06-30 23:50:40 +000013Copyright (c) 2000, BeOpen.com.
14Copyright (c) 1995-2000, Corporation for National Research Initiatives.
15Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
16All rights reserved.
Guido van Rossumf70e43a1991-02-19 12:39:46 +000017
Guido van Rossumfd71b9e2000-06-30 23:50:40 +000018See the file "Misc/COPYRIGHT" for information on usage and
19redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossumf70e43a1991-02-19 12:39:46 +000020
21******************************************************************/
22
Guido van Rossum85a5fbb1990-10-14 12:07:46 +000023/* System module interface */
24
Guido van Rossum43466ec1998-12-04 18:48:25 +000025DL_IMPORT(PyObject *) PySys_GetObject Py_PROTO((char *));
26DL_IMPORT(int) PySys_SetObject Py_PROTO((char *, PyObject *));
27DL_IMPORT(FILE *) PySys_GetFile Py_PROTO((char *, FILE *));
28DL_IMPORT(void) PySys_SetArgv Py_PROTO((int, char **));
29DL_IMPORT(void) PySys_SetPath Py_PROTO((char *));
Guido van Rossumd510c781992-03-23 18:20:04 +000030
Guido van Rossumbf6a9b11998-05-12 14:58:52 +000031#ifdef HAVE_STDARG_PROTOTYPES
Guido van Rossum43466ec1998-12-04 18:48:25 +000032DL_IMPORT(void) PySys_WriteStdout(const char *format, ...);
33DL_IMPORT(void) PySys_WriteStderr(const char *format, ...);
Guido van Rossumbf6a9b11998-05-12 14:58:52 +000034#else
35/* Better to have no prototypes at all for varargs functions in this case */
Guido van Rossum43466ec1998-12-04 18:48:25 +000036DL_IMPORT(void) PySys_WriteStdout();
37DL_IMPORT(void) PySys_WriteStderr();
Guido van Rossumbf6a9b11998-05-12 14:58:52 +000038#endif
39
Guido van Rossum051ab121995-02-27 10:17:52 +000040extern DL_IMPORT(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
41extern DL_IMPORT(int) _PySys_CheckInterval;
Guido van Rossuma3309961993-07-28 09:05:47 +000042
43#ifdef __cplusplus
44}
45#endif
46#endif /* !Py_SYSMODULE_H */