spew.c (yylex): Give diagnostic.
� 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. From-SVN: r22577
This commit is contained in:
parent
0dbb7a102f
commit
269d984e34
@ -1,3 +1,11 @@
|
||||
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.
|
||||
|
||||
Tue Sep 22 21:01:19 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
|
||||
|
||||
* friend.c (do_friend): Make warning a full sentence.
|
||||
|
@ -360,6 +360,19 @@ yylex ()
|
||||
break;
|
||||
|
||||
case SCSPEC:
|
||||
/* If export, warn that it's unimplemented and go on. */
|
||||
if (tmp_token.yylval.ttype == get_identifier("export"))
|
||||
{
|
||||
warning ("keyword 'export' not implemented and will be ignored");
|
||||
consume_token ();
|
||||
goto retry;
|
||||
}
|
||||
else
|
||||
{
|
||||
++first_token;
|
||||
break;
|
||||
}
|
||||
|
||||
case NEW:
|
||||
/* do_aggr needs to check if the previous token was RID_NEW,
|
||||
so just increment first_token instead of calling consume_token. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user