Constipate the stdmac[] array.

This commit is contained in:
H. Peter Anvin 2008-02-16 13:58:45 -08:00
parent 927c92b478
commit 188ce76c46
2 changed files with 7 additions and 3 deletions

View File

@ -19,7 +19,11 @@ undef $tasm_count;
open(OUTPUT,">macros.c") or die "unable to open macros.c\n";
print OUTPUT "/* This file auto-generated from standard.mac by macros.pl" .
" - don't edit it */\n\n#include \"compiler.h\"\n\nstatic const char *stdmac[] = {\n";
" - don't edit it */\n";
print OUTPUT "\n";
print OUTPUT "#include \"compiler.h\"\n";
print OUTPUT "\n";
print OUTPUT "static const char * const stdmac[] = {\n";
foreach $fname ( @ARGV ) {
open(INPUT,$fname) or die "unable to open $fname\n";

View File

@ -356,13 +356,13 @@ static MMacro *defining;
* gives our position in the macro set, when we're processing it.
*/
#include "macros.c"
static const char **stdmacpos;
static const char * const *stdmacpos;
/*
* The extra standard macros that come from the object format, if
* any.
*/
static const char **extrastdmac = NULL;
static const char * const *extrastdmac = NULL;
bool any_extrastdmac;
/*