]> granicus.if.org Git - python/commitdiff
Make it compile with C89.
authorGuido van Rossum <guido@python.org>
Tue, 17 Apr 2007 21:58:50 +0000 (21:58 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 17 Apr 2007 21:58:50 +0000 (21:58 +0000)
Python/ast.c

index 262ade3127aa0e9995eb758b31f4c2961866c6e7..1bd1430fdffcc2d697d9aaef313dd0a20c50f89d 100644 (file)
@@ -1325,8 +1325,9 @@ ast_for_atom(struct compiling *c, const node *n)
             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) {