OSDN Git Service

authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Sep 1998 22:29:31 +0000 (22:29 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Sep 1998 22:29:31 +0000 (22:29 +0000)
1998-09-24  Benjamin Kosnik  <bkoz@loony.cygnus.com>
* spew.c (yylex): Give diagnostic.
* hash.h (is_reserved_word): Add export.
* gxx.gperf: Ditto.
* lex.h (rid): Add RID_EXPORT.
* lex.c (init_parse): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22580 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/lex.c
gcc/cp/lex.h

index 46d26ae..a40c2e0 100644 (file)
@@ -747,6 +747,9 @@ init_parse (filename)
   ridpointers[(int) RID_EXPLICIT] = get_identifier ("explicit");
   SET_IDENTIFIER_AS_LIST (ridpointers[(int) RID_EXPLICIT],
                          build_tree_list (NULL_TREE, ridpointers[(int) RID_EXPLICIT]));
+  ridpointers[(int) RID_EXPORT] = get_identifier ("export");
+  SET_IDENTIFIER_AS_LIST (ridpointers[(int) RID_EXPORT],
+                         build_tree_list (NULL_TREE, ridpointers[(int) RID_EXPORT]));
   ridpointers[(int) RID_FRIEND] = get_identifier ("friend");
   SET_IDENTIFIER_AS_LIST (ridpointers[(int) RID_FRIEND],
                          build_tree_list (NULL_TREE, ridpointers[(int) RID_FRIEND]));
index 8df6b76..98add36 100644 (file)
@@ -59,6 +59,7 @@ enum rid
   RID_FRIEND,
   RID_VIRTUAL,
   RID_EXPLICIT,
+  RID_EXPORT,
   RID_SIGNED,
   RID_AUTO,
   RID_MUTABLE,