Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS/Node.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1382,9 +1382,10 @@ sub lookup_input_typemap {

my $typemaps = $pxs->{typemaps_object};

# Normalised type ('Foo *' becomes 'FooPtr): one of the valid vars
# which can appear within a typemap template.
# Normalised type ('struct Foo *' becomes 'struct_FooPtr): one of
# the valid vars which can appear within a typemap template.
(my $ntype = $type) =~ s/\s*\*/Ptr/g;
$ntype =~ s/\s/_/g;

# $subtype is really just for the T_ARRAY / DO_ARRAY_ELEM code below,
# where it's the type of each array element. But it's also passed to
Expand Down
5 changes: 3 additions & 2 deletions dist/ExtUtils-ParseXS/lib/perlxstypemap.pod
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ e.g. for a type of C<Foo::Bar>, I<$type> is C<Foo__Bar>

=item *

I<$ntype> - the supplied type with C<*> replaced with C<Ptr>.
e.g. for a type of C<Foo*>, I<$ntype> is C<FooPtr>
I<$ntype> - the supplied type with C<*> replaced with C<Ptr> and
C<\s> replaced with C<_>.
e.g. for a type of C<struct Foo*>, I<$ntype> is C<struct_FooPtr>

=item *

Expand Down
Loading