8 static void yyerror(const char *);
13 yyerror(const char *msg
)
15 warnx
("aliases line %d: %s", yylineno
, msg
);
28 struct stritem
*strit
;
32 %token
<ident
> T_IDENT
37 %type
<alias
> alias aliases
43 LIST_FIRST
(&aliases
) = $1;
52 if
($2 != NULL
&& $1 != NULL
)
53 LIST_INSERT_AFTER
($2, $1, next
);
60 alias
: T_IDENT
':' dests
'\n'
66 al
= calloc
(1, sizeof
(*al
));
70 SLIST_FIRST
(&al
->dests
) = $3;
86 it
= calloc
(1, sizeof
(*it
));
98 it
= calloc
(1, sizeof
(*it
));
102 SLIST_NEXT
(it
, next
) = $3;