aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorZack Weinberg <zackw@stanford.edu>2001-03-07 01:32:01 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-03-07 01:32:01 +0000
commitcc937581390c3aebf39e5f36b61f6b6098b8a236 (patch)
tree6fd6ae80f761d7e077d853c2bbffc740946a5e0d /gcc/cpplib.h
parent8b44d68f7b41308b3ea5b66642352c6fc8946093 (diff)
downloadgcc-cc937581390c3aebf39e5f36b61f6b6098b8a236.zip
gcc-cc937581390c3aebf39e5f36b61f6b6098b8a236.tar.gz
gcc-cc937581390c3aebf39e5f36b61f6b6098b8a236.tar.bz2
c-parse.in (yylexname): New function, split out of _yylex.
* c-parse.in (yylexname): New function, split out of _yylex. (objc_rid_sans_at): New table. (init_reswords): Initialize it. (_yylex): Give labels clearer names. Handle CPP_ATSIGN by retrieving the next token and checking it for significance as an ObjC keyword or string constant. * cpplex.c (_cpp_lex_token): Just return CPP_ATSIGN for '@'. * cpplib.h (TTYPE_TABLE): Add CPP_ATSIGN, drop CPP_OSTRING. * c-lex.c, c-parse.in, cppmacro.c, cpplex.c, cp/spew.c: Remove references to CPP_OSTRING. From-SVN: r40279
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index c0c3ff3..b9b706b 100644
--- a/gcc/cpplib.h
+++ b/gcc/cpplib.h
@@ -119,6 +119,7 @@ struct file_name_map_list;
OP(CPP_SCOPE, "::") \
OP(CPP_DEREF_STAR, "->*") \
OP(CPP_DOT_STAR, ".*") \
+ OP(CPP_ATSIGN, "@") /* used in Objective C */ \
\
TK(CPP_NAME, SPELL_IDENT) /* word */ \
TK(CPP_INT, SPELL_STRING) /* 23 */ \
@@ -131,7 +132,6 @@ struct file_name_map_list;
\
TK(CPP_STRING, SPELL_STRING) /* "string" */ \
TK(CPP_WSTRING, SPELL_STRING) /* L"string" */ \
- TK(CPP_OSTRING, SPELL_STRING) /* @"string" - Objective C */ \
TK(CPP_HEADER_NAME, SPELL_STRING) /* <stdio.h> in #include */ \
\
TK(CPP_COMMENT, SPELL_STRING) /* Only if output comments. */ \