changeset 10048:e6441e13acb2

lex.ll: Mac OSX's flex converts EOF to 0.
author Ben Abbott <bpabbott@mac.com>
date Sat, 02 Jan 2010 12:09:01 -0500
parents 60904110acbb
children 44e889c67abe
files src/ChangeLog src/lex.ll
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Jan 02 13:32:25 2010 +0100
+++ b/src/ChangeLog	Sat Jan 02 12:09:01 2010 -0500
@@ -1,3 +1,7 @@
+2010-01-02  Ben Abbott <bpabbott@mac.com>
+
+	* lex.ll: Mac OSX's flex converts EOF to 0.
+
 2009-12-30  Jaroslav Hajek  <highegg@gmail.com>
 
 	* DLD-FUNCTIONS/cellfun.cc (scalar_query_helper): Remove.
--- a/src/lex.ll	Sat Jan 02 13:32:25 2010 +0100
+++ b/src/lex.ll	Sat Jan 02 12:09:01 2010 -0500
@@ -1036,7 +1036,11 @@
 
     int c = text_yyinput ();
 
+#if defined (__APPLE__) && defined (__MACH__)
+    if (! (c == EOF || c == 0))
+#else /* not MacOS X */
     if (c != EOF)
+#endif
       {
 	current_input_column++;