Alt-Acme-Math-XS-ModuleBuild
    
    
  
  
  
view release on metacpan or search on metacpan
inc/Inline/C.pm view on Meta::CPAN
    my $errcode = $? >> 8;
    $output .= <<END;
A problem was encountered while attempting to compile and install your Inline
$o->{API}{language} code. The command that failed was:
  \"$cmd\" with error code $errcode
The build directory was:
$build_dir
To debug the problem, cd to the build directory, and inspect the output files.
END
    if ($cmd =~ /^make >/) {
        for (sort keys %ENV) {
            $output .= "Environment $_ = '$ENV{$_}'\n" if /^(?:MAKE|PATH)/;
        }
    }
    return $output;
}
inc/Inline/C/Parser/RegExp.pm view on Meta::CPAN
        qr'(?:[(]((?:(?>[^()]+)|(??{$RE_balanced_parens}))*)[)])';
    # First, we crush out anything potentially confusing.
    # The order of these _does_ matter.
    $code =~ s/$RE_comment_C/ /go;
    $code =~ s/$RE_comment_Cpp/ /go;
    $code =~ s/^\#.*(\\\n.*)*//mgo;
    #$code =~ s/$RE_quoted/\"\"/go; # Buggy, if included.
    $code =~ s/$RE_balanced_brackets/{ }/go;
    $self->{_the_code_most_recently_parsed} = $code; # Simplifies debugging.
    my $normalize_type = sub {
        # Normalize a type for lookup in a typemap.
        my($type) = @_;
        # Remove "extern".
        # But keep "static", "inline", "typedef", etc,
        #  to cause desirable typemap misses.
        $type =~ s/\bextern\b//g;
( run in 0.609 second using v1.01-cache-2.11-cpan-5dc5da66d9d )