OSDN Git Service

* ChangeLog: Follow spelling conventions.
[pf3gnuchains/gcc-fork.git] / gcc / gengtype-lex.l
index 24e0ad4..bd848a7 100644 (file)
@@ -28,6 +28,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "gengtype.h"
 #include "gengtype-yacc.h"
 
+#undef YY_USE_PROTOS
+#define YY_DECL int yylex ()
+
 static void update_lineno PARAMS ((const char *l, size_t len));
 
 struct fileloc lexer_line;
@@ -45,7 +48,7 @@ update_lineno (l, len)
 
 %}
 
-ID     [[:alpha:]][[:alnum:]_]*
+ID     [[:alpha:]_][[:alnum:]_]*
 WS     [[:space:]]+
 IWORD  short|long|(un)?signed|char|int|HOST_WIDE_INT|bool|size_t
 ITYPE  {IWORD}({WS}{IWORD})*