comparison Python/pythonrun.c @ 13447:a89f7f268de4 legacy-trunk

Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.
author Tim Peters <tim.peters@gmail.com>
date Sun, 09 Jul 2000 03:09:57 +0000
parents 87ee82e5c56d
children feab677269e0
comparison
equal deleted inserted replaced
13446:23f9689ace50 13447:a89f7f268de4
36 extern char *Py_GetPath(); 36 extern char *Py_GetPath();
37 37
38 extern grammar _PyParser_Grammar; /* From graminit.c */ 38 extern grammar _PyParser_Grammar; /* From graminit.c */
39 39
40 /* Forward */ 40 /* Forward */
41 static void initmain Py_PROTO((void)); 41 static void initmain(void);
42 static void initsite Py_PROTO((void)); 42 static void initsite(void);
43 static PyObject *run_err_node Py_PROTO((node *n, char *filename, 43 static PyObject *run_err_node(node *n, char *filename,
44 PyObject *globals, PyObject *locals)); 44 PyObject *globals, PyObject *locals);
45 static PyObject *run_node Py_PROTO((node *n, char *filename, 45 static PyObject *run_node(node *n, char *filename,
46 PyObject *globals, PyObject *locals)); 46 PyObject *globals, PyObject *locals);
47 static PyObject *run_pyc_file Py_PROTO((FILE *fp, char *filename, 47 static PyObject *run_pyc_file(FILE *fp, char *filename,
48 PyObject *globals, PyObject *locals)); 48 PyObject *globals, PyObject *locals);
49 static void err_input Py_PROTO((perrdetail *)); 49 static void err_input(perrdetail *);
50 static void initsigs Py_PROTO((void)); 50 static void initsigs(void);
51 static void call_sys_exitfunc Py_PROTO((void)); 51 static void call_sys_exitfunc(void);
52 static void call_ll_exitfuncs Py_PROTO((void)); 52 static void call_ll_exitfuncs(void);
53 53
54 #ifdef Py_TRACE_REFS 54 #ifdef Py_TRACE_REFS
55 int _Py_AskYesNo(char *prompt); 55 int _Py_AskYesNo(char *prompt);
56 #endif 56 #endif
57 57
161 if (!Py_NoSiteFlag) 161 if (!Py_NoSiteFlag)
162 initsite(); /* Module site */ 162 initsite(); /* Module site */
163 } 163 }
164 164
165 #ifdef COUNT_ALLOCS 165 #ifdef COUNT_ALLOCS
166 extern void dump_counts Py_PROTO((void)); 166 extern void dump_counts(void);
167 #endif 167 #endif
168 168
169 /* Undo the effect of Py_Initialize(). 169 /* Undo the effect of Py_Initialize().
170 170
171 Beware: if multiple interpreter and/or thread states exist, these 171 Beware: if multiple interpreter and/or thread states exist, these
1057 #define NEXITFUNCS 32 1057 #define NEXITFUNCS 32
1058 static void (*exitfuncs[NEXITFUNCS])(); 1058 static void (*exitfuncs[NEXITFUNCS])();
1059 static int nexitfuncs = 0; 1059 static int nexitfuncs = 0;
1060 1060
1061 int Py_AtExit(func) 1061 int Py_AtExit(func)
1062 void (*func) Py_PROTO((void)); 1062 void (*func)(void);
1063 { 1063 {
1064 if (nexitfuncs >= NEXITFUNCS) 1064 if (nexitfuncs >= NEXITFUNCS)
1065 return -1; 1065 return -1;
1066 exitfuncs[nexitfuncs++] = func; 1066 exitfuncs[nexitfuncs++] = func;
1067 return 0; 1067 return 0;