Hi all I attempted to take into account the differences in flex
between linux and OSX
with this patch. But it seems that OSX uses flex version 2.5.4 and for
OSX these constants are not defined any suggestions welcome.
Index: maketokenizer
===================================================================
--- maketokenizer (revision 14746)
+++ maketokenizer (working copy)
@@ -43,6 +43,32 @@
END
+#Not sure what the earliest version with the defines is
+$flex_version=`flex --version`;
+if( $flex_version = ~/2\.5/ ) {
+print<<END
+/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
+
+#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
+#include <inttypes.h>
+typedef int8_t flex_int8_t;
+typedef uint8_t flex_uint8_t;
+typedef int16_t flex_int16_t;
+typedef uint16_t flex_uint16_t;
+typedef int32_t flex_int32_t;
+typedef uint32_t flex_uint32_t;
+#else
+typedef signed char flex_int8_t;
+typedef short int flex_int16_t;
+typedef int flex_int32_t;
+typedef unsigned char flex_uint8_t;
+typedef unsigned short int flex_uint16_t;
+typedef unsigned int flex_uint32_t;
+#endif /* ! C99 */
+END
+}
+
+
while (<>) {
last if /YY_NUM_RULES/;
}
_______________________________________________
webkit-dev mailing list
[email protected]
http://www.opendarwin.org/mailman/listinfo/webkit-dev