]> granicus.if.org Git - flex/commitdiff
change yy_size_t to be size_t (resolves bug #1849812)
authorWill Estes <wlestes@users.sourceforge.net>
Sat, 9 Feb 2008 15:49:48 +0000 (15:49 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Sat, 9 Feb 2008 15:49:48 +0000 (15:49 +0000)
NEWS
flex.skl

diff --git a/NEWS b/NEWS
index b1ada5c03f8a1828438c8b461236b7dd147fd356..0bbf9e0de530a1ade69394ae966d8f3965c54c83 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,10 @@ changes between releases of flex.
 
 See the file COPYING for copying conditions.
 
+* version 2.5.35
+
+** change yy_size_t to be size_t (resolves bug #1849812)
+
 * version 2.5.34 released 2007-12-12
 
 ** introduce yylex_init_extra; see the manual for details
index fabb270c97d74094be9ae234586d209543523b29..277153703d8c4b4e1f0f01359e4e7f971cd8e202 100644 (file)
--- a/flex.skl
+++ b/flex.skl
@@ -522,14 +522,9 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]],
 #define unput(c) yyunput( c, YY_G(yytext_ptr) M4_YY_CALL_LAST_ARG )
 ]])
 
-/* The following is because we cannot portably get our hands on size_t
- * (without autoconf's help, which isn't available because we want
- * flex-generated scanners to compile on their own).
- */
-
 #ifndef YY_TYPEDEF_YY_SIZE_T
 #define YY_TYPEDEF_YY_SIZE_T
-typedef unsigned int yy_size_t;
+typedef size_t yy_size_t;
 #endif
 
 #ifndef YY_STRUCT_YY_BUFFER_STATE