From 5b2159c46081b46b840f8b3791ec671e4e0ccb1f Mon Sep 17 00:00:00 2001 From: Peter Berg Larsen Date: Mon, 20 Dec 2004 16:50:35 +0000 Subject: [PATCH] Warzone 2100 has in a header a definition that ends with a slash. As '.' does not include '\n' winedump keeps looking ahead until eof. --- tools/winedump/function_grep.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winedump/function_grep.pl b/tools/winedump/function_grep.pl index 71cd6b1f026..42183cfe0b3 100755 --- a/tools/winedump/function_grep.pl +++ b/tools/winedump/function_grep.pl @@ -92,7 +92,7 @@ foreach my $file (@files) { # remove preprocessor directives if(s/^\s*\#/\#/m) { - if(/^\#.*?\\$/m) { + if(/^\#[.\n\r]*?\\$/m) { $lookahead = 1; next; } elsif(s/^\#\s*(.*?)(\s+(.*?))?\s*$//m) {