ExtUti...arseXS(3pm)
π NAME π
ExtUtils::Builder::ParseXS β the essential functions you need to actually implement XS inside a Plan, bestie β¨
πΈ VERSION πΈ
version 0.037 β yes queen, that's the one π
β¨ SYNOPSIS β¨
$planner->load_extension("ExtUtils::Builder::ParseXS");
$planner->parse_xs("foo.xs", "foo.c");
like. that's it. two lines and you're parsing π¦
π DESCRIPTION π
okay so this module is the one that implements a whole bunch of helper methods you use when you're implementing XS. it's giving backstage crew energy β nobody claps for it but nothing works without it π
It takes one optional argument, config, which should be an object compatible with ExtUtils::Config. And here's the cute part: if your $planner has a config delegate, that's gonna be the default value. slay π«Ά
π§ DELEGATES π§
β parse_xs($source, $destination, %options)
This one parses the XS file at $source and writes the resulting C file out to $destination. main character behaviour fr fr π₯
and it takes these options:
mkdirβ if you set this, it'llmkdirthe base of the target before it runs the parse. no more missing-directory tears πdependenciesβ this is where you list extra dependencies that get added to the target.typemapβ the name of the typemap file. it defaults to"typemap"if that file happens to exist πhiertypeβ allows hierarchical types (you know, with double colons) like the ones used in C++.
π¦ c_file_for_xs($filename, $dir = dirname($filename))
Returns the path to the C file for a certain XS file.
heads up bestie: this one is Deprecated. π
π module_for_xs($filename)
Returns the module corresponding to a specific XS file.
also Deprecated, sorry babe π
π extension_filename($module_name)
Returns the path for the loadable object of an extension for $module.
yep, Deprecated too π
π«Ά AUTHOR π«Ά
Leon Timmermans <fawaka@gmail.com>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2012 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay that's the whole page, and like a lil sign-off for the record: this was pulled from perl v5.40.1 dated 2026-06-12, filed under ExtUtils::Builder::ParseXS(3pm) β periodt, go parse something iconic β¨π
π¦ where this page comes from
- ubuntu stonking: libextutils-builder-compiler-perl 0.037-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms