static void xs_init(pTHX) { const char *file = __FILE__; dSP; CV *cv = newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); dXSUB_SYS; /* With cperl boot it now immediately */ PUSHMARK(SP); boot_DynaLoader(aTHX_ cv); }
/* yanked from perl.c */ static void xs_init(pTHX) { char *file = __FILE__; dTARG; dSP; #ifdef USE_DYNAMIC_LOADING newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); #endif /* bootstrapping code*/ SAVETMPS; targ=sv_newmortal(); #ifdef USE_DYNAMIC_LOADING PUSHMARK(sp); XPUSHp("DynaLoader",strlen("DynaLoader")); PUTBACK; boot_DynaLoader(aTHX_ NULL); SPAGAIN; #endif FREETMPS; /* end bootstrapping code */ }