[RFA] c-exp.y -- accept "(signed long long)"
Michael Snyder
msnyder@cygnus.com
Fri Sep 21 16:01:00 GMT 2001
Minor enhancement -- teach the parser to accept (signed long long)
type expression. This isn't the most elegant way, and indeed it
suggests further factorization that could be done, but it's the
minimal change that works.
2001-09-21 Michael Snyder <msnyder@redhat.com>
* c-exp.y (typebase): Accept (signed long long) as a type expr.
Index: c-exp.y
===================================================================
RCS file: /cvs/src/src/gdb/c-exp.y,v
retrieving revision 1.4
diff -c -3 -p -r1.4 c-exp.y
*** c-exp.y 2001/03/06 08:21:06 1.4
--- c-exp.y 2001/09/21 22:59:09
*************** typebase /* Implements (approximately):
*** 812,817 ****
--- 812,821 ----
{ $$ = builtin_type_unsigned_long_long; }
| UNSIGNED LONG LONG INT_KEYWORD
{ $$ = builtin_type_unsigned_long_long; }
+ | SIGNED_KEYWORD LONG LONG
+ { $$ = lookup_signed_typename ("long long"); }
+ | SIGNED_KEYWORD LONG LONG INT_KEYWORD
+ { $$ = lookup_signed_typename ("long long"); }
| SHORT INT_KEYWORD
{ $$ = builtin_type_short; }
| UNSIGNED SHORT INT_KEYWORD
More information about the Gdb-patches
mailing list