summaryrefslogtreecommitdiff
path: root/tables.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-20 14:21:29 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-20 14:21:29 -0700
commita4835d466c50237afcc30ff99bc980aeb5d17ce6 (patch)
tree66357bce22a451743c6b1b02e71f6860d9d84bd2 /tables.h
parent73252a92ae00ab63a6f52f9c987d4550c20b9100 (diff)
downloadnasm-a4835d466c50237afcc30ff99bc980aeb5d17ce6.tar.gz
nasm-a4835d466c50237afcc30ff99bc980aeb5d17ce6.tar.bz2
nasm-a4835d466c50237afcc30ff99bc980aeb5d17ce6.zip
Avoid #including .c files; instead compile as separate units
Don't #include .c files, even if they are auto-generated; instead compile them as separate compilation units and let the linker do its job.
Diffstat (limited to 'tables.h')
-rw-r--r--tables.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/tables.h b/tables.h
new file mode 100644
index 0000000..9945798
--- /dev/null
+++ b/tables.h
@@ -0,0 +1,36 @@
+/*
+ * tables.h
+ *
+ * Declarations for auto-generated tables
+ */
+
+#ifndef TABLES_H
+#define TABLES_H
+
+#include "compiler.h"
+#include <inttypes.h>
+#include "insnsi.h" /* For enum opcode */
+
+/* --- From standard.mac via macros.pl: --- */
+
+/* macros.c */
+extern const char * const nasm_stdmac[];
+extern const char * const * nasm_stdmac_after_tasm;
+
+/* --- From insns.dat via insns.pl: --- */
+
+/* insnsn.c */
+extern const char * const nasm_insn_names[];
+extern const char * const nasm_cond_insn_names[];
+extern const enum opcode nasm_cond_insn_opcodes[];
+
+/* --- From regs.dat via regs.pl: --- */
+
+/* regs.c */
+extern const char * const nasm_reg_names[];
+/* regflags.c */
+extern const int32_t nasm_reg_flags[];
+/* regvals.c */
+extern const int nasm_regvals[];
+
+#endif /* TABLES_H */