diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-11 00:05:31 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-11 00:05:57 -0700 |
commit | 70055964fc24699c07c515dd9a603196ba06a654 (patch) | |
tree | 10deb40fda3517be5d7b21b191429bcfd220d15a /nasm.h | |
parent | 54901e1785dcc7e8aec3198f58f580165856672f (diff) | |
download | nasm-70055964fc24699c07c515dd9a603196ba06a654.tar.gz |
Additional uses of bool and enum
Proper use of bool and enum makes code easier to debug. Do more of
it. In particular, we really should stomp out any residual uses of
magic constants that aren't enums or, in some cases, even #defines.
Diffstat (limited to 'nasm.h')
-rw-r--r-- | nasm.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -60,7 +60,7 @@ struct ofmt; /* * A label-lookup function should look like this. */ -typedef int (*lfunc) (char *label, int32_t *segment, int32_t *offset); +typedef bool (*lfunc) (char *label, int32_t *segment, int32_t *offset); /* * And a label-definition function like this. The boolean parameter @@ -69,7 +69,7 @@ typedef int (*lfunc) (char *label, int32_t *segment, int32_t *offset); * an EQU or a segment-base symbol, which shouldn't. */ typedef void (*ldfunc) (char *label, int32_t segment, int32_t offset, - char *special, int is_norm, int isextrn, + char *special, bool is_norm, bool isextrn, struct ofmt * ofmt, efunc error); /* @@ -721,8 +721,8 @@ struct ofmt { * been an EXTERN, a COMMON or a GLOBAL. The distinction should * be obvious to the output format from the other parameters. */ - void (*symdef) (char *name, int32_t segment, int32_t offset, int is_global, - char *special); + void (*symdef) (char *name, int32_t segment, int32_t offset, + int is_global, char *special); /* * This procedure is called when the source code requests a |