mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Don't use function prototypes in function definition headers.
This commit is contained in:
parent
2f75b29630
commit
f9cba090f9
1 changed files with 8 additions and 4 deletions
|
|
@ -52,7 +52,8 @@ PyInterpreterState_New()
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
PyInterpreterState_Delete(PyInterpreterState *interp)
|
PyInterpreterState_Delete(interp)
|
||||||
|
PyInterpreterState *interp;
|
||||||
{
|
{
|
||||||
Py_XDECREF(interp->import_modules);
|
Py_XDECREF(interp->import_modules);
|
||||||
Py_XDECREF(interp->sysdict);
|
Py_XDECREF(interp->sysdict);
|
||||||
|
|
@ -62,7 +63,8 @@ PyInterpreterState_Delete(PyInterpreterState *interp)
|
||||||
|
|
||||||
|
|
||||||
PyThreadState *
|
PyThreadState *
|
||||||
PyThreadState_New(PyInterpreterState *interp)
|
PyThreadState_New(interp)
|
||||||
|
PyInterpreterState *interp;
|
||||||
{
|
{
|
||||||
PyThreadState *tstate = PyMem_NEW(PyThreadState, 1);
|
PyThreadState *tstate = PyMem_NEW(PyThreadState, 1);
|
||||||
/* fprintf(stderr, "new tstate -> %p\n", tstate); */
|
/* fprintf(stderr, "new tstate -> %p\n", tstate); */
|
||||||
|
|
@ -93,7 +95,8 @@ PyThreadState_New(PyInterpreterState *interp)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
PyThreadState_Delete(PyThreadState *tstate)
|
PyThreadState_Delete(tstate)
|
||||||
|
PyThreadState *tstate;
|
||||||
{
|
{
|
||||||
/* fprintf(stderr, "delete tstate %p\n", tstate); */
|
/* fprintf(stderr, "delete tstate %p\n", tstate); */
|
||||||
if (tstate == current_tstate)
|
if (tstate == current_tstate)
|
||||||
|
|
@ -126,7 +129,8 @@ PyThreadState_Get()
|
||||||
|
|
||||||
|
|
||||||
PyThreadState *
|
PyThreadState *
|
||||||
PyThreadState_Swap(PyThreadState *new)
|
PyThreadState_Swap(new)
|
||||||
|
PyThreadState *new;
|
||||||
{
|
{
|
||||||
PyThreadState *old = current_tstate;
|
PyThreadState *old = current_tstate;
|
||||||
/* fprintf(stderr, "swap tstate new=%p <--> old=%p\n", new, old); */
|
/* fprintf(stderr, "swap tstate new=%p <--> old=%p\n", new, old); */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue