mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
macros.pl: handle \-continuation lines in macros.pl
Correctly handle \-continuation lines in macros.pl. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
777cdbee01
commit
9f9fcfa455
@ -66,6 +66,12 @@ foreach $fname ( @ARGV ) {
|
|||||||
while (<INPUT>) {
|
while (<INPUT>) {
|
||||||
$line++;
|
$line++;
|
||||||
chomp;
|
chomp;
|
||||||
|
while (/^(.*)\\$/) {
|
||||||
|
$_ = $1;
|
||||||
|
$_ .= <INPUT>;
|
||||||
|
chomp;
|
||||||
|
$line++;
|
||||||
|
}
|
||||||
if (m/^\s*\*END\*TASM\*MACROS\*\s*$/) {
|
if (m/^\s*\*END\*TASM\*MACROS\*\s*$/) {
|
||||||
$tasm_count = $index;
|
$tasm_count = $index;
|
||||||
print OUT " /* End of TASM macros */\n";
|
print OUT " /* End of TASM macros */\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user