--- gapi_pp.pl.org 2008-07-20 12:18:09.000000000 +0200 +++ gapi_pp.pl 2008-07-20 15:09:47.000000000 +0200 @@ -35,6 +35,7 @@ } elsif (-f $arg && -e $arg) { @hdrs = (@hdrs, $arg) if ($arg =~ /\.h$/); @srcs = (@srcs, $arg) if ($arg =~ /\.c$/); + @srcs = (@srcs, $arg) if ($arg =~ /\.cpp$/); } else { die "unable to process arg: $arg"; } @@ -60,6 +61,7 @@ next if ($line =~ /$ignoreit_regex/); $line =~ s/\/\*[^<].*?\*\///g; + $line =~ s/^\s*//; next if ($line !~ /\S/);