* c-exp.y: Moved handling of 'const' and 'volatile' from
<type> to <typebase>. This removes 2 conflicts.
This commit is contained in:
parent
e9b63852ca
commit
10a297b791
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Oct 19 12:45:23 1992 Per Bothner (bothner@cygnus.com)
|
||||||
|
|
||||||
|
* c-exp.y: Moved handling of 'const' and 'volatile' from
|
||||||
|
<type> to <typebase>. This removes 2 conflicts.
|
||||||
|
|
||||||
Sun Oct 18 00:36:30 1992 Fred Fish (fnf@cygnus.com)
|
Sun Oct 18 00:36:30 1992 Fred Fish (fnf@cygnus.com)
|
||||||
|
|
||||||
* breakpoint.c (breakpoint_re_set_one): Don't delete watchpoints
|
* breakpoint.c (breakpoint_re_set_one): Don't delete watchpoints
|
||||||
|
|
|
@ -834,12 +834,9 @@ type : ptype
|
||||||
{ $$ = lookup_member_type
|
{ $$ = lookup_member_type
|
||||||
(lookup_function_type ($1), $3);
|
(lookup_function_type ($1), $3);
|
||||||
free ((PTR)$8); }
|
free ((PTR)$8); }
|
||||||
/* "const" and "volatile" are curently ignored. */
|
|
||||||
| CONST_KEYWORD type { $$ = $2; }
|
|
||||||
| VOLATILE_KEYWORD type { $$ = $2; }
|
|
||||||
;
|
;
|
||||||
|
|
||||||
typebase
|
typebase /* Implements (approximately): (type-qualifier)* type-specifier */
|
||||||
: TYPENAME
|
: TYPENAME
|
||||||
{ $$ = $1.type; }
|
{ $$ = $1.type; }
|
||||||
| INT_KEYWORD
|
| INT_KEYWORD
|
||||||
|
@ -888,6 +885,9 @@ typebase
|
||||||
{ $$ = lookup_template_type(copy_name($2), $4,
|
{ $$ = lookup_template_type(copy_name($2), $4,
|
||||||
expression_context_block);
|
expression_context_block);
|
||||||
}
|
}
|
||||||
|
/* "const" and "volatile" are curently ignored. */
|
||||||
|
| CONST_KEYWORD typebase { $$ = $2; }
|
||||||
|
| VOLATILE_KEYWORD typebase { $$ = $2; }
|
||||||
;
|
;
|
||||||
|
|
||||||
typename: TYPENAME
|
typename: TYPENAME
|
||||||
|
|
Loading…
Add table
Reference in a new issue