diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-10-19 16:44:02 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-19 16:44:02 -0700 |
commit | 9f9fcfa45577306420643206739d163f63710d68 (patch) | |
tree | 9f9ddc5903a2a1633a7fe64259a033f8fbbd34a6 | |
parent | 777cdbee01d056e3f17d58b272d46c41c9583a61 (diff) | |
download | nasm-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-x | macros.pl | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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"; |