X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Foconfig.c;h=2bb80cc99a864b6112dd065048221310b8ca3211;hb=418dc20a0a10d804dcfad219a6cfdbb64fc122f8;hp=f8d18499d6caacb5eba0524a82ccef4767e9b2e0;hpb=61f2ba841fdeef7bf2eb0b647cc1cf7cd5b7a769;p=liboconfig.git diff --git a/src/oconfig.c b/src/oconfig.c index f8d1849..2bb80cc 100644 --- a/src/oconfig.c +++ b/src/oconfig.c @@ -24,11 +24,15 @@ #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;