diff options
Diffstat (limited to 'regs.pl')
-rwxr-xr-x | regs.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -99,7 +99,7 @@ if ( $fmt eq 'h' ) { } elsif ( $fmt eq 'c' ) { # Output regs.c print "/* automatically generated from $file - do not edit */\n"; - print "static const char *reg_names[] = "; $ch = '{'; + print "static const char * const reg_names[] = "; $ch = '{'; # This one has no dummy entry for 0 foreach $reg ( sort(keys(%regs)) ) { print "$ch\n \"${reg}\""; @@ -128,7 +128,7 @@ if ( $fmt eq 'h' ) { # Output regdis.c print "/* automatically generated from $file - do not edit */\n"; foreach $class ( sort(keys(%disclass)) ) { - printf "static const int rd_%-8s[] = {", $class; + printf "static const enum reg_enum rd_%-8s[] = {", $class; @foo = @{$disclass{$class}}; @bar = (); for ( $i = 0 ; $i < scalar(@foo) ; $i++ ) { |