comparison Python/pythonrun.c @ 9192:ac6c29d1f10c legacy-trunk

On second though, NEXITFUNCS should be defined here and not in pystate.h; pystate.h doesn't use it (I thought I wanted to move the array there but that won't work).
author Guido van Rossum <guido@python.org>
date Thu, 01 Oct 1998 16:01:57 +0000
parents 1e43df7d8be3
children 07dae6fdae79
comparison
equal deleted inserted replaced
9191:4fe8a7670c0d 9192:ac6c29d1f10c
1033 #ifdef WITH_THREAD 1033 #ifdef WITH_THREAD
1034 #include "thread.h" 1034 #include "thread.h"
1035 int _PyThread_Started = 0; /* Set by threadmodule.c and maybe others */ 1035 int _PyThread_Started = 0; /* Set by threadmodule.c and maybe others */
1036 #endif 1036 #endif
1037 1037
1038 /* NEXITFUNCS is defined in pystate.h */ 1038 #define NEXITFUNCS 32
1039 static void (*exitfuncs[NEXITFUNCS])(); 1039 static void (*exitfuncs[NEXITFUNCS])();
1040 static int nexitfuncs = 0; 1040 static int nexitfuncs = 0;
1041 1041
1042 int Py_AtExit(func) 1042 int Py_AtExit(func)
1043 void (*func) Py_PROTO((void)); 1043 void (*func) Py_PROTO((void));