diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-02 21:53:51 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-02 21:53:51 -0700 |
commit | fe501957c09a80347b1eb005ba1b1bc0fce14b0d (patch) | |
tree | 6747b0e256b60819125c652dd58577b12c71556e /regs.pl | |
parent | 4a8daf06074351df2588a9f5cd2b4a558bde9935 (diff) | |
download | nasm-fe501957c09a80347b1eb005ba1b1bc0fce14b0d.tar.gz nasm-fe501957c09a80347b1eb005ba1b1bc0fce14b0d.tar.bz2 nasm-fe501957c09a80347b1eb005ba1b1bc0fce14b0d.zip |
Portability fixes
Concentrate compiler dependencies to compiler.h; make sure compiler.h
is included first in every .c file (since some prototypes may depend
on the presence of feature request macros.)
Actually use the conditional inclusion of various functions (totally
broken in previous releases.)
Diffstat (limited to 'regs.pl')
-rwxr-xr-x | regs.pl | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -78,7 +78,7 @@ close(REGS); if ( $fmt eq 'h' ) { # Output regs.h - print "/* automatically generated from $file - do not edit */\n"; + print "/* automatically generated from $file - do not edit */\n\n"; $expr_regs = 1; printf "#define EXPR_REG_START %d\n", $expr_regs; print "enum reg_enum {\n"; @@ -101,7 +101,8 @@ if ( $fmt eq 'h' ) { print "\n"; } elsif ( $fmt eq 'c' ) { # Output regs.c - print "/* automatically generated from $file - do not edit */\n"; + print "/* automatically generated from $file - do not edit */\n\n"; + print "#include \"compiler.h\"\n\n"; print "static const char * const reg_names[] = "; $ch = '{'; # This one has no dummy entry for 0 foreach $reg ( sort(keys(%regs)) ) { |