summaryrefslogtreecommitdiff
path: root/insns.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-11 04:16:57 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-09-11 04:16:57 +0000
commit3360d79369fa74872f3344e6a6cd1fe7519763c8 (patch)
treef5032817b85ef2166576819b8e906df8bc76c31d /insns.h
parentea6bfb8107f69b6807f77cca021c7925feead1e3 (diff)
downloadnasm-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/insns.h b/insns.h
index c81b9ed..ac8ccbb 100644
--- a/insns.h
+++ b/insns.h
@@ -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
*/