]> gcc.gnu.org Git - gcc.git/commit
parser.c (cp_lexer_peek_token, [...]): Don't handle CPP_PRAGMA tokens specially.
authorZack Weinberg <zack@codesourcery.com>
Tue, 21 Sep 2004 20:46:57 +0000 (20:46 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Tue, 21 Sep 2004 20:46:57 +0000 (20:46 +0000)
commit36952deaddbabacd278def77822ed74423fdf5e3
tree0d0806456056608d40bf64ac3c0d583809bceb3c
parent52c5701b4e38801ed913c8d65a154c99da34181c
parser.c (cp_lexer_peek_token, [...]): Don't handle CPP_PRAGMA tokens specially.

* parser.c (cp_lexer_peek_token, cp_lexer_consume_token):
Don't handle CPP_PRAGMA tokens specially.
(cp_lexer_handle_pragma): Use cp_lexer_consume_token.  Don't
purge the token; do clear token->value after processing.  Add
assertion at beginning that token->value is nonzero.
(cp_parser_statement, cp_parser_declaration_seq_opt): Handle
CPP_PRAGMA as a full statement or declaration in its own right.

From-SVN: r87822
gcc/cp/ChangeLog
gcc/cp/parser.c
This page took 0.062136 seconds and 5 git commands to generate.