mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
expr.c:
fix a silly stanfu with goto qc-parse.y: suffle the debug code
This commit is contained in:
parent
18ba72b544
commit
504d03a21a
2 changed files with 10 additions and 9 deletions
|
@ -922,7 +922,7 @@ emit_expr (expr_t *e)
|
|||
PR_Statement (op_return, def, 0);
|
||||
return;
|
||||
case 'g':
|
||||
emit_branch (op_goto, 0, e);
|
||||
emit_branch (op_goto, 0, e->e.expr.e1);
|
||||
return;
|
||||
default:
|
||||
fprintf (stderr,
|
||||
|
|
|
@ -544,19 +544,20 @@ build_function (function_t *f)
|
|||
void
|
||||
emit_function (function_t *f, expr_t *e)
|
||||
{
|
||||
//PR_PrintType (f->def->type);
|
||||
//printf (" %s =\n", f->def->name);
|
||||
|
||||
pr_scope = f->def;
|
||||
while (e) {
|
||||
//print_expr (e);
|
||||
//puts("");
|
||||
|
||||
emit_expr (e);
|
||||
e = e->next;
|
||||
}
|
||||
emit_statement (op_done, 0, 0, 0);
|
||||
PR_FlushScope (pr_scope);
|
||||
pr_scope = 0;
|
||||
/*PR_PrintType (f->def->type);
|
||||
printf (" %s =\n", f->def->name);
|
||||
while (e) {
|
||||
print_expr (e);
|
||||
puts("");
|
||||
e = e->next;
|
||||
}
|
||||
puts ("");*/
|
||||
|
||||
//puts ("");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue