Mercurial > hg > CbC > CbC_gcc
comparison gcc/c/c-parser.h @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Declarations for the parser for C and Objective-C. | 1 /* Declarations for the parser for C and Objective-C. |
2 Copyright (C) 1987-2017 Free Software Foundation, Inc. | 2 Copyright (C) 1987-2018 Free Software Foundation, Inc. |
3 | 3 |
4 Parser actions based on the old Bison parser; structure somewhat | 4 Parser actions based on the old Bison parser; structure somewhat |
5 influenced by and fragments based on the C++ parser. | 5 influenced by and fragments based on the C++ parser. |
6 | 6 |
7 This file is part of GCC. | 7 This file is part of GCC. |
153 but not gtype-objc.h. */ | 153 but not gtype-objc.h. */ |
154 extern c_token * c_parser_tokens_buf (c_parser *parser, unsigned n); | 154 extern c_token * c_parser_tokens_buf (c_parser *parser, unsigned n); |
155 extern bool c_parser_error (c_parser *parser); | 155 extern bool c_parser_error (c_parser *parser); |
156 extern void c_parser_set_error (c_parser *parser, bool); | 156 extern void c_parser_set_error (c_parser *parser, bool); |
157 | 157 |
158 /* A bit of a hack to have this here. It would be better in a c-decl.h. */ | |
159 extern bool old_style_parameter_scope (void); | |
160 | |
158 /* Return true if the next token from PARSER has the indicated | 161 /* Return true if the next token from PARSER has the indicated |
159 TYPE. */ | 162 TYPE. */ |
160 | 163 |
161 static inline bool | 164 static inline bool |
162 c_parser_next_token_is (c_parser *parser, enum cpp_ttype type) | 165 c_parser_next_token_is (c_parser *parser, enum cpp_ttype type) |
185 extern struct c_declarator * | 188 extern struct c_declarator * |
186 c_parser_declarator (c_parser *parser, bool type_seen_p, c_dtr_syn kind, | 189 c_parser_declarator (c_parser *parser, bool type_seen_p, c_dtr_syn kind, |
187 bool *seen_id); | 190 bool *seen_id); |
188 extern void c_parser_declspecs (c_parser *, struct c_declspecs *, bool, bool, | 191 extern void c_parser_declspecs (c_parser *, struct c_declspecs *, bool, bool, |
189 bool, bool, bool, enum c_lookahead_kind); | 192 bool, bool, bool, enum c_lookahead_kind); |
190 extern struct c_type_name *c_parser_type_name (c_parser *); | 193 extern struct c_type_name *c_parser_type_name (c_parser *, bool = false); |
191 | 194 |
192 #endif | 195 #endif |