1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-04 23:05:21 +02:00

b2/subex.c (compose): search "out" variables before "in" variables

This commit is contained in:
Werner Almesberger 2012-06-03 13:31:22 -03:00
parent ee0a2a41fa
commit 31c1c58691

View File

@ -104,9 +104,9 @@ static char *compose(const struct chunk *c,
append(&res, &res_len, c->u.s);
break;
case ct_var:
val = var_lookup(in, c->u.var);
if (!val)
val = var_lookup(out, c->u.var);
if (!val)
val = var_lookup(in, c->u.var);
assert(val);
append(&res, &res_len, val);
break;