/usr/lib/perl5/PDL/PP/XS.pm is in pdl 1:2.007-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | package XS;
sub mkproto {
my($name,$pars) = @_;
my $shortpars = join ',',map {$_->[0]} @$pars;
my $longpars = join "\n",map {"\t".$_->[1]->get_decl($_->[0])} @$pars;
return<<END;
void
$name($shortpars)
$longpars
END
}
1;
|