[Python-3000-checkins] r54856 - python/branches/p3yk/Python/ast.c
guido.van.rossum
python-3000-checkins at python.org
Tue Apr 17 23:58:51 CEST 2007
Author: guido.van.rossum
Date: Tue Apr 17 23:58:50 2007
New Revision: 54856
Modified:
python/branches/p3yk/Python/ast.c
Log:
Make it compile with C89.
Modified: python/branches/p3yk/Python/ast.c
==============================================================================
--- python/branches/p3yk/Python/ast.c (original)
+++ python/branches/p3yk/Python/ast.c Tue Apr 17 23:58:50 2007
@@ -1325,8 +1325,9 @@
return Dict(NULL, NULL, LINENO(n), n->n_col_offset, c->c_arena);
} else if (NCH(ch) == 1 || TYPE(CHILD(ch, 1)) == COMMA) {
/* it's a simple set */
+ asdl_seq *elts;
size = (NCH(ch) + 1) / 2; /* +1 in case no trailing comma */
- asdl_seq *elts = asdl_seq_new(size, c->c_arena);
+ elts = asdl_seq_new(size, c->c_arena);
if (!elts)
return NULL;
for (i = 0; i < NCH(ch); i += 2) {
More information about the Python-3000-checkins
mailing list