diff options
author | Tom Tromey <tromey@redhat.com> | 2012-06-19 19:49:42 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-06-19 19:49:42 +0000 |
commit | 95c391b64aafe6d8868a99dd476e6f110011dd2d (patch) | |
tree | 10fb350b0855dab2a352174353005d4775911086 /gdb/parser-defs.h | |
parent | e910f0b61f40b0fcbbba3607dbe3e153f45e00d4 (diff) | |
download | gdb-95c391b64aafe6d8868a99dd476e6f110011dd2d.zip gdb-95c391b64aafe6d8868a99dd476e6f110011dd2d.tar.gz gdb-95c391b64aafe6d8868a99dd476e6f110011dd2d.tar.bz2 |
PR exp/9514:
* parser-defs.h (insert_type, insert_type_address_space): Declare.
(push_type_address_space): Remove.
* parse.c (insert_into_type_stack): New function.
(insert_type): Likewise.
(insert_type_address_space): Rename from push_type_address_space.
Insert tp_space_identifier.
* c-exp.y (ptr_operator): New production.
(abs_decl): Use ptr_operator.
(space_identifier): Call insert_type_address_space.
(ptype): Don't use const_or_volatile_or_space_identifier.
(const_or_volatile_noopt): Call insert_type.
(conversion_type_id, conversion_declarator): New productions.
(operator): Use conversion_type_id.
testsuite
* gdb.base/whatis.exp: Add tests.
Diffstat (limited to 'gdb/parser-defs.h')
-rw-r--r-- | gdb/parser-defs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h index 72b9e2f..aa600a1 100644 --- a/gdb/parser-defs.h +++ b/gdb/parser-defs.h @@ -192,11 +192,13 @@ extern int end_arglist (void); extern char *copy_name (struct stoken); +extern void insert_type (enum type_pieces); + extern void push_type (enum type_pieces); extern void push_type_int (int); -extern void push_type_address_space (char *); +extern void insert_type_address_space (char *); extern enum type_pieces pop_type (void); |