summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-12 21:12:56 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-12 21:12:56 +0000
commit2302ff23b69433ce0ea4d34e0e1219578f991871 (patch)
tree67d584c62c928f721963ddf0f814e0e7145681e0
parent408364e10d30895f399d96f1433503a34627457a (diff)
downloadperl_checker-2302ff23b69433ce0ea4d34e0e1219578f991871.tar
perl_checker-2302ff23b69433ce0ea4d34e0e1219578f991871.tar.gz
perl_checker-2302ff23b69433ce0ea4d34e0e1219578f991871.tar.bz2
perl_checker-2302ff23b69433ce0ea4d34e0e1219578f991871.tar.xz
perl_checker-2302ff23b69433ce0ea4d34e0e1219578f991871.zip
ignore pod while parsing xs files
-rwxr-xr-xperl_checker_fake_packages/gen.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/perl_checker_fake_packages/gen.pl b/perl_checker_fake_packages/gen.pl
index 9b2b4f7..0893fc4 100755
--- a/perl_checker_fake_packages/gen.pl
+++ b/perl_checker_fake_packages/gen.pl
@@ -27,8 +27,14 @@ sub parse_xs {
my $state = 'waiting_for_type';
($current_package, $current_prefix) = ('', '');
my $multi_line;
- my $c;
+ my ($c, $ignore);
foreach (cat_($file)) {
+ $ignore = 1 if /^=/;
+ if (/^=cut/) {
+ $ignore = 0;
+ next;
+ }
+ next if $ignore;
$c++;
chomp;
my $orig_line = $_;