=================================================================== RCS file: /cvs/cvs/blind/parse.y,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- blind/parse.y 2022/03/19 10:04:59 1.1 +++ blind/parse.y 2022/03/20 17:33:18 1.2 @@ -21,8 +21,10 @@ int yylex(void); int yyerror(const char *, ...); +int config_load(struct blind *, const char *); struct blind *env = NULL; +static int errors = 0; typedef struct { union { @@ -36,8 +38,8 @@ typedef struct { %token EXPIRE -%token STRING %token NUMBER +%token STRING %% grammar : @@ -61,4 +63,15 @@ int yylex(void) { return (0); +} + +int +config_load(struct blind *temp, const char *filename) +{ + env = temp; + errors = 0; + + // + + return (0); }