]> granicus.if.org Git - python/commitdiff
Don't use function prototypes in function definition headers.
authorGuido van Rossum <guido@python.org>
Tue, 20 May 1997 22:23:34 +0000 (22:23 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 20 May 1997 22:23:34 +0000 (22:23 +0000)
Python/pystate.c

index 7ce499a0963b0c37aba9d58f7ed97d41308df234..857931ea5c0220411d6f9d9b47339e30e2bbc90a 100644 (file)
@@ -52,7 +52,8 @@ PyInterpreterState_New()
 
 
 void
-PyInterpreterState_Delete(PyInterpreterState *interp)
+PyInterpreterState_Delete(interp)
+       PyInterpreterState *interp;
 {
        Py_XDECREF(interp->import_modules);
        Py_XDECREF(interp->sysdict);
@@ -62,7 +63,8 @@ PyInterpreterState_Delete(PyInterpreterState *interp)
 
 
 PyThreadState *
-PyThreadState_New(PyInterpreterState *interp)
+PyThreadState_New(interp)
+       PyInterpreterState *interp;
 {
        PyThreadState *tstate = PyMem_NEW(PyThreadState, 1);
        /* fprintf(stderr, "new tstate -> %p\n", tstate); */
@@ -93,7 +95,8 @@ PyThreadState_New(PyInterpreterState *interp)
 
 
 void
-PyThreadState_Delete(PyThreadState *tstate)
+PyThreadState_Delete(tstate)
+       PyThreadState *tstate;
 {
        /* fprintf(stderr, "delete tstate %p\n", tstate); */
        if (tstate == current_tstate)
@@ -126,7 +129,8 @@ PyThreadState_Get()
 
 
 PyThreadState *
-PyThreadState_Swap(PyThreadState *new)
+PyThreadState_Swap(new)
+       PyThreadState *new;
 {
        PyThreadState *old = current_tstate;
        /* fprintf(stderr, "swap tstate new=%p <--> old=%p\n", new, old); */