9 static void yyerror(const char *);
12 yyerror(const char *msg)
15 * Because we do error '\n' below, we need to report the error
16 * one line above of what yylineno points to.
18 syslog(LOG_CRIT, "aliases line %d: %s", yylineno - 1, msg);
19 fprintf(stderr, "aliases line %d: %s\n", yylineno - 1, msg);
32 struct stritem *strit;
36 %token <ident> T_IDENT
41 %type <alias> alias aliases
47 LIST_FIRST(&aliases) = $1;
56 if ($2 != NULL && $1 != NULL)
57 LIST_INSERT_AFTER($2, $1, next);
64 alias : T_IDENT ':' dests '\n'
70 al = calloc(1, sizeof(*al));
74 SLIST_FIRST(&al->dests) = $3;
89 it = calloc(1, sizeof(*it));
101 it = calloc(1, sizeof(*it));
105 SLIST_NEXT(it, next) = $3;