Commit 2a5db07e authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Polish the generated C code for the set action

parent d6127c3e
......@@ -92,6 +92,7 @@ static void
vcc_assign_expr(struct vcc *tl, struct symbol *sym, const struct assign *ap)
{
const char *e;
unsigned indent = 1;
e = ap->expr;
if (e == NULL)
......@@ -99,9 +100,10 @@ vcc_assign_expr(struct vcc *tl, struct symbol *sym, const struct assign *ap)
while (*e != '\0') {
if (*e == '\v')
Fb(tl, 0, "%s", sym->rname);
Fb(tl, indent, "%s", sym->rname);
else
Fb(tl, 0, "%c", *e);
Fb(tl, indent, "%c", *e);
indent = 0;
e++;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment