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 diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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
+++ b/src/lex.ll
@@ -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++;