diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-03 21:24:51 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-03 21:24:51 -0700 |
commit | bfc17121378b315399f1df25e902f40884ba7506 (patch) | |
tree | 86962962f84c8696d4900cbef80dca36fe2455e3 | |
parent | 0a98f6046d2cfd41916002c186909d7b0d2009de (diff) | |
download | nasm-bfc17121378b315399f1df25e902f40884ba7506.tar.gz nasm-bfc17121378b315399f1df25e902f40884ba7506.tar.bz2 nasm-bfc17121378b315399f1df25e902f40884ba7506.zip |
BR 1352920: change loc_t -> cloc_t
Change loc_t to cloc_t to avoid AIX conflict.
We really shouldn't use _t names at all; they are usually considered
platform types, but worry about that later.
-rw-r--r-- | eval.c | 4 | ||||
-rw-r--r-- | eval.h | 2 | ||||
-rw-r--r-- | nasm.c | 2 | ||||
-rw-r--r-- | nasm.h | 2 | ||||
-rw-r--r-- | parser.c | 4 | ||||
-rw-r--r-- | parser.h | 2 |
6 files changed, 8 insertions, 8 deletions
@@ -44,7 +44,7 @@ static struct tokenval *tokval; /* The current token */ static int i; /* The t_type of tokval */ static void *scpriv; -static loc_t *location; /* Pointer to current line's segment,offset */ +static cloc_t *location; /* Pointer to current line's segment,offset */ static int *opflags; static struct eval_hints *hint; @@ -813,7 +813,7 @@ static expr *expr6(int critical) } void eval_global_info(struct ofmt *output, lfunc lookup_label, - loc_t * locp) + cloc_t * locp) { outfmt = output; labelfunc = lookup_label; @@ -15,7 +15,7 @@ * look labels up. */ void eval_global_info(struct ofmt *output, lfunc lookup_label, - loc_t * locp); + cloc_t * locp); /* * The evaluator itself. @@ -69,7 +69,7 @@ static uint32_t cmd_cpu = IF_PLEVEL; /* highest level by default */ static uint32_t cpu = IF_PLEVEL; /* passed to insn_size & assemble.c */ int global_offset_changed; /* referenced in labels.c */ -static loc_t location; +static cloc_t location; int in_abs_seg; /* Flag we are in ABSOLUTE seg */ int32_t abs_seg; /* ABSOLUTE segment basis */ int32_t abs_offset; /* ABSOLUTE offset */ @@ -194,7 +194,7 @@ typedef struct { int32_t segment; int64_t offset; int known; -} loc_t; +} cloc_t; /* * Expression-evaluator datatype. Expressions, within the @@ -36,9 +36,9 @@ static int i; static struct tokenval tokval; static efunc error; static struct ofmt *outfmt; /* Structure of addresses of output routines */ -static loc_t *location; /* Pointer to current line's segment,offset */ +static cloc_t *location; /* Pointer to current line's segment,offset */ -void parser_global_info(struct ofmt *output, loc_t * locp) +void parser_global_info(struct ofmt *output, cloc_t * locp) { outfmt = output; location = locp; @@ -10,7 +10,7 @@ #ifndef NASM_PARSER_H #define NASM_PARSER_H -void parser_global_info(struct ofmt *output, loc_t * locp); +void parser_global_info(struct ofmt *output, cloc_t * locp); insn *parse_line(int pass, char *buffer, insn * result, efunc error, evalfunc evaluate, ldfunc ldef); void cleanup_insn(insn * instruction); |