C-TinyCompiler
view release on metacpan or search on metacpan
lib/C/TinyCompiler/Perl.pm view on Meta::CPAN
# Add Perl's CORE directory to the compiler's list of includes:
$state->add_include_paths($core_dir, @local_inc);
if ($^O =~ /MSWin/) {
$state->code('Head') .= C::TinyCompiler::line_number(__LINE__) . q{
#define __C89_NAMELESS __extension__
#define __MINGW_EXTENSION __extension__
typedef long __int64;
typedef int uid_t;
typedef int gid_t;
};
# Also add Perl's library to the compiler's lib list
$state->add_library_paths("$Config{archlib}/CORE");
$state->add_librarys('perl');
}
# Add function declarations and symbols:
$state->code('Head') .= C::TinyCompiler::line_number(__LINE__) . q{
#include "EXTERN.h"
#include "perl.h"
( run in 0.618 second using v1.01-cache-2.11-cpan-97f6503c9c8 )