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

Skip to content

Commit 2edcf0d

Browse files
committed
Move the prototype for dump_counts() to before where it is used.
(This only applies when COUNT_ALLOCS is defined.)
1 parent 38b92eb commit 2edcf0d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Python/pythonrun.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ Py_Initialize()
162162
initsite(); /* Module site */
163163
}
164164

165+
#ifdef COUNT_ALLOCS
166+
extern void dump_counts Py_PROTO((void));
167+
#endif
168+
165169
/* Undo the effect of Py_Initialize().
166170
167171
Beware: if multiple interpreter and/or thread states exist, these
@@ -1083,10 +1087,6 @@ call_ll_exitfuncs()
10831087
fflush(stderr);
10841088
}
10851089

1086-
#ifdef COUNT_ALLOCS
1087-
extern void dump_counts Py_PROTO((void));
1088-
#endif
1089-
10901090
void
10911091
Py_Exit(sts)
10921092
int sts;

0 commit comments

Comments
 (0)