diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-11 22:14:18 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-11 22:14:18 +0000 |
commit | b79f0d0cc336662d16a22e07ad429e8deb71c956 (patch) | |
tree | c3bd6f6f1808ca5d62a0554ac6f62c1acd405ca3 /insns.pl | |
parent | 2ba7ed7122eea2e594f2f67ea9427b7e702692cc (diff) | |
download | nasm-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.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ); |