1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 08:15:31 +02:00

b2/: disallow assigning to FN

This commit is contained in:
Werner Almesberger 2012-06-03 02:08:32 -03:00
parent c2414a5d2c
commit b35b6e2688

View File

@ -231,6 +231,8 @@ struct subst *subst_assign(const char *dst, enum relop op, const char *pat)
{
struct subst *sub;
if (dst == fn)
yyerror("can't assign to pseudo-variable FN");
sub = alloc_subst(st_assign);
sub->u.assign.dst = dst;
sub->u.assign.op = op;