X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=gdb%2Fparser-defs.h;h=de283d04fbd9e569ebfaf048fc1c1260282260a9;hb=1a7d0ce4eb4d724a3853500b45b379e746d7077a;hp=aa600a19c44eae59f02f28ce5b85424d6d694dd4;hpb=16d0138401c61373637305e7ae4d6dd70574f0d2;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h index aa600a19c4..de283d04fb 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