summaryrefslogtreecommitdiffstats
path: root/Python/pyarena.c
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 12:01:56 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 12:01:56 (GMT)
commit7b782b61c597a989a21a22c15ee95decf997429f (patch)
tree8a34ffd3e534d54448916a1fea9bfec7297a6996 /Python/pyarena.c
parent9176fc1466c8a896ab57b054bd426e63770e2cfa (diff)
downloadcpython-7b782b61c597a989a21a22c15ee95decf997429f.zip
cpython-7b782b61c597a989a21a22c15ee95decf997429f.tar.gz
cpython-7b782b61c597a989a21a22c15ee95decf997429f.tar.bz2
more low-hanging fruit to make code compile under a C++ compiler. Not
entirely happy with the two new VISIT macros in compile.c, but I couldn't see a better approach.
Diffstat (limited to 'Python/pyarena.c')
-rw-r--r--Python/pyarena.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/pyarena.c b/Python/pyarena.c
index 012c46b..f27de86 100644
--- a/Python/pyarena.c
+++ b/Python/pyarena.c
@@ -105,14 +105,14 @@ block_alloc(block *b, size_t size)
the default block, allocate a one-off block that is
exactly the right size. */
/* TODO(jhylton): Think about space waste at end of block */
- block *new = block_new(
+ block *newbl = block_new(
size < DEFAULT_BLOCK_SIZE ?
DEFAULT_BLOCK_SIZE : size);
- if (!new)
+ if (!newbl)
return NULL;
assert(!b->ab_next);
- b->ab_next = new;
- b = new;
+ b->ab_next = newbl;
+ b = newbl;
}
assert(b->ab_offset + size <= b->ab_size);