Fixes for Mac OS x.
authorFlorian Forster <octo@leeloo.(none)>
Sat, 21 Apr 2007 09:49:44 +0000 (11:49 +0200)
committerFlorian Forster <octo@leeloo.(none)>
Sat, 21 Apr 2007 09:49:44 +0000 (11:49 +0200)
src/oconfig.c
src/scanner.l

index f8d1849..2bb80cc 100644 (file)
 
 #include "oconfig.h"
 
-/* Functions provided by the scanner */
-void yyset_in  (FILE *);
+extern FILE *yyin;
 
 oconfig_item_t *ci_root;
 
+static void yyset_in  (FILE *fd)
+{
+  yyin = fd;
+} /* void yyset_in */
+
 oconfig_item_t *oconfig_parse_fh (FILE *fh)
 {
   int status;
index aa111a2..646bbc6 100644 (file)
@@ -22,6 +22,7 @@
 #include "aux_types.h"
 #include "parser.h"
 %}
+%option yylineno
 WHITE_SPACE [\ \t\b]
 QUOTED_STRING \"([^\\"]+|\\.)*\"
 UNQUOTED_STRING [0-9A-Za-z_]+