9 static void yyerror(const char *);
11 #if YYPATCH < 20180510
16 yyerror(const char *msg)
19 * Because we do error '\n' below, we need to report the error
20 * one line above of what yylineno points to.
22 syslog(LOG_CRIT, "aliases line %d: %s", yylineno - 1, msg);
23 fprintf(stderr, "aliases line %d: %s\n", yylineno - 1, msg);
36 struct stritem *strit;
40 %token <ident> T_IDENT
45 %type <alias> alias aliases
51 LIST_FIRST(&aliases) = $1;
60 if ($2 != NULL && $1 != NULL)
61 LIST_INSERT_AFTER($2, $1, next);
68 alias : T_IDENT ':' dests '\n'
74 al = calloc(1, sizeof(*al));
78 SLIST_FIRST(&al->dests) = $3;
93 it = calloc(1, sizeof(*it));
105 it = calloc(1, sizeof(*it));
109 SLIST_NEXT(it, next) = $3;