aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorZiemowit Laski <zlaski@apple.com>2004-08-28 20:58:56 +0000
committerZiemowit Laski <zlaski@apple.com>2004-08-28 20:58:56 +0000
commit8b74ab0510ceba6ecda3e6f9c7856755e642aa56 (patch)
tree1139533b6dad212124a620afe1309ed4b3b484f3 /gcc/c-lex.c
parent61edfa0fefb874cadee99ceda39694e1ee6c8020 (diff)
[gcc/ChangeLog]
2004-08-28 Ziemowit Laski <zlaski@apple.com> * c-common.h: Update comments about ObjC/ObjC++ entry points. (objc_is_reserved_word): New prototype. (get_current_scope, objc_mark_locals_volatile): Move prototypes to separate section; these are call-backs. * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect ObjC/ObjC++ "@" keywords. * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove prototypes; they already live in c-common.h. * stub-objc.c: Update copyright notice. (objc_is_reserved_word): New stub. [gcc/cp/ChangeLog] 2004-08-28 Ziemowit Laski <zlaski@apple.com> * Make-lang.in (CXX_OBJS): Split up into CXX_OBJS and CXX_AND_OBJCXX_OBJS. (CXX_C_OBJS): Include in CXX_AND_OBJCXX_OBJS instead of listing separately on the link line. [gcc/objc/ChangeLog] 2004-08-28 Ziemowit Laski <zlaski@apple.com> * objc-act.c (objc_is_reserved_word): New function. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@86702 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 720519f52d5..4b875618420 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -389,8 +389,7 @@ c_lex_with_flags (tree *value, unsigned char *cpp_flags)
{
case CPP_NAME:
val = HT_IDENT_TO_GCC_IDENT (HT_NODE (tok->val.node));
- if (C_IS_RESERVED_WORD (val)
- && OBJC_IS_AT_KEYWORD (C_RID_CODE (val)))
+ if (objc_is_reserved_word (val))
{
*value = val;
return CPP_AT_NAME;