mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
Readability improvements for regdis.c
This commit is contained in:
parent
f176537c1b
commit
d1dab0f720
4
regs.pl
4
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user