Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9cba09

Browse files
committed
Don't use function prototypes in function definition headers.
1 parent 2f75b29 commit f9cba09

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Python/pystate.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ PyInterpreterState_New()
5252

5353

5454
void
55-
PyInterpreterState_Delete(PyInterpreterState *interp)
55+
PyInterpreterState_Delete(interp)
56+
PyInterpreterState *interp;
5657
{
5758
Py_XDECREF(interp->import_modules);
5859
Py_XDECREF(interp->sysdict);
@@ -62,7 +63,8 @@ PyInterpreterState_Delete(PyInterpreterState *interp)
6263

6364

6465
PyThreadState *
65-
PyThreadState_New(PyInterpreterState *interp)
66+
PyThreadState_New(interp)
67+
PyInterpreterState *interp;
6668
{
6769
PyThreadState *tstate = PyMem_NEW(PyThreadState, 1);
6870
/* fprintf(stderr, "new tstate -> %p\n", tstate); */
@@ -93,7 +95,8 @@ PyThreadState_New(PyInterpreterState *interp)
9395

9496

9597
void
96-
PyThreadState_Delete(PyThreadState *tstate)
98+
PyThreadState_Delete(tstate)
99+
PyThreadState *tstate;
97100
{
98101
/* fprintf(stderr, "delete tstate %p\n", tstate); */
99102
if (tstate == current_tstate)
@@ -126,7 +129,8 @@ PyThreadState_Get()
126129

127130

128131
PyThreadState *
129-
PyThreadState_Swap(PyThreadState *new)
132+
PyThreadState_Swap(new)
133+
PyThreadState *new;
130134
{
131135
PyThreadState *old = current_tstate;
132136
/* fprintf(stderr, "swap tstate new=%p <--> old=%p\n", new, old); */

0 commit comments

Comments
 (0)