- API file update.
- Minor bug fixes.
diff --git a/tools/winapi_check/winapi_parser.pm b/tools/winapi_check/winapi_parser.pm
index 500cd0f..01962dd 100644
--- a/tools/winapi_check/winapi_parser.pm
+++ b/tools/winapi_check/winapi_parser.pm
@@ -164,8 +164,9 @@
print STDERR "Processing file '$file' ... " if $options->verbose;
open(IN, "< $file") || die "<internal>: $file: $!\n";
- $/ = "\n";
+ local $_ = "";
while($again || defined(my $line = <IN>)) {
+ $_ = "" if !defined($_);
if(!$again) {
chomp $line;
@@ -177,8 +178,8 @@
$_ = $line;
$lookahead_count = 0;
}
- print " $level($lookahead_count): $line\n" if $options->debug >= 2;
- print "*** $_\n" if $options->debug >= 3;
+ $output->write(" $level($lookahead_count): $line\n") if $options->debug >= 2;
+ $output->write("*** $_\n") if $options->debug >= 3;
} else {
$lookahead_count = 0;
$again = 0;