mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
b2/: disallow assigning to FN
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user