summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-12 12:53:49 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-07-12 12:55:24 -0700
commitafa06137fa3d6de926134b4061c3ff4a74d212cf (patch)
treeddfb5182b1e0d06cfc731563cfdda2814b658cc5 /nasm.h
parentd0fbb7f0ab355fd4e73d1aab215a2aa387b615c3 (diff)
downloadnasm-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/nasm.h b/nasm.h
index 0e6482ba..faab7ef0 100644
--- a/nasm.h
+++ b/nasm.h
@@ -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