summaryrefslogtreecommitdiff
path: root/insns.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-11 22:14:18 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-09-11 22:14:18 +0000
commitb79f0d0cc336662d16a22e07ad429e8deb71c956 (patch)
treec3bd6f6f1808ca5d62a0554ac6f62c1acd405ca3 /insns.pl
parent2ba7ed7122eea2e594f2f67ea9427b7e702692cc (diff)
downloadnasm-b79f0d0cc336662d16a22e07ad429e8deb71c956.tar.gz
Use enums to make debugging easier
When we're dealing with a field which is guaranteed to have an enum type, then declare it as such so it shows up in debuggers.
Diffstat (limited to 'insns.pl')
-rw-r--r--insns.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/insns.pl b/insns.pl
index 88e47634..f5d5bc1c 100644
--- a/insns.pl
+++ b/insns.pl
@@ -186,7 +186,7 @@ if ( !defined($output) || $output eq 'n' ) {
print N "\n};\n\n";
print N "/* and the corresponding opcodes */\n";
- print N "static const int ico[] = {";
+ print N "static const enum opcode ico[] = {";
$first = 1;
foreach $i (@opcodes_cc) {
print N "," if ( !$first );