diff options
Diffstat (limited to 'gdb/parser-defs.h')
-rw-r--r-- | gdb/parser-defs.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h index aa600a1..de283d0 100644 --- a/gdb/parser-defs.h +++ b/gdb/parser-defs.h @@ -127,8 +127,18 @@ union type_stack_elt enum type_pieces piece; int int_val; }; -extern union type_stack_elt *type_stack; -extern int type_stack_depth, type_stack_size; + +/* The type stack is an instance of this structure. */ + +struct type_stack +{ + /* Elements on the stack. */ + union type_stack_elt *elements; + /* Current stack depth. */ + int depth; + /* Allocated size of stack. */ + int size; +}; /* Helper function to initialize the expout, expout_size, expout_ptr trio before it is used to store expression elements created during |