}
c -= 1;
}
- fputs("\n", f);
for (i = 0; i < p->body_size; i++) {
if (p->body[i]->struct_name.txt &&
used[i]) {
// assume this has been copied out
if (p->body[i]->isref)
- fprintf(f, "\t\t*(void**)body[%d] = NULL;\n", i);
+ fprintf(f, "\t\t*(void**)body[%d] = NULL;", i);
else
- fprintf(f, "\t\tmemset(body[%d], 0, sizeof(struct %.*s));\n", i, p->body[i]->struct_name.len, p->body[i]->struct_name.txt);
+ fprintf(f, "\t\tmemset(body[%d], 0, sizeof(struct %.*s));", i, p->body[i]->struct_name.len, p->body[i]->struct_name.txt);
}
}
+ fputs("\n", f);
free(used);
}
if (p->code.txt) {
fprintf(f, "#line %d \"%s\"\n", p->code_line, file);
gen_code(p, f, g);
+ fprintf(f, "#line 7 \"gen_reduce\"\n");
}
if (p->head->struct_name.txt)