[winedump] Corrections for '//***' comments, and splitted extern
"C" {
Peter Berg Larsen
pebl at math.ku.dk
Mon Jan 3 02:17:12 CST 2005
Changelog:
Currently a '//****' is matched as an /* comment - disallow a '/'
in front of the '/*' match. An 'extern "C" {' can be split in
several lines - allow '\n' as space, and lookout for the rest if
partial found.
diff -ru wine-20041201-org/tools/winedump/function_grep.pl wine/tools/winedump/function_grep.pl
--- wine-20041201-org/tools/winedump/function_grep.pl 2004-10-25 23:50:50.000000000 +0200
+++ wine/tools/winedump/function_grep.pl 2004-12-30 01:13:41.000000000 +0100
@@ -74,8 +80,8 @@
$again = 0;
}
# remove C comments
- if(s/^(.*?)(\/\*.*?\*\/)(.*)$/$1 $3/s) {
+ if(s/^(|.*?[^\/])(\/\*.*?\*\/)(.*)$/$1 $3/s) {
$again = 1;
next;
} elsif(/^(.*?)\/\*/s) {
@@ -101,10 +116,13 @@
}
# Remove extern "C"
- if(s/^\s*extern\s+"C"\s+\{//m) {
+ if(s/^\s*extern[\s\n]+"C"[\s\n]+\{//m) {
$extern_c = 1;
$again = 1;
next;
+ } elsif(m/^\s*extern[\s\n]+"C"/m) {
+ $lookahead = 1;
+ next;
}
if($level > 0)
More information about the wine-patches
mailing list