diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2005-12-18 15:44:21 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2005-12-18 15:44:21 (GMT) |
commit | 93d69a7948d3ecebcfd8fd98d0909af56ef4993f (patch) | |
tree | ffd758b81b5f4be00a5fe542f64c5054a7d10f7c /Python | |
parent | 0149e3a0903be8d47d1d6da0fd9ff3767c517085 (diff) | |
download | cpython-93d69a7948d3ecebcfd8fd98d0909af56ef4993f.zip cpython-93d69a7948d3ecebcfd8fd98d0909af56ef4993f.tar.gz cpython-93d69a7948d3ecebcfd8fd98d0909af56ef4993f.tar.bz2 |
fixed compilation with an ordinary C89 compiler
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 3 | ||||
-rw-r--r-- | Python/pyarena.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Python/compile.c b/Python/compile.c index 60b4933..3ada52b 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -296,8 +296,7 @@ PyCodeObject * PyNode_Compile(struct _node *n, const char *filename) { PyCodeObject *co = NULL; - PyArena *arena; - arena = PyArena_New(); + PyArena *arena = PyArena_New(); mod_ty mod = PyAST_FromNode(n, NULL, filename, arena); if (mod) co = PyAST_Compile(mod, filename, NULL, arena); diff --git a/Python/pyarena.c b/Python/pyarena.c index 6c99c64..a262115 100644 --- a/Python/pyarena.c +++ b/Python/pyarena.c @@ -107,8 +107,8 @@ PyArena_Malloc(PyArena *arena, size_t size) int PyArena_AddMallocPointer(PyArena *arena, void *pointer) { - assert(pointer); PyArenaList *tail = arena->a_malloc_tail; + assert(pointer); assert(tail->al_pointer != pointer); tail->al_next = PyArenaList_New(); tail->al_pointer = pointer; @@ -119,8 +119,8 @@ PyArena_AddMallocPointer(PyArena *arena, void *pointer) int PyArena_AddPyObject(PyArena *arena, PyObject *pointer) { - assert(pointer); PyArenaList *tail = arena->a_object_tail; + assert(pointer); tail->al_next = PyArenaList_New(); tail->al_pointer = pointer; arena->a_object_tail = tail->al_next; |