diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-11-13 19:14:20 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-11-13 19:14:20 (GMT) |
commit | 7b5a604d247e8446dbcb208ab2b1e231eff1e9cf (patch) | |
tree | 4e5a45b76fbc7efe4f586318fe22ee40eb9aab18 /Include | |
parent | 497b19a8a2c1275709ad7490e4c11750ede026fb (diff) | |
download | cpython-7b5a604d247e8446dbcb208ab2b1e231eff1e9cf.zip cpython-7b5a604d247e8446dbcb208ab2b1e231eff1e9cf.tar.gz cpython-7b5a604d247e8446dbcb208ab2b1e231eff1e9cf.tar.bz2 |
Whoops, checkin consistent versions of *all* files to stop polluting
a bunch of names
Diffstat (limited to 'Include')
-rw-r--r-- | Include/Python-ast.h | 4 | ||||
-rw-r--r-- | Include/asdl.h | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/Include/Python-ast.h b/Include/Python-ast.h index abc5bcb..9609141 100644 --- a/Include/Python-ast.h +++ b/Include/Python-ast.h @@ -34,6 +34,7 @@ typedef struct _keyword *keyword_ty; typedef struct _alias *alias_ty; + struct _mod { enum { Module_kind=1, Interactive_kind=2, Expression_kind=3, Suite_kind=4 } kind; @@ -326,6 +327,7 @@ struct _alias { identifier asname; }; + mod_ty Module(asdl_seq * body); mod_ty Interactive(asdl_seq * body); mod_ty Expression(expr_ty body); @@ -388,6 +390,7 @@ arguments_ty arguments(asdl_seq * args, identifier vararg, identifier kwarg, asdl_seq * defaults); keyword_ty keyword(identifier arg, expr_ty value); alias_ty alias(identifier name, identifier asname); + void free_mod(mod_ty); void free_stmt(stmt_ty); void free_expr(expr_ty); @@ -402,3 +405,4 @@ void free_excepthandler(excepthandler_ty); void free_arguments(arguments_ty); void free_keyword(keyword_ty); void free_alias(alias_ty); + diff --git a/Include/asdl.h b/Include/asdl.h index 8ad46fa..cf05967 100644 --- a/Include/asdl.h +++ b/Include/asdl.h @@ -44,11 +44,4 @@ void asdl_seq_free(asdl_seq *); #endif #define asdl_seq_LEN(S) ((S) == NULL ? 0 : (S)->size) -/* Routines to marshal the basic types. */ -int marshal_write_int(PyObject **, int *, int); -int marshal_write_bool(PyObject **, int *, bool); -int marshal_write_identifier(PyObject **, int *, identifier); -int marshal_write_string(PyObject **, int *, string); -int marshal_write_object(PyObject **, int *, object); - #endif /* !Py_ASDL_H */ |