9 static void yyerror(const char *);
14 yyerror(const char *msg
)
17 * Because we do error '\n' below, we need to report the error
18 * one line above of what yylineno points to.
20 syslog
(LOG_CRIT
, "aliases line %d: %s", yylineno
- 1, msg
);
21 fprintf
(stderr
, "aliases line %d: %s\n", yylineno
- 1, msg
);
34 struct stritem
*strit
;
38 %token
<ident
> T_IDENT
43 %type
<alias
> alias aliases
49 LIST_FIRST
(&aliases
) = $1;
58 if
($2 != NULL
&& $1 != NULL
)
59 LIST_INSERT_AFTER
($2, $1, next
);
66 alias
: T_IDENT
':' dests
'\n'
72 al
= calloc
(1, sizeof
(*al
));
76 SLIST_FIRST
(&al
->dests
) = $3;
91 it
= calloc
(1, sizeof
(*it
));
103 it
= calloc
(1, sizeof
(*it
));
107 SLIST_NEXT
(it
, next
) = $3;