mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-22 16:37:09 +02:00
b2/: disallow assigning to FN
This commit is contained in:
parent
c2414a5d2c
commit
b35b6e2688
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user