From ba5224d096263d58a8019662b8891294bdad23ed Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 26 May 2008 11:39:00 -0700 Subject: [PATCH] macros.pl: more readable comments --- macros.pl | 10 +++++----- 1 file 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 () { $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"; -- 2.11.4.GIT