1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

cope with different cpp formatting on some systems, and make sure we

don't loop forever if we get a cpp format line we don't understand
This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent c47e88dabf
commit 003c6c493b
2 changed files with 16 additions and 2 deletions

View File

@ -1937,7 +1937,14 @@ again:
$parser->YYData->{INPUT_FILENAME} = $2;
goto again;
}
goto again;
if (s/^\#line (\d+) \"(.*?)\"( \d+|)//) {
$parser->YYData->{LINE} = $1-1;
$parser->YYData->{INPUT_FILENAME} = $2;
goto again;
}
if (s/^(\#.*)$//m) {
goto again;
}
}
if (s/^(\n)//) {
$parser->YYData->{LINE}++;

View File

@ -267,7 +267,14 @@ again:
$parser->YYData->{INPUT_FILENAME} = $2;
goto again;
}
goto again;
if (s/^\#line (\d+) \"(.*?)\"( \d+|)//) {
$parser->YYData->{LINE} = $1-1;
$parser->YYData->{INPUT_FILENAME} = $2;
goto again;
}
if (s/^(\#.*)$//m) {
goto again;
}
}
if (s/^(\n)//) {
$parser->YYData->{LINE}++;