From febb139a4113ef085b61b61b08b1375d08a48c4c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 27 Jun 2001 17:11:21 +0000 Subject: [PATCH] free temp defs at the end of each expr block. CustomTF has gone from 64 to 25 locals. --- tools/qfcc/source/expr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index c5ac2870f..5d25832cc 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -924,10 +924,10 @@ emit_expr (expr_t *e) if (e->e.expr.e1) def = emit_sub_expr (e->e.expr.e1, 0); PR_Statement (op_return, def, 0); - return; + break; case 'g': emit_branch (op_goto, 0, e->e.expr.e1); - return; + break; default: fprintf (stderr, "%s:%d: warning: unused expression ignored\n", @@ -935,6 +935,7 @@ emit_expr (expr_t *e) emit_expr (e->e.expr.e1); break; } + break; case ex_def: case ex_int: case ex_float: @@ -945,4 +946,5 @@ emit_expr (expr_t *e) strings + e->file, e->line); break; } + PR_FreeTempDefs (); }