diff options
author | Volker Reichelt <v.reichelt@netcologne.de> | 2008-03-29 00:39:48 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2008-03-29 00:39:48 +0000 |
commit | dbc518f09c4ac4499dcbf5802e20cd4adb0d9a41 (patch) | |
tree | 57f75bc45584c17de8ed5e3315e30bd3f84f1184 /gcc/c-parser.c | |
parent | fc1ca42854276d2be9197a075c6f219bb12329d7 (diff) | |
download | gcc-dbc518f09c4ac4499dcbf5802e20cd4adb0d9a41.zip gcc-dbc518f09c4ac4499dcbf5802e20cd4adb0d9a41.tar.gz gcc-dbc518f09c4ac4499dcbf5802e20cd4adb0d9a41.tar.bz2 |
* c-parser.c (c_parser_next_token_is_keyword): Simplify.
From-SVN: r133709
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 831f95a..c0f8628 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -443,12 +443,7 @@ c_parser_next_token_is_not (c_parser *parser, enum cpp_ttype type) static inline bool c_parser_next_token_is_keyword (c_parser *parser, enum rid keyword) { - c_token *token; - - /* Peek at the next token. */ - token = c_parser_peek_token (parser); - /* Check to see if it is the indicated keyword. */ - return token->keyword == keyword; + return c_parser_peek_token (parser)->keyword == keyword; } /* Return true if TOKEN can start a type name, |