XSBuil...Source(3pm)
NAME π
hey bestie!! welcome to XSBuil...Source(3pm) from User Contributed Perl Documentation π
this page is all about:
ExtUtils::XSBuilder::ParseSource - parse C source files
DESCRIPTION β¨
for the full tea, see ExtUtils::XSBuilder π«Ά
π¦ extent_parser (o) π¦
okay so this one lets you call the Extent or Replace method of the parser to add new syntax rules π₯ mainly useful to include expansions for preprocessor macros. periodt.
π preprocess (o) π
this lets you preprocess the source before it is given to the parser β¨ you may modify the source, which is given as first argument in place. lowkey powerful.
πΈ include_dirs (o) πΈ
returns a reference to the list of directories that should be searched for include files which contain the functions, structures, etc. to be extracted π
Default: '.'
π include_paths (o) π
returns a reference to a list of directories that are given as include directories to the C compiler. this is mainly used to strip these directories from filenames to convert absolute paths to relative paths.
Default: empty list ([])
π unwanted_includes (o) π
returns a reference to a list of include files that should not be processed π
Default: empty list ([])
π
sort_includes (o, include_list) π
passed an array ref of include files, it lets you define the sort order, so includes are processed correctly β¨
Default: return the passed array reference.
π§ find_includes (o) π§
returns a list of include files to be processed.
Default: search directories given by include_dirs for all files and build a list of include files. All files starting with a word matched by unwanted_includes are not included in the list.
π₯ handle_define (o) π₯
passed a hash ref with the definition of a define, may modify it. return false to discard it, return true to keep it.
Default: 1
π handle_enum (o) π
passed a hash ref with the definition of a enum value, may modify it. return false to discard it, return true to keep it.
Default: 1
π handle_struct (o) π
passed a hash ref with the definition of a struct, may modify it. return false to discard it, return true to keep it.
Default: 1
β handle_function (o) β
passed a hash ref with the definition of a function, may modify it. return false to discard it, return true to keep it.
Default: 1
π¦ handle_callback (o) π¦
passed a hash ref with the definition of a callback, may modify it. return false to discard it, return true to keep it.
Default: 1
π package (o) π
return package name for tables
Default: 'MY'
πΈ targetdir (o) πΈ
return name of target directory where to write tables
Default: './xsbuilder/tables'
π
run π
call this class method to parse your source. before you can do so you must provide a class that overrides the defaults in ExtUtils::XSBuilder::ParseSource. after that you scan the source files with:
MyClass -> run ;
this was perl v5.36.0, dated 2022-11-19, and the page is XSBuil...Source(3pm) π mwah! slay.
π¦ where this page comes from
- debian bookworm: libextutils-xsbuilder-perl 0.28-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libextutils-xsbuilder-perl 0.28-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libextutils-xsbuilder-perl 0.28-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libextutils-xsbuilder-perl 0.28-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libextutils-xsbuilder-perl 0.28-5 Β· 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