diff options
author | H. Peter Anvin <hpa@zytor.com> | 2002-05-14 22:38:55 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2002-05-14 22:38:55 +0000 |
commit | 310b3e165f86d6655bf68bd89ff9309aa63663f2 (patch) | |
tree | d06af9a44d1e2f0d165caf33be7a3718995f5838 /insns.h | |
parent | 86e94b1b3396a1611dcb545baed5f9760cf903c3 (diff) | |
download | nasm-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.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |