summaryrefslogtreecommitdiff
path: root/nasm.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-20 15:20:16 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-20 15:20:16 -0700
commitcfb7176ca211d2bdc8c790c1b49e6f29db42f777 (patch)
tree5c8749b99df0ac2a1b508d2e2e52248e3a170dc0 /nasm.h
parent76cbaa4b2e433ed78031dc75ae1b3183867c55ab (diff)
downloadnasm-cfb7176ca211d2bdc8c790c1b49e6f29db42f777.tar.gz
Move the output format macros into the macros.pl mechanism
Move the handling of "extra" macros (i.e. output format macros) into the macros.pl mechanism. This allows us to change the format of the internal macro store in the future - e.g. to a single byte store without redundant pointers. Also, stop using indicies into a long array when there is no good reason to not just use different arrays.
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 ec44f164..203750e5 100644
--- a/nasm.h
+++ b/nasm.h
@@ -17,6 +17,7 @@
#include <inttypes.h>
#include "version.h" /* generated NASM version macros */
#include "nasmlib.h"
+#include "preproc.h"
#include "insnsi.h" /* For enum opcode */
#define NO_SEG -1L /* null segment value */
@@ -750,7 +751,7 @@ struct ofmt {
* and user-level equivalents for any format-specific
* directives).
*/
- const char **stdmac;
+ const macros_t *stdmac;
/*
* This procedure is called at the start of an output session.