Mercurial > hg > CbC > CbC_gcc
comparison gcc/gengtype-lex.l @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
17 | 17 |
18 You should have received a copy of the GNU General Public License | 18 You should have received a copy of the GNU General Public License |
19 along with GCC; see the file COPYING3. If not see | 19 along with GCC; see the file COPYING3. If not see |
20 <http://www.gnu.org/licenses/>. */ | 20 <http://www.gnu.org/licenses/>. */ |
21 | 21 |
22 %option noinput | |
23 | |
22 %{ | 24 %{ |
23 #include "bconfig.h" | 25 #include "bconfig.h" |
24 #include "system.h" | 26 #include "system.h" |
25 | 27 |
26 #define malloc xmalloc | 28 #define malloc xmalloc |
27 #define realloc xrealloc | 29 #define realloc xrealloc |
28 | 30 |
29 #include "gengtype.h" | 31 #include "gengtype.h" |
30 | 32 |
31 #define YY_NO_INPUT | |
32 #define YY_DECL int yylex (const char **yylval) | 33 #define YY_DECL int yylex (const char **yylval) |
33 #define yyterminate() return EOF_TOKEN | 34 #define yyterminate() return EOF_TOKEN |
34 | 35 |
35 struct fileloc lexer_line; | 36 struct fileloc lexer_line; |
36 int lexer_toplevel_done; | 37 int lexer_toplevel_done; |
187 error_at_line (&lexer_line, | 188 error_at_line (&lexer_line, |
188 "unterminated comment or string; unexpected EOF"); | 189 "unterminated comment or string; unexpected EOF"); |
189 } | 190 } |
190 | 191 |
191 ^{HWS}"#"{HWS}"define"{WS}"GTY(" /* do nothing */ | 192 ^{HWS}"#"{HWS}"define"{WS}"GTY(" /* do nothing */ |
192 {WS}"GTY"{WS}?"(" { | |
193 error_at_line (&lexer_line, "stray GTY marker"); | |
194 } | |
195 | 193 |
196 %% | 194 %% |
197 | 195 |
198 void | 196 void |
199 yybegin (const char *fname) | 197 yybegin (const char *fname) |