diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-13 12:29:43 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-13 12:29:43 (GMT) |
commit | 0cc56e5c59bbc9d839d1468f8b51ea9391e8852a (patch) | |
tree | b01b94983a324fdc0e660fdd194a9f67060a6e6a /Include | |
parent | 0f1955daeea82b6d8765d2b7642a9f082faddc74 (diff) | |
download | cpython-0cc56e5c59bbc9d839d1468f8b51ea9391e8852a.zip cpython-0cc56e5c59bbc9d839d1468f8b51ea9391e8852a.tar.gz cpython-0cc56e5c59bbc9d839d1468f8b51ea9391e8852a.tar.bz2 |
Introduce asdl_int_seq, to hold cmpop_ty.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/Python-ast.h | 4 | ||||
-rw-r--r-- | Include/asdl.h | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Include/Python-ast.h b/Include/Python-ast.h index 4b7731a..3e21030 100644 --- a/Include/Python-ast.h +++ b/Include/Python-ast.h @@ -240,7 +240,7 @@ struct _expr { struct { expr_ty left; - asdl_seq *ops; + asdl_int_seq *ops; asdl_seq *comparators; } Compare; @@ -409,7 +409,7 @@ expr_ty ListComp(expr_ty elt, asdl_seq * generators, int lineno, int expr_ty GeneratorExp(expr_ty elt, asdl_seq * generators, int lineno, int col_offset, PyArena *arena); expr_ty Yield(expr_ty value, int lineno, int col_offset, PyArena *arena); -expr_ty Compare(expr_ty left, asdl_seq * ops, asdl_seq * comparators, int +expr_ty Compare(expr_ty left, asdl_int_seq * ops, asdl_seq * comparators, int lineno, int col_offset, PyArena *arena); expr_ty Call(expr_ty func, asdl_seq * args, asdl_seq * keywords, expr_ty starargs, expr_ty kwargs, int lineno, int col_offset, PyArena diff --git a/Include/asdl.h b/Include/asdl.h index d709d42..84e837e 100644 --- a/Include/asdl.h +++ b/Include/asdl.h @@ -22,7 +22,13 @@ typedef struct { void *elements[1]; } asdl_seq; +typedef struct { + int size; + int elements[1]; +} asdl_int_seq; + asdl_seq *asdl_seq_new(int size, PyArena *arena); +asdl_int_seq *asdl_int_seq_new(int size, PyArena *arena); #define asdl_seq_GET(S, I) (S)->elements[(I)] #define asdl_seq_LEN(S) ((S) == NULL ? 0 : (S)->size) |