summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-26 11:39:00 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-26 11:39:00 -0700
commitba5224d096263d58a8019662b8891294bdad23ed (patch)
treedb62579d2bcf1ca535d85d6a72f8c0390206101d
parentd2ff0ea5d54688a0a7f3f3af3b3a880a66eb100e (diff)
downloadnasm-ba5224d096263d58a8019662b8891294bdad23ed.tar.gz
macros.pl: more readable comments
-rw-r--r--macros.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/macros.pl b/macros.pl
index ec8d85ff..7bba2b19 100644
--- a/macros.pl
+++ b/macros.pl
@@ -25,23 +25,23 @@ print OUTPUT " */\n";
print OUTPUT "\n";
print OUTPUT "#include \"tables.h\"\n";
print OUTPUT "\n";
-print OUTPUT "const char * const nasm_stdmac[] = {\n";
+print OUTPUT "const char * const nasm_stdmac[] = {";
foreach $fname ( @ARGV ) {
open(INPUT,$fname) or die "unable to open $fname\n";
- print OUTPUT " /* *** From $fname *** */\n";
+ print OUTPUT "\n /* From $fname */\n";
while (<INPUT>) {
$line++;
chomp;
if (m/^\s*\*END\*TASM\*MACROS\*\s*$/) {
$tasm_count = $index;
- print OUTPUT " /* --- End of TASM macros --- */\n";
+ print OUTPUT " /* End of TASM macros */\n";
} elsif (m/^\s*((\s*([^\"\';\s]+|\"[^\"]*\"|\'[^\']*\'))*)\s*(;.*)?$/) {
$_ = $1;
s/\\/\\\\/g;
s/"/\\"/g;
if (length > 0) {
- print OUTPUT " \"$_\",\n";
+ print OUTPUT " \"$_\",\n";
$index++;
}
} else {
@@ -50,7 +50,7 @@ foreach $fname ( @ARGV ) {
}
close(INPUT);
}
-print OUTPUT " NULL\n};\n\n";
+print OUTPUT "\n NULL\n};\n\n";
$tasm_count = $index unless ( defined($tasm_count) );
print OUTPUT "const char * const * nasm_stdmac_after_tasm = ",
"&nasm_stdmac[$tasm_count];\n";