summaryrefslogtreecommitdiff
path: root/insns.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-09-12 16:34:06 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-09-12 16:34:06 +0000
commit24cfef4f8f7ee01f841e86972001b06acae243ea (patch)
treea3489ab0d04671bb27847c9be3fad246d6bb2e85 /insns.h
parent628168c50264147e1b8b200833f25a4e166f5cd8 (diff)
downloadnasm-24cfef4f8f7ee01f841e86972001b06acae243ea.tar.gz
nasm-24cfef4f8f7ee01f841e86972001b06acae243ea.tar.bz2
nasm-24cfef4f8f7ee01f841e86972001b06acae243ea.zip
Clean up unnecessary dependencies.
Diffstat (limited to 'insns.h')
-rw-r--r--insns.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/insns.h b/insns.h
index 162e5ff..3fb2d84 100644
--- a/insns.h
+++ b/insns.h
@@ -10,6 +10,15 @@
#ifndef NASM_INSNS_H
#define NASM_INSNS_H
+#include "insnsi.h" /* instruction opcode enum */
+
+/* max length of any instruction, register name etc. */
+#if MAX_INSLEN > 9 /* MAX_INSLEN defined in insnsi.h */
+#define MAX_KEYWORD MAX_INSLEN
+#else
+#define MAX_KEYWORD 9
+#endif
+
struct itemplate {
int opcode; /* the token, passed from "parser.c" */
int operands; /* number of operands */