summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-10-19 16:44:02 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-10-19 16:44:02 -0700
commit9f9fcfa45577306420643206739d163f63710d68 (patch)
tree9f9ddc5903a2a1633a7fe64259a033f8fbbd34a6
parent777cdbee01d056e3f17d58b272d46c41c9583a61 (diff)
downloadnasm-9f9fcfa45577306420643206739d163f63710d68.tar.gz
macros.pl: handle \-continuation lines in macros.pl
Correctly handle \-continuation lines in macros.pl. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rwxr-xr-xmacros.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/macros.pl b/macros.pl
index dd9c9618..2eb5167b 100755
--- a/macros.pl
+++ b/macros.pl
@@ -66,6 +66,12 @@ foreach $fname ( @ARGV ) {
while (<INPUT>) {
$line++;
chomp;
+ while (/^(.*)\\$/) {
+ $_ = $1;
+ $_ .= <INPUT>;
+ chomp;
+ $line++;
+ }
if (m/^\s*\*END\*TASM\*MACROS\*\s*$/) {
$tasm_count = $index;
print OUT " /* End of TASM macros */\n";