mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-06 18:30:21 +08:00
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>
This commit is contained in:
parent
8ac25aa020
commit
36034ec652
8
eval.c
8
eval.c
@ -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;
|
||||
}
|
||||
|
3
eval.h
3
eval.h
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user