OSDN Git Service

* c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Jul 2001 18:48:13 +0000 (18:48 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Jul 2001 18:48:13 +0000 (18:48 +0000)
commitf17c08284894f29363f7134e3df487aff9ade68a
tree3248bbe65b87f7c0868d63322c7f0b313358975f
parent9473330718d6b30b102a9944e60baf176161acaf
* c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
enumerators.
(OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.

* c-parse.in (OBJC_STRING): Kill.
(objc_string): Decompose to [objc_string] '@' STRING.
(reswords): Take the leading '@' off all the Objective C keywords.
(objc_rid_sans_at): Kill.
(init_reswords): Don't initialize it.
(yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
(_yylex): Kill reconsider label.  Look ahead one token after
an '@'; if we get an identifier, check whether it's an
Objective C @-keyword.  If so, return the keyword.  Otherwise,
put back the token and return the '@' as a terminal.

* cpplib.c (lex_macro_node): Remove unnecessary check for
leading '@' on identifier.  Clarify control flow and commentary.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43674 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.h
gcc/c-parse.in
gcc/cpplib.c