perl
view release on metacpan or search on metacpan
/* times() ticks per second */
PL_clocktick = proto_perl->Iclocktick;
/* Recursion stopper for PerlIO_find_layer */
PL_in_load_module = proto_perl->Iin_load_module;
/* Not really needed/useful since the reenrant_retint is "volatile",
* but do it for consistency's sake. */
PL_reentrant_retint = proto_perl->Ireentrant_retint;
/* Hooks to shared SVs and locks. */
PL_sharehook = proto_perl->Isharehook;
PL_lockhook = proto_perl->Ilockhook;
PL_unlockhook = proto_perl->Iunlockhook;
PL_threadhook = proto_perl->Ithreadhook;
PL_destroyhook = proto_perl->Idestroyhook;
PL_signalhook = proto_perl->Isignalhook;
PL_globhook = proto_perl->Iglobhook;
PL_srand_called = proto_perl->Isrand_called;
Copy(&(proto_perl->Irandom_state), &PL_random_state, 1, PL_RANDOM_STATE_TYPE);
PL_srand_override = proto_perl->Isrand_override;
PL_srand_override_next = proto_perl->Isrand_override_next;
if (flags & CLONEf_COPY_STACKS) {
/* next allocation will be PL_tmps_stack[PL_tmps_ix+1] */
PL_tmps_ix = proto_perl->Itmps_ix;
PL_tmps_max = proto_perl->Itmps_max;
PL_tmps_floor = proto_perl->Itmps_floor;
/* next push_scope()/ENTER sets PL_scopestack[PL_scopestack_ix]
* NOTE: unlike the others! */
PL_scopestack_ix = proto_perl->Iscopestack_ix;
PL_scopestack_max = proto_perl->Iscopestack_max;
/* next SSPUSHFOO() sets PL_savestack[PL_savestack_ix]
* NOTE: unlike the others! */
PL_savestack_ix = proto_perl->Isavestack_ix;
PL_savestack_max = proto_perl->Isavestack_max;
}
PL_start_env = proto_perl->Istart_env; /* XXXXXX */
PL_top_env = &PL_start_env;
PL_op = proto_perl->Iop;
PL_Sv = NULL;
my_perl->Ina = proto_perl->Ina;
PL_statcache = proto_perl->Istatcache;
#ifndef NO_TAINT_SUPPORT
PL_tainted = proto_perl->Itainted;
#else
PL_tainted = FALSE;
#endif
PL_curpm = proto_perl->Icurpm; /* XXX No PMOP ref count */
PL_chopset = proto_perl->Ichopset; /* XXX never deallocated */
PL_restartjmpenv = proto_perl->Irestartjmpenv;
PL_restartop = proto_perl->Irestartop;
PL_in_eval = proto_perl->Iin_eval;
PL_delaymagic = proto_perl->Idelaymagic;
PL_phase = proto_perl->Iphase;
PL_localizing = proto_perl->Ilocalizing;
PL_hv_fetch_ent_mh = NULL;
PL_modcount = proto_perl->Imodcount;
PL_lastgotoprobe = NULL;
PL_dumpindent = proto_perl->Idumpindent;
PL_efloatbuf = NULL; /* reinits on demand */
PL_efloatsize = 0; /* reinits on demand */
/* regex stuff */
PL_colorset = 0; /* reinits PL_colors[] */
/*PL_colors[6] = {0,0,0,0,0,0};*/
/* Pluggable optimizer */
PL_peepp = proto_perl->Ipeepp;
PL_rpeepp = proto_perl->Irpeepp;
/* op_free() hook */
PL_opfreehook = proto_perl->Iopfreehook;
# ifdef PERL_MEM_LOG
Zero(PL_mem_log, sizeof(PL_mem_log), char);
# endif
#ifdef USE_REENTRANT_API
/* XXX: things like -Dm will segfault here in perlio, but doing
* PERL_SET_CONTEXT(proto_perl);
* breaks too many other things
*/
Perl_reentrant_init(aTHX);
#endif
/* create SV map for pointer relocation */
PL_ptr_table = ptr_table_new();
/* initialize these special pointers as early as possible */
init_constants();
ptr_table_store(PL_ptr_table, &proto_perl->Isv_undef, &PL_sv_undef);
ptr_table_store(PL_ptr_table, &proto_perl->Isv_no, &PL_sv_no);
ptr_table_store(PL_ptr_table, &proto_perl->Isv_zero, &PL_sv_zero);
ptr_table_store(PL_ptr_table, &proto_perl->Isv_yes, &PL_sv_yes);
ptr_table_store(PL_ptr_table, &proto_perl->Ipadname_const,
&PL_padname_const);
/* create (a non-shared!) shared string table */
PL_strtab = newHV();
HvSHAREKEYS_off(PL_strtab);
hv_ksplit(PL_strtab, HvTOTALKEYS(proto_perl->Istrtab));
ptr_table_store(PL_ptr_table, proto_perl->Istrtab, PL_strtab);
Zero(PL_sv_consts, SV_CONSTS_COUNT, SV*);
PL_compiling.cop_file = rcpv_copy(proto_perl->Icompiling.cop_file);
( run in 0.478 second using v1.01-cache-2.11-cpan-71847e10f99 )