summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fde47df)
raw | patch | inline | side by side (parent: fde47df)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 21 Apr 2007 09:55:20 +0000 (11:55 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 21 Apr 2007 09:55:20 +0000 (11:55 +0200) |
src/liboconfig/oconfig.c | patch | blob | history | |
src/liboconfig/scanner.l | patch | blob | history |
index f8d18499d6caacb5eba0524a82ccef4767e9b2e0..2bb80cc99a864b6112dd065048221310b8ca3211 100644 (file)
--- a/src/liboconfig/oconfig.c
+++ b/src/liboconfig/oconfig.c
#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 aa111a2933b7fef756ec40dd96707e9d62d7471c..646bbc63a618dd12931df8ab60d350bb3f6d3575 100644 (file)
--- a/src/liboconfig/scanner.l
+++ b/src/liboconfig/scanner.l
#include "aux_types.h"
#include "parser.h"
%}
+%option yylineno
WHITE_SPACE [\ \t\b]
QUOTED_STRING \"([^\\"]+|\\.)*\"
UNQUOTED_STRING [0-9A-Za-z_]+