mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 07:54:06 +02:00
b2/subex.c (compose): search "out" variables before "in" variables
This commit is contained in:
parent
ee0a2a41fa
commit
31c1c58691
@ -104,9 +104,9 @@ static char *compose(const struct chunk *c,
|
|||||||
append(&res, &res_len, c->u.s);
|
append(&res, &res_len, c->u.s);
|
||||||
break;
|
break;
|
||||||
case ct_var:
|
case ct_var:
|
||||||
val = var_lookup(in, c->u.var);
|
|
||||||
if (!val)
|
|
||||||
val = var_lookup(out, c->u.var);
|
val = var_lookup(out, c->u.var);
|
||||||
|
if (!val)
|
||||||
|
val = var_lookup(in, c->u.var);
|
||||||
assert(val);
|
assert(val);
|
||||||
append(&res, &res_len, val);
|
append(&res, &res_len, val);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user