aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r--src/cfg_file.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h
index 7294bb28e..b80f4081c 100644
--- a/src/cfg_file.h
+++ b/src/cfg_file.h
@@ -39,16 +39,8 @@
/* 1 worker by default */
#define DEFAULT_WORKERS_NUM 1
-#define yyerror(fmt, ...) \
- fprintf (stderr, "Config file parse error!\non line: %d\n", yylineno); \
- fprintf (stderr, "while reading text: %s\nreason: ", yytext); \
- fprintf (stderr, fmt, ##__VA_ARGS__); \
- fprintf (stderr, "\n")
-#define yywarn(fmt, ...) \
- fprintf (stderr, "Config file parse warning!\non line %d\n", yylineno); \
- fprintf (stderr, "while reading text: %s\nreason: ", yytext); \
- fprintf (stderr, fmt, ##__VA_ARGS__); \
- fprintf (stderr, "\n")
+#define yyerror parse_err
+#define yywarn parse_warn
struct expression;
struct tokenizer;
@@ -292,6 +284,8 @@ struct expression* parse_expression (memory_pool_t *pool, char *line);
int yylex (void);
int yyparse (void);
void yyrestart (FILE *);
+void parse_err (const char *fmt, ...);
+void parse_warn (const char *fmt, ...);
#endif /* ifdef CFG_FILE_H */
/*