diff options
author | Skip Montanaro <skip@pobox.com> | 2006-04-13 09:48:28 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2006-04-13 09:48:28 (GMT) |
commit | 869bacd4652f1b0299dfad0af49f38d6638a4f60 (patch) | |
tree | 75965ce9a32caedc4efcecba09af72857060d03b /Include | |
parent | b9406711864885c8434c9ba41da90f7ea1e18a47 (diff) | |
download | cpython-869bacd4652f1b0299dfad0af49f38d6638a4f60.zip cpython-869bacd4652f1b0299dfad0af49f38d6638a4f60.tar.gz cpython-869bacd4652f1b0299dfad0af49f38d6638a4f60.tar.bz2 |
revert - breaks build of Python/ast.c w/ gcc
Diffstat (limited to 'Include')
-rw-r--r-- | Include/asdl.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Include/asdl.h b/Include/asdl.h index 6a9adea..d709d42 100644 --- a/Include/asdl.h +++ b/Include/asdl.h @@ -19,22 +19,18 @@ typedef enum {false, true} bool; typedef struct { int size; - union { - void *elements[1]; - unsigned int enum_type[1]; - } elt; + void *elements[1]; } asdl_seq; asdl_seq *asdl_seq_new(int size, PyArena *arena); -#define asdl_seq_GET(S, I) (S)->elt.elements[(I)] -#define asdl_seq_GET_ENUM(S, I) (S)->elt.enum_type[(I)] +#define asdl_seq_GET(S, I) (S)->elements[(I)] #define asdl_seq_LEN(S) ((S) == NULL ? 0 : (S)->size) #ifdef Py_DEBUG #define asdl_seq_SET(S, I, V) { \ int _asdl_i = (I); \ assert((S) && _asdl_i < (S)->size); \ - (S)->elt.elements[_asdl_i] = (V); \ + (S)->elements[_asdl_i] = (V); \ } #else #define asdl_seq_SET(S, I, V) (S)->elements[I] = (V) |