summaryrefslogtreecommitdiff
path: root/insns.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-05-14 22:38:55 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-05-14 22:38:55 +0000
commit310b3e165f86d6655bf68bd89ff9309aa63663f2 (patch)
treed06af9a44d1e2f0d165caf33be7a3718995f5838 /insns.h
parent86e94b1b3396a1611dcb545baed5f9760cf903c3 (diff)
downloadnasm-310b3e165f86d6655bf68bd89ff9309aa63663f2.tar.gz
nasm-310b3e165f86d6655bf68bd89ff9309aa63663f2.tar.bz2
nasm-310b3e165f86d6655bf68bd89ff9309aa63663f2.zip
Code cleanup fixes from Ed Beroset
Diffstat (limited to 'insns.h')
-rw-r--r--insns.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/insns.h b/insns.h
index 2135846..710c888 100644
--- a/insns.h
+++ b/insns.h
@@ -14,10 +14,15 @@ struct itemplate {
int opcode; /* the token, passed from "parser.c" */
int operands; /* number of operands */
long opd[3]; /* bit flags for operand types */
- char *code; /* the code it assembles to */
+ const char *code; /* the code it assembles to */
unsigned long flags; /* some flags */
};
+/*
+ * this define is used to signify the end of an itemplate
+ */
+#define ITEMPLATE_END {-1,-1,{-1,-1,-1},NULL,0}
+
/*
* Instruction template flags. These specify which processor
* targets the instruction is eligible for, whether it is