Minor bug fixes.
diff --git a/tools/winapi_check/winapi_parser.pm b/tools/winapi_check/winapi_parser.pm index 558d069..37f75bc 100644 --- a/tools/winapi_check/winapi_parser.pm +++ b/tools/winapi_check/winapi_parser.pm
@@ -77,13 +77,17 @@ last; } - # remove comments - if(s/^(.*?)(\/\*.*?\*\/)(.*)$/$1 $3/s) { push @comments, $2; $again = 1; next }; + # remove C comments + if(s/^(.*?)(\/\*.*?\*\/)(.*)$/$1 $3/s) { push @comments, $2; $again = 1; next } if(/^(.*?)\/\*/s) { $lookahead = 1; next; } + # remove C++ comments + while(s/^(.*?)\/\/.*?$/$1\n/s) { $again = 1 } + if($again) { next; } + # remove empty rows if(/^\s*$/) { next; }