diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-11 04:16:57 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-11 04:16:57 +0000 |
commit | 3360d79369fa74872f3344e6a6cd1fe7519763c8 (patch) | |
tree | f5032817b85ef2166576819b8e906df8bc76c31d /insns.h | |
parent | ea6bfb8107f69b6807f77cca021c7925feead1e3 (diff) | |
download | nasm-3360d79369fa74872f3344e6a6cd1fe7519763c8.tar.gz nasm-3360d79369fa74872f3344e6a6cd1fe7519763c8.tar.bz2 nasm-3360d79369fa74872f3344e6a6cd1fe7519763c8.zip |
Make the big instruction arrays "const"
Make the big instruction arrays "const", so they end up in readonly
storage. While we're at it, move their prototypes into insns.h.
Diffstat (limited to 'insns.h')
-rw-r--r-- | insns.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -27,6 +27,10 @@ struct itemplate { uint32_t flags; /* some flags */ }; +/* Tables for the assembler and disassembler, respectively */ +extern const struct itemplate * const nasm_instructions[]; +extern const struct itemplate * const * const itable[]; + /* * this define is used to signify the end of an itemplate */ |