1- #ifndef Py_PYTHONRUN_H
2- #define Py_PYTHONRUN_H
3- #ifdef __cplusplus
4- extern "C" {
5- #endif
6-
71/***********************************************************
82Copyright (c) 2000, BeOpen.com.
93Copyright (c) 1995-2000, Corporation for National Research Initiatives.
@@ -16,77 +10,83 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
1610
1711/* Interfaces to parse and execute pieces of python code */
1812
19- DL_IMPORT (void ) Py_SetProgramName Py_PROTO ((char * ) );
20- DL_IMPORT (char * ) Py_GetProgramName Py_PROTO ((void ));
13+ #ifndef Py_PYTHONRUN_H
14+ #define Py_PYTHONRUN_H
15+ #ifdef __cplusplus
16+ extern "C" {
17+ #endif
18+
19+ DL_IMPORT (void ) Py_SetProgramName (char * );
20+ DL_IMPORT (char * ) Py_GetProgramName (void );
2121
22- DL_IMPORT (void ) Py_SetPythonHome Py_PROTO (( char * ) );
23- DL_IMPORT (char * ) Py_GetPythonHome Py_PROTO (( void ) );
22+ DL_IMPORT (void ) Py_SetPythonHome ( char * );
23+ DL_IMPORT (char * ) Py_GetPythonHome ( void );
2424
25- DL_IMPORT (void ) Py_Initialize Py_PROTO (( void ) );
26- DL_IMPORT (void ) Py_Finalize Py_PROTO (( void ) );
27- DL_IMPORT (int ) Py_IsInitialized Py_PROTO (( void ) );
28- DL_IMPORT (PyThreadState * ) Py_NewInterpreter Py_PROTO (( void ) );
29- DL_IMPORT (void ) Py_EndInterpreter Py_PROTO (( PyThreadState * ) );
25+ DL_IMPORT (void ) Py_Initialize ( void );
26+ DL_IMPORT (void ) Py_Finalize ( void );
27+ DL_IMPORT (int ) Py_IsInitialized ( void );
28+ DL_IMPORT (PyThreadState * ) Py_NewInterpreter ( void );
29+ DL_IMPORT (void ) Py_EndInterpreter ( PyThreadState * );
3030
31- DL_IMPORT (int ) PyRun_AnyFile Py_PROTO (( FILE * , char * ) );
31+ DL_IMPORT (int ) PyRun_AnyFile ( FILE * , char * );
3232
33- DL_IMPORT (int ) PyRun_SimpleString Py_PROTO (( char * ) );
34- DL_IMPORT (int ) PyRun_SimpleFile Py_PROTO (( FILE * , char * ) );
35- DL_IMPORT (int ) PyRun_InteractiveOne Py_PROTO (( FILE * , char * ) );
36- DL_IMPORT (int ) PyRun_InteractiveLoop Py_PROTO (( FILE * , char * ) );
33+ DL_IMPORT (int ) PyRun_SimpleString ( char * );
34+ DL_IMPORT (int ) PyRun_SimpleFile ( FILE * , char * );
35+ DL_IMPORT (int ) PyRun_InteractiveOne ( FILE * , char * );
36+ DL_IMPORT (int ) PyRun_InteractiveLoop ( FILE * , char * );
3737
38- DL_IMPORT (struct _node * ) PyParser_SimpleParseString Py_PROTO (( char * , int ) );
39- DL_IMPORT (struct _node * ) PyParser_SimpleParseFile Py_PROTO (( FILE * , char * , int ) );
38+ DL_IMPORT (struct _node * ) PyParser_SimpleParseString ( char * , int );
39+ DL_IMPORT (struct _node * ) PyParser_SimpleParseFile ( FILE * , char * , int );
4040
41- DL_IMPORT (PyObject * ) PyRun_String Py_PROTO (( char * , int , PyObject * , PyObject * ) );
42- DL_IMPORT (PyObject * ) PyRun_File Py_PROTO (( FILE * , char * , int , PyObject * , PyObject * ) );
41+ DL_IMPORT (PyObject * ) PyRun_String ( char * , int , PyObject * , PyObject * );
42+ DL_IMPORT (PyObject * ) PyRun_File ( FILE * , char * , int , PyObject * , PyObject * );
4343
44- DL_IMPORT (PyObject * ) Py_CompileString Py_PROTO (( char * , char * , int ) );
44+ DL_IMPORT (PyObject * ) Py_CompileString ( char * , char * , int );
4545
46- DL_IMPORT (void ) PyErr_Print Py_PROTO (( void ) );
47- DL_IMPORT (void ) PyErr_PrintEx Py_PROTO (( int ) );
46+ DL_IMPORT (void ) PyErr_Print ( void );
47+ DL_IMPORT (void ) PyErr_PrintEx ( int );
4848
49- DL_IMPORT (int ) Py_AtExit Py_PROTO (( void (* func ) Py_PROTO (( void )) ) );
49+ DL_IMPORT (int ) Py_AtExit ( void (* func )( void ));
5050
51- DL_IMPORT (void ) Py_Exit Py_PROTO (( int ) );
51+ DL_IMPORT (void ) Py_Exit ( int );
5252
53- DL_IMPORT (int ) Py_FdIsInteractive Py_PROTO (( FILE * , char * ) );
53+ DL_IMPORT (int ) Py_FdIsInteractive ( FILE * , char * );
5454
5555/* In getpath.c */
56- DL_IMPORT (char * ) Py_GetProgramFullPath Py_PROTO (( void ) );
57- DL_IMPORT (char * ) Py_GetPrefix Py_PROTO (( void ) );
58- DL_IMPORT (char * ) Py_GetExecPrefix Py_PROTO (( void ) );
59- DL_IMPORT (char * ) Py_GetPath Py_PROTO (( void ) );
56+ DL_IMPORT (char * ) Py_GetProgramFullPath ( void );
57+ DL_IMPORT (char * ) Py_GetPrefix ( void );
58+ DL_IMPORT (char * ) Py_GetExecPrefix ( void );
59+ DL_IMPORT (char * ) Py_GetPath ( void );
6060
6161/* In their own files */
62- DL_IMPORT (const char * ) Py_GetVersion Py_PROTO (( void ) );
63- DL_IMPORT (const char * ) Py_GetPlatform Py_PROTO (( void ) );
64- DL_IMPORT (const char * ) Py_GetCopyright Py_PROTO (( void ) );
65- DL_IMPORT (const char * ) Py_GetCompiler Py_PROTO (( void ) );
66- DL_IMPORT (const char * ) Py_GetBuildInfo Py_PROTO (( void ) );
62+ DL_IMPORT (const char * ) Py_GetVersion ( void );
63+ DL_IMPORT (const char * ) Py_GetPlatform ( void );
64+ DL_IMPORT (const char * ) Py_GetCopyright ( void );
65+ DL_IMPORT (const char * ) Py_GetCompiler ( void );
66+ DL_IMPORT (const char * ) Py_GetBuildInfo ( void );
6767
6868/* Internal -- various one-time initializations */
69- DL_IMPORT (PyObject * ) _PyBuiltin_Init Py_PROTO (( void ) );
70- DL_IMPORT (PyObject * ) _PySys_Init Py_PROTO (( void ) );
71- DL_IMPORT (void ) _PyImport_Init Py_PROTO (( void ) );
72- DL_IMPORT (void ) init_exceptions Py_PROTO (( void ) );
69+ DL_IMPORT (PyObject * ) _PyBuiltin_Init ( void );
70+ DL_IMPORT (PyObject * ) _PySys_Init ( void );
71+ DL_IMPORT (void ) _PyImport_Init ( void );
72+ DL_IMPORT (void ) init_exceptions ( void );
7373
7474/* Various internal finalizers */
75- DL_IMPORT (void ) fini_exceptions Py_PROTO (( void ) );
76- DL_IMPORT (void ) _PyImport_Fini Py_PROTO (( void ) );
77- DL_IMPORT (void ) PyMethod_Fini Py_PROTO (( void ) );
78- DL_IMPORT (void ) PyFrame_Fini Py_PROTO (( void ) );
79- DL_IMPORT (void ) PyCFunction_Fini Py_PROTO (( void ) );
80- DL_IMPORT (void ) PyTuple_Fini Py_PROTO (( void ) );
81- DL_IMPORT (void ) PyString_Fini Py_PROTO (( void ) );
82- DL_IMPORT (void ) PyInt_Fini Py_PROTO (( void ) );
83- DL_IMPORT (void ) PyFloat_Fini Py_PROTO (( void ) );
84- DL_IMPORT (void ) PyOS_FiniInterrupts Py_PROTO (( void ) );
75+ DL_IMPORT (void ) fini_exceptions ( void );
76+ DL_IMPORT (void ) _PyImport_Fini ( void );
77+ DL_IMPORT (void ) PyMethod_Fini ( void );
78+ DL_IMPORT (void ) PyFrame_Fini ( void );
79+ DL_IMPORT (void ) PyCFunction_Fini ( void );
80+ DL_IMPORT (void ) PyTuple_Fini ( void );
81+ DL_IMPORT (void ) PyString_Fini ( void );
82+ DL_IMPORT (void ) PyInt_Fini ( void );
83+ DL_IMPORT (void ) PyFloat_Fini ( void );
84+ DL_IMPORT (void ) PyOS_FiniInterrupts ( void );
8585
8686/* Stuff with no proper home (yet) */
87- DL_IMPORT (char * ) PyOS_Readline Py_PROTO (( char * ) );
88- extern DL_IMPORT (int ) (* PyOS_InputHook ) Py_PROTO (( void ) );
89- extern DL_IMPORT (char ) * (* PyOS_ReadlineFunctionPointer ) Py_PROTO (( char * ) );
87+ DL_IMPORT (char * ) PyOS_Readline ( char * );
88+ extern DL_IMPORT (int ) (* PyOS_InputHook )( void );
89+ extern DL_IMPORT (char ) * (* PyOS_ReadlineFunctionPointer )( char * );
9090
9191#ifdef __cplusplus
9292}
0 commit comments