aboutsummaryrefslogtreecommitdiff
path: root/gdb/parser-defs.h
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-09-27 22:39:05 +0000
committerMichael Snyder <msnyder@vmware.com>2001-09-27 22:39:05 +0000
commit2e2394a07543257fba6f8ba89a74ed316a2b9f09 (patch)
tree6f31ddc0dab7e34780ab313e40e1c732eba4fd52 /gdb/parser-defs.h
parent9b28427211134b5f480ea863b42bb2da8a52f18f (diff)
downloadgdb-2e2394a07543257fba6f8ba89a74ed316a2b9f09.zip
gdb-2e2394a07543257fba6f8ba89a74ed316a2b9f09.tar.gz
gdb-2e2394a07543257fba6f8ba89a74ed316a2b9f09.tar.bz2
2001-09-20 Michael Snyder <msnyder@redhat.com>
Changes by Daniel Berlin <dan@cgsoftware.com>, to support better parsing of const and volatile type expressions. * c-exp.y (const_and_volatile, const_or_volatile_noopt, const_or_volatile): New non-terminals. (ptype): Use new rule for const_or_volatile. (typebase): Use new rule for const_or_volatile_noopt. * parser-defs.h (enum type_pieces): New values tp_const, tp_volatile. * parse.c (follow_types): Handle tp_const and tp_volatile on the type stack: call make_cv_type to create new const/volatile type.
Diffstat (limited to 'gdb/parser-defs.h')
-rw-r--r--gdb/parser-defs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h
index cf85399..bd7fb39 100644
--- a/gdb/parser-defs.h
+++ b/gdb/parser-defs.h
@@ -84,7 +84,13 @@ struct symtoken
An array should be preceded in the list by the size of the array. */
enum type_pieces
{
- tp_end = -1, tp_pointer, tp_reference, tp_array, tp_function
+ tp_end = -1,
+ tp_pointer,
+ tp_reference,
+ tp_array,
+ tp_function,
+ tp_const,
+ tp_volatile
};
/* The stack can contain either an enum type_pieces or an int. */
union type_stack_elt