2 /* $DragonFly: src/libexec/dma/aliases_parse.y,v 1.2 2008/02/03 11:06:17 matthias Exp $ */
9 static void yyerror(const char *);
14 yyerror(const char *msg)
16 warnx("aliases line %d: %s", yylineno, msg);
29 struct stritem *strit;
33 %token <ident> T_IDENT
38 %type <alias> alias aliases
44 LIST_FIRST(&aliases) = $1;
53 if ($2 != NULL && $1 != NULL)
54 LIST_INSERT_AFTER($2, $1, next);
61 alias : T_IDENT ':' dests '\n'
67 al = calloc(1, sizeof(*al));
71 SLIST_FIRST(&al->dests) = $3;
87 it = calloc(1, sizeof(*it));
99 it = calloc(1, sizeof(*it));
103 SLIST_NEXT(it, next) = $3;