Message-Id: <
20061011065359.DFC4C8B3A1@seth.hut.fi>
p4raw-id: //depot/perl@28992
$flags{TRIE} = $flags{DUMP} | $flags{EXECUTE} | $flags{TRIEC};
my $installed;
+my $installed_error;
sub _load_unload {
my ($on)= @_;
if ($on) {
if ( ! defined($installed) ) {
require XSLoader;
- XSLoader::load('re');
- $installed = install() || 0;
+ $installed = eval { XSLoader::load('re') } || 0;
+ $installed_error = $@;
}
if ( ! $installed ) {
- die "'re' not installed!?";
+ die "'re' not installed!? ($installed_error)";
} else {
# We could just say = $installed; but then we wouldn't
# "see" any changes to the color environment var.
extern regexp* my_regdupe (pTHX_ const regexp *r, CLONE_PARAMS *param);
#endif
-const struct regexp_engine my_reg_engine = {
+EXTERN_C const struct regexp_engine my_reg_engine = {
my_regcomp,
my_regexec,
my_re_intuit_start,