logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ExtUtils::Builder::ParseXS - Essential functions for implementing XS in a Plan

Author

       Leon Timmermans <fawaka@gmail.com>

Description

       This module implements several helper methods used in implementing XS.

       It takes one optional argument "config", which should be an "ExtUtils::Config" compatible object. If your
       $planner has a "config" delegate, that will be used as default value.

   DELEGATESparse_xs($source,$destination,%options)

       This will parse the XS file $source and write the resulting C file to $destination.

       •   mkdir

           If set this will mkdir the base of the target before running the parse.

       •   dependencies

           This lists additional dependencies that will be added to the target.

       •   typemap

           The name of the typemap file. Defaults to "typemap" if that file exists.

       •   hiertype

           Allow hierarchical types (with double colons) such as used in C++.

       c_file_for_xs($filename,$dir=dirname($filename))

       This returns the path to the C file for a certain XS file.

       module_for_xs($filename)

       This returns the module corresponding to a specific XS files.

       extension_filename($module_name)

       This will return the path for the loadable object of an extension for $module.

Name

       ExtUtils::Builder::ParseXS - Essential functions for implementing XS in a Plan

Synopsis

        $planner->load_extension("ExtUtils::Builder::ParseXS");
        $planner->parse_xs("foo.xs", "foo.c");

Version

       version 0.032

See Also