Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 9641:d152adf3f094 legacy-trunk
Move the prototype for dump_counts() to before where it is used.
(This only applies when COUNT_ALLOCS is defined.)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 15 Dec 1998 16:12:00 +0000 |
| parents | 5156cf8e4269 |
| children | bd1ce4120e6f |
comparison
equal
deleted
inserted
replaced
| 9640:72a2fbb0e1f9 | 9641:d152adf3f094 |
|---|---|
| 159 | 159 |
| 160 initmain(); /* Module __main__ */ | 160 initmain(); /* Module __main__ */ |
| 161 if (!Py_NoSiteFlag) | 161 if (!Py_NoSiteFlag) |
| 162 initsite(); /* Module site */ | 162 initsite(); /* Module site */ |
| 163 } | 163 } |
| 164 | |
| 165 #ifdef COUNT_ALLOCS | |
| 166 extern void dump_counts Py_PROTO((void)); | |
| 167 #endif | |
| 164 | 168 |
| 165 /* Undo the effect of Py_Initialize(). | 169 /* Undo the effect of Py_Initialize(). |
| 166 | 170 |
| 167 Beware: if multiple interpreter and/or thread states exist, these | 171 Beware: if multiple interpreter and/or thread states exist, these |
| 168 are not wiped out; only the current thread and interpreter state | 172 are not wiped out; only the current thread and interpreter state |
| 1081 | 1085 |
| 1082 fflush(stdout); | 1086 fflush(stdout); |
| 1083 fflush(stderr); | 1087 fflush(stderr); |
| 1084 } | 1088 } |
| 1085 | 1089 |
| 1086 #ifdef COUNT_ALLOCS | |
| 1087 extern void dump_counts Py_PROTO((void)); | |
| 1088 #endif | |
| 1089 | |
| 1090 void | 1090 void |
| 1091 Py_Exit(sts) | 1091 Py_Exit(sts) |
| 1092 int sts; | 1092 int sts; |
| 1093 { | 1093 { |
| 1094 Py_Finalize(); | 1094 Py_Finalize(); |
