diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-07-12 12:53:49 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-07-12 12:55:24 -0700 |
commit | afa06137fa3d6de926134b4061c3ff4a74d212cf (patch) | |
tree | ddfb5182b1e0d06cfc731563cfdda2814b658cc5 /nasm.h | |
parent | d0fbb7f0ab355fd4e73d1aab215a2aa387b615c3 (diff) | |
download | nasm-afa06137fa3d6de926134b4061c3ff4a74d212cf.tar.gz |
Hash even backend-specific directives, unify null functions
Hash all directives, even the ones that are backend-specific,
and instead pass the backend an already-parsed directive number.
Furthermore, unify null functions across various backends.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'nasm.h')
-rw-r--r-- | nasm.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -45,6 +45,7 @@ #include "nasmlib.h" #include "preproc.h" #include "insnsi.h" /* For enum opcode */ +#include "directives.h" /* For enum directive */ #define NO_SEG -1L /* null segment value */ #define SEG_ABS 0x40000000L /* mask for far-absolute segments */ @@ -904,7 +905,7 @@ struct ofmt { * should also return non-zero if it correctly processes the * directive. */ - int (*directive) (char *directive, char *value, int pass); + int (*directive)(enum directives directive, char *value, int pass); /* * This procedure is called before anything else - even before |