More work on that autoconf/automake stuff..
[liboconfig.git] / src / parser.y
index ca0844e..9932469 100644 (file)
@@ -2,7 +2,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include "oconfig.h"
-#include "scanner.h"
 
 struct statement_list_s
 {
@@ -166,11 +165,13 @@ entire_file:
        statement_list
        {
         $$.children = $1.statement;
-        $$.children_num = $1.statement.num;
+        $$.children_num = $1.statement_num;
        }
        ;
 
 %%
+#include "scanner.c"
+
 static char *unquote (const char *orig)
 {
        char *ret = strdup (orig);