ExtUtil...s::Type(3pm)

🌸 NAME 🌸

okay bestie, welcome to ExtUtils::Typemaps::Type(3pm) from the Perl Programmers Reference Guide β€” here's the name tea: ExtUtils::Typemaps::Type β€” Entry in the TYPEMAP section of a typemap. No cap, that's the whole name vibe πŸ’…βœ¨

✨ SYNOPSIS ✨

here's the tiny code moment, copy it exactly:

use ExtUtils::Typemaps;
...
my $type = $typemap->get_type_map('char*');
my $input = $typemap->get_input_map($type->xstype);

πŸ¦‹ DESCRIPTION πŸ¦‹

Refer to ExtUtils::Typemaps for details, bestie. This object lowkey associates ctype with xstype, and xstype is the index into the in- and output mapping tables. That's the whole lore 🫢

🌈 METHODS 🌈

πŸ’« new

  • Requires xstype and ctype parameters.
  • Optionally takes prototype parameter. But plot twist: the method to get/set the value is called proto rather than <prototype>. iykyk πŸ’€

πŸŽ€ proto

proto returns or sets the prototype. Periodt.

πŸ¦‹ xstype

xstype returns the name of the XS type that this C type is associated to. Slay.

πŸ“ ctype

ctype returns the name of the C type as it was set on construction. Iconic.

🧚 tidy_ctype

tidy_ctype returns the canonicalized name of the C type. It's giving clean and canonical πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

ExtUtils::Typemaps

πŸ’œ AUTHOR πŸ’œ

Steffen Mueller <smueller@cpan.org> β€” yes, that's the author email, bestie πŸ’Œ

Copyright 2009, 2010, 2011, 2012 Steffen Mueller

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

byeee β€” this page is from perl v5.42.3, dated 2026-11-03 πŸ’–βœ¨

πŸ“¦ where this page comes from