mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Make control of expression dumping less of a hassle.
This commit is contained in:
parent
889bbd364e
commit
f5706f9c44
1 changed files with 12 additions and 5 deletions
|
@ -514,7 +514,10 @@ finish_function (function_t *f)
|
||||||
void
|
void
|
||||||
emit_function (function_t *f, expr_t *e)
|
emit_function (function_t *f, expr_t *e)
|
||||||
{
|
{
|
||||||
//printf (" %s =\n", f->def->name);
|
//#define DUMP_EXPR
|
||||||
|
#ifdef DUMP_EXPR
|
||||||
|
printf (" %s =\n", f->def->name);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (f->aux)
|
if (f->aux)
|
||||||
lineno_base = f->aux->source_line;
|
lineno_base = f->aux->source_line;
|
||||||
|
@ -526,9 +529,11 @@ emit_function (function_t *f, expr_t *e)
|
||||||
|
|
||||||
current_scope = f->scope;
|
current_scope = f->scope;
|
||||||
while (e) {
|
while (e) {
|
||||||
//printf ("%d ", pr.source_line);
|
#ifdef DUMP_EXPR
|
||||||
//print_expr (e);
|
printf ("%d ", pr.source_line);
|
||||||
//puts("");
|
print_expr (e);
|
||||||
|
puts("");
|
||||||
|
#endif
|
||||||
|
|
||||||
emit_expr (e);
|
emit_expr (e);
|
||||||
e = e->next;
|
e = e->next;
|
||||||
|
@ -538,7 +543,9 @@ emit_function (function_t *f, expr_t *e)
|
||||||
current_scope = pr.scope;
|
current_scope = pr.scope;
|
||||||
reset_tempdefs ();
|
reset_tempdefs ();
|
||||||
|
|
||||||
//puts ("");
|
#ifdef DUMP_EXPR
|
||||||
|
puts ("");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue