diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2016-02-18 01:18:50 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2016-02-18 01:18:50 -0800 |
commit | 36034ec65203acfd1419992743a143b33bfc8ab1 (patch) | |
tree | 726da976ab7b08fd1060ab82de54fc5549b8f2a2 | |
parent | 8ac25aa02000889df94c3ea96bdda6375ddfa661 (diff) | |
download | nasm-36034ec65203acfd1419992743a143b33bfc8ab1.tar.gz |
eval: complete globalization of output format
Complete the globalization of the output format definitions;
one more place where a local copy was cached for no good reason.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | eval.c | 8 | ||||
-rw-r--r-- | eval.h | 3 |
2 files changed, 3 insertions, 8 deletions
@@ -56,8 +56,6 @@ static scanner scan; /* Address of scanner routine */ static lfunc labelfunc; /* Address of label routine */ -static struct ofmt *outfmt; /* Structure of addresses of output routines */ - static expr **tempexprs = NULL; static int ntempexprs; static int tempexprs_size = 0; @@ -241,7 +239,7 @@ static expr *segment_part(expr * e) " is already a segment base"); return NULL; } else { - int32_t base = outfmt->segbase(seg + 1); + int32_t base = ofmt->segbase(seg + 1); begintemp(); addtotemp((base == NO_SEG ? EXPR_UNKNOWN : EXPR_SEGBASE + base), @@ -953,10 +951,8 @@ static expr *expr6(int critical) } } -void eval_global_info(struct ofmt *output, lfunc lookup_label, - struct location * locp) +void eval_global_info(lfunc lookup_label, struct location * locp) { - outfmt = output; labelfunc = lookup_label; location = locp; } @@ -43,8 +43,7 @@ * providing segment-base details, and what function can be used to * look labels up. */ -void eval_global_info(struct ofmt *output, lfunc lookup_label, - struct location * locp); +void eval_global_info(lfunc lookup_label, struct location * locp); /* * The evaluator itself. |