diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-05-20 14:38:21 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-05-20 14:39:36 -0700 |
commit | d1dab0f720496147a5d8d7736cbe0c72857b5e98 (patch) | |
tree | f7e9ba003a5c6bf7a6282529e27ccb3beb8cfc57 /regs.pl | |
parent | f176537c1b1c429c3fecc7b248f4709e83b8717c (diff) | |
download | nasm-d1dab0f720496147a5d8d7736cbe0c72857b5e98.tar.gz |
Readability improvements for regdis.c
Diffstat (limited to 'regs.pl')
-rwxr-xr-x | regs.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |