7 /***********************************************************
8 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
13 Permission to use, copy, modify, and distribute this software and its
14 documentation for any purpose and without fee is hereby granted,
15 provided that the above copyright notice appear in all copies and that
16 both that copyright notice and this permission notice appear in
17 supporting documentation, and that the names of Stichting Mathematisch
18 Centrum or CWI not be used in advertising or publicity pertaining to
19 distribution of the software without specific, written prior permission.
21 STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
22 THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
23 FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
24 FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
25 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
26 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
27 OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
29 ******************************************************************/
31 /* Interfaces to parse and execute pieces of python code */
33 void Py_Initialize
Py_PROTO((void));
35 int PyRun_AnyFile
Py_PROTO((FILE *, char *));
37 int PyRun_SimpleString
Py_PROTO((char *));
38 int PyRun_SimpleFile
Py_PROTO((FILE *, char *));
39 int PyRun_InteractiveOne
Py_PROTO((FILE *, char *));
40 int PyRun_InteractiveLoop
Py_PROTO((FILE *, char *));
42 struct _node
*PyParser_SimpleParseString
Py_PROTO((char *, int));
43 struct _node
*PyParser_SimpleParseFile
Py_PROTO((FILE *, char *, int));
45 PyObject
*PyRun_String
Py_PROTO((char *, int, PyObject
*, PyObject
*));
46 PyObject
*PyRun_File
Py_PROTO((FILE *, char *, int, PyObject
*, PyObject
*));
47 PyObject
*run_pyc_file
Py_PROTO((FILE *, char *, PyObject
*, PyObject
*));
49 PyObject
*Py_CompileString
Py_PROTO((char *, char *, int));
51 void PyErr_Print
Py_PROTO((void));
53 int Py_AtExit
Py_PROTO((void (*func
) Py_PROTO((void))));
55 void Py_Exit
Py_PROTO((int));
57 void cleanup
Py_PROTO((void));
62 #endif /* !Py_PYTHONRUN_H */