summaryrefslogtreecommitdiff
path: root/regs.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-20 14:38:21 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-20 14:39:36 -0700
commitd1dab0f720496147a5d8d7736cbe0c72857b5e98 (patch)
treef7e9ba003a5c6bf7a6282529e27ccb3beb8cfc57 /regs.pl
parentf176537c1b1c429c3fecc7b248f4709e83b8717c (diff)
downloadnasm-d1dab0f720496147a5d8d7736cbe0c72857b5e98.tar.gz
Readability improvements for regdis.c
Diffstat (limited to 'regs.pl')
-rwxr-xr-xregs.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/regs.pl b/regs.pl
index d4e39967..9c0d96e2 100755
--- a/regs.pl
+++ b/regs.pl
@@ -136,7 +136,7 @@ if ( $fmt eq 'h' ) {
print "/* automatically generated from $file - do not edit */\n\n";
print "#include \"regs.h\"\n\n";
foreach $class ( sort(keys(%disclass)) ) {
- printf "const enum reg_enum nasm_rd_%-8s[%d] = {\n",
+ printf "const enum reg_enum nasm_rd_%-8s[%2d] = {",
$class, scalar @{$disclass{$class}};
@foo = @{$disclass{$class}};
@bar = ();
@@ -153,7 +153,7 @@ if ( $fmt eq 'h' ) {
# Output regdis.h
print "/* automatically generated from $file - do not edit */\n";
foreach $class ( sort(keys(%disclass)) ) {
- printf "const enum reg_enum nasm_rd_%-8s[%d];\n",
+ printf "const enum reg_enum nasm_rd_%-8s[%2d];\n",
$class, scalar @{$disclass{$class}};
}
} else {