Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

ExtUtils::ParseXS::Utilities

Name ExtUtils::ParseXS::Utilities
Version 3.35
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/ExtUtils/ParseXS/Utilities.pm
Is Core No
Search CPAN for this module ExtUtils::ParseXS::Utilities
Documentation ExtUtils::ParseXS::Utilities
Module Details ExtUtils::ParseXS::Utilities

NAME

ExtUtils::ParseXS::Utilities - Subroutines used with ExtUtils::ParseXS


SYNOPSIS

  use ExtUtils::ParseXS::Utilities qw(
    standard_typemap_locations
    trim_whitespace
    C_string
    valid_proto_string
    process_typemaps
    map_type
    standard_XS_defs
    assign_func_args
    analyze_preprocessor_statements
    set_cond
    Warn
    blurt
    death
    check_conditional_preprocessor_statements
    escape_file_for_line_directive
    report_typemap_failure
  );


SUBROUTINES

The following functions are not considered to be part of the public interface. They are documented here for the benefit of future maintainers of this module.

standard_typemap_locations()

trim_whitespace()

C_string()

  • PurposePurpose
    Escape backslashes (\) in prototype strings.

  • ArgumentsArguments
          $ProtoThisXSUB = C_string($_);

    String needing escaping.

  • Return ValueReturn Value
    Properly escaped string.

valid_proto_string()

  • PurposePurpose
    Validate prototype string.

  • ArgumentsArguments
    String needing checking.

  • Return ValueReturn Value
    Upon success, returns the same string passed as argument.

    Upon failure, returns 0.

process_typemaps()

  • PurposePurpose
    Process all typemap files.

  • ArgumentsArguments
      my $typemaps_object = process_typemaps( $args{typemap}, $pwd );

    List of two elements: typemap element from %args; current working directory.

  • Return ValueReturn Value
    Upon success, returns an the ExtUtils::Typemaps manpage object.

map_type()

  • PurposePurpose
    Performs a mapping at several places inside PARAGRAPH loop.

  • ArgumentsArguments
      $type = map_type($self, $type, $varname);

    List of three arguments.

  • Return ValueReturn Value
    String holding augmented version of second argument.

standard_XS_defs()

  • PurposePurpose
    Writes to the .c output file certain preprocessor directives and function headers needed in all such files.

  • ArgumentsArguments
    None.

  • Return ValueReturn Value
    Returns true.

assign_func_args()

  • PurposePurpose
    Perform assignment to the func_args attribute.

  • ArgumentsArguments
      $string = assign_func_args($self, $argsref, $class);

    List of three elements. Second is an array reference; third is a string.

  • Return ValueReturn Value
    String.

analyze_preprocessor_statements()

  • PurposePurpose
    Within each function inside each Xsub, print to the .c output file certain preprocessor statements.

  • ArgumentsArguments
          ( $self, $XSS_work_idx, $BootCode_ref ) =
            analyze_preprocessor_statements(
              $self, $statement, $XSS_work_idx, $BootCode_ref
            );

    List of four elements.

  • Return ValueReturn Value
    Modifed values of three of the arguments passed to the function. In particular, the XSStack and InitFileCode attributes are modified.

set_cond()

  • PurposePurpose
  • ArgumentsArguments
  • Return ValueReturn Value

current_line_number()

  • PurposePurpose
    Figures out the current line number in the XS file.

  • ArgumentsArguments
    $self

  • Return ValueReturn Value
    The current line number.

Warn()

  • PurposePurpose
  • ArgumentsArguments
  • Return ValueReturn Value

blurt()

  • PurposePurpose
  • ArgumentsArguments
  • Return ValueReturn Value

death()

  • PurposePurpose
  • ArgumentsArguments
  • Return ValueReturn Value

check_conditional_preprocessor_statements()

  • PurposePurpose
  • ArgumentsArguments
  • Return ValueReturn Value

escape_file_for_line_directive()

  • PurposePurpose
    Escapes a given code source name (typically a file name but can also be a command that was read from) so that double-quotes and backslashes are escaped.

  • ArgumentsArguments
    A string.

  • Return ValueReturn Value
    A string with escapes for double-quotes and backslashes.

report_typemap_failure

  • PurposePurpose
    Do error reporting for missing typemaps.

  • ArgumentsArguments
    The ExtUtils::ParseXS object.

    An ExtUtils::Typemaps object.

    The string that represents the C type that was not found in the typemap.

    Optionally, the string death or blurt to choose whether the error is immediately fatal or not. Default: blurt

  • Return ValueReturn Value
    Returns nothing. Depending on the arguments, this may call death or blurt, the former of which is fatal.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024