This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
"Keith" == Keith Seitz<keiths@redhat.com> writes:
Keith> + {".*", DOT_STAR, BINOP_END, 0}
After reading the follow-up comments I realized that this needs a couple little changes.
The last field should be 1 here, and then the tokentab2 and tokentab3 logic in yylex needs the same cxx_only treatment as ident_tokens.
I suppose that the "::" operator also needs to be C++-only.
* c-exp.y (tokentab3): Add new token, ARROW_STAR. Changed all users. (tokentab2): Add new token, DOT_STAR. Changed all users. (yylex): Add cxx_only check for tokentab2 and tokentab3 searches.
Attachment:
token-fix2.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |