Mercurial > cpython-lru_cache-weakref
diff Python/pystate.c @ 13658:f79434ee41fa legacy-trunk
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
declarations yet, those come later.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Sat, 22 Jul 2000 18:47:25 +0000 |
| parents | 87ee82e5c56d |
| children | dfdb601cee1c |
line wrap: on
line diff
--- a/Python/pystate.c Sat Jul 22 18:45:06 2000 +0000 +++ b/Python/pystate.c Sat Jul 22 18:47:25 2000 +0000 @@ -37,7 +37,7 @@ PyInterpreterState * -PyInterpreterState_New() +PyInterpreterState_New(void) { PyInterpreterState *interp = PyMem_NEW(PyInterpreterState, 1); @@ -58,8 +58,7 @@ void -PyInterpreterState_Clear(interp) - PyInterpreterState *interp; +PyInterpreterState_Clear(PyInterpreterState *interp) { PyThreadState *p; HEAD_LOCK(); @@ -73,8 +72,7 @@ static void -zapthreads(interp) - PyInterpreterState *interp; +zapthreads(PyInterpreterState *interp) { PyThreadState *p; /* No need to lock the mutex here because this should only happen @@ -86,8 +84,7 @@ void -PyInterpreterState_Delete(interp) - PyInterpreterState *interp; +PyInterpreterState_Delete(PyInterpreterState *interp) { PyInterpreterState **p; zapthreads(interp); @@ -106,8 +103,7 @@ PyThreadState * -PyThreadState_New(interp) - PyInterpreterState *interp; +PyThreadState_New(PyInterpreterState *interp) { PyThreadState *tstate = PyMem_NEW(PyThreadState, 1); @@ -143,8 +139,7 @@ void -PyThreadState_Clear(tstate) - PyThreadState *tstate; +PyThreadState_Clear(PyThreadState *tstate) { if (Py_VerboseFlag && tstate->frame != NULL) fprintf(stderr, @@ -168,8 +163,7 @@ void -PyThreadState_Delete(tstate) - PyThreadState *tstate; +PyThreadState_Delete(PyThreadState *tstate) { PyInterpreterState *interp; PyThreadState **p; @@ -195,7 +189,7 @@ PyThreadState * -PyThreadState_Get() +PyThreadState_Get(void) { if (_PyThreadState_Current == NULL) Py_FatalError("PyThreadState_Get: no current thread"); @@ -205,8 +199,7 @@ PyThreadState * -PyThreadState_Swap(new) - PyThreadState *new; +PyThreadState_Swap(PyThreadState *new) { PyThreadState *old = _PyThreadState_Current; @@ -222,7 +215,7 @@ likely MemoryError) and the caller should pass on the exception. */ PyObject * -PyThreadState_GetDict() +PyThreadState_GetDict(void) { if (_PyThreadState_Current == NULL) Py_FatalError("PyThreadState_GetDict: no current thread");
