Skip to content

Commit

Permalink
pp_addxs of "" will still reset pp_def package
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Apr 7, 2023
1 parent 094185f commit 0cae1df
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions genpp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -377,18 +377,14 @@ =head1 NAME
my %class2func2suffix;
if (@topfuncs) {
pp_bless("PDL::OpenCV$last");
pp_addxs(<<EOF); # work around PP bug
MODULE = ${main::PDLMOD} PACKAGE = ${main::PDLOBJ}
EOF
pp_addxs(''); # work around PP historical quirk
genpp(maybe_suffix \%class2func2suffix, @$_) for @topfuncs;
} else {
pp_addpm("=pod\n\nNone.\n\n=cut\n\n");
}
for my $c (@classes) {
pp_bless(my $fullclass = "PDL::OpenCV::$c");
pp_addxs(<<EOF); # work around PP bug
MODULE = ${main::PDLMOD} PACKAGE = ${main::PDLOBJ}
EOF
pp_addxs(''); # work around PP historical quirk
my $doc = $class2doc{$c} // '';
$doc = text_trim doxy2pdlpod(doxyparse($doc)) if $doc;
pp_addpm(<<EOD);
Expand Down

0 comments on commit 0cae1df

Please sign in to comment.