Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.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 | f79434ee41fa |
comparison
equal
deleted
inserted
replaced
| 13446:23f9689ace50 | 13447:a89f7f268de4 |
|---|---|
| 268 #ifdef COUNT_ALLOCS | 268 #ifdef COUNT_ALLOCS |
| 269 static PyObject * | 269 static PyObject * |
| 270 sys_getcounts(self, args) | 270 sys_getcounts(self, args) |
| 271 PyObject *self, *args; | 271 PyObject *self, *args; |
| 272 { | 272 { |
| 273 extern PyObject *get_counts Py_PROTO((void)); | 273 extern PyObject *get_counts(void); |
| 274 | 274 |
| 275 if (!PyArg_ParseTuple(args, ":getcounts")) | 275 if (!PyArg_ParseTuple(args, ":getcounts")) |
| 276 return NULL; | 276 return NULL; |
| 277 return get_counts(); | 277 return get_counts(); |
| 278 } | 278 } |
| 279 #endif | 279 #endif |
| 280 | 280 |
| 281 #ifdef Py_TRACE_REFS | 281 #ifdef Py_TRACE_REFS |
| 282 /* Defined in objects.c because it uses static globals if that file */ | 282 /* Defined in objects.c because it uses static globals if that file */ |
| 283 extern PyObject *_Py_GetObjects Py_PROTO((PyObject *, PyObject *)); | 283 extern PyObject *_Py_GetObjects(PyObject *, PyObject *); |
| 284 #endif | 284 #endif |
| 285 | 285 |
| 286 #ifdef DYNAMIC_EXECUTION_PROFILE | 286 #ifdef DYNAMIC_EXECUTION_PROFILE |
| 287 /* Defined in ceval.c because it uses static globals if that file */ | 287 /* Defined in ceval.c because it uses static globals if that file */ |
| 288 extern PyObject *_Py_GetDXProfile Py_PROTO((PyObject *, PyObject *)); | 288 extern PyObject *_Py_GetDXProfile(PyObject *, PyObject *); |
| 289 #endif | 289 #endif |
| 290 | 290 |
| 291 static PyMethodDef sys_methods[] = { | 291 static PyMethodDef sys_methods[] = { |
| 292 /* Might as well keep this in alphabetic order */ | 292 /* Might as well keep this in alphabetic order */ |
| 293 {"exc_info", sys_exc_info, 1, exc_info_doc}, | 293 {"exc_info", sys_exc_info, 1, exc_info_doc}, |
| 407 #endif | 407 #endif |
| 408 | 408 |
| 409 PyObject * | 409 PyObject * |
| 410 _PySys_Init() | 410 _PySys_Init() |
| 411 { | 411 { |
| 412 extern int fclose Py_PROTO((FILE *)); | 412 extern int fclose(FILE *); |
| 413 PyObject *m, *v, *sysdict; | 413 PyObject *m, *v, *sysdict; |
| 414 PyObject *sysin, *sysout, *syserr; | 414 PyObject *sysin, *sysout, *syserr; |
| 415 char *s; | 415 char *s; |
| 416 | 416 |
| 417 m = Py_InitModule3("sys", sys_methods, sys_doc); | 417 m = Py_InitModule3("sys", sys_methods, sys_doc); |
