1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-05 03:47:10 +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); append(&res, &res_len, c->u.s);
break; break;
case ct_var: case ct_var:
val = var_lookup(in, c->u.var); val = var_lookup(out, c->u.var);
if (!val) if (!val)
val = var_lookup(out, c->u.var); val = var_lookup(in, c->u.var);
assert(val); assert(val);
append(&res, &res_len, val); append(&res, &res_len, val);
break; break;