#define PL_tmps_ix (vTHX->Itmps_ix)
#define PL_tmps_max (vTHX->Itmps_max)
#define PL_tmps_stack (vTHX->Itmps_stack)
-#define PL_tokenbuf (vTHX->Itokenbuf)
#define PL_top_env (vTHX->Itop_env)
#define PL_toptarget (vTHX->Itoptarget)
#define PL_uid (vTHX->Iuid)
#define PL_Itmps_ix PL_tmps_ix
#define PL_Itmps_max PL_tmps_max
#define PL_Itmps_stack PL_tmps_stack
-#define PL_Itokenbuf PL_tokenbuf
#define PL_Itop_env PL_top_env
#define PL_Itoptarget PL_toptarget
#define PL_Iuid PL_uid
PERLVARI(Irunops, runops_proc_t, MEMBER_TO_FPTR(RUNOPS_DEFAULT))
-PERLVARA(Itokenbuf,256, char)
-
/*
=for apidoc Amn|SV|PL_sv_undef
This is the C<undef> SV. Always refer to this as C<&PL_sv_undef>.
#endif
COP *saved_curcop; /* the previous PL_curcop */
+ char tokenbuf[256];
} yy_parser;
#define PL_tmps_max (*Perl_Itmps_max_ptr(aTHX))
#undef PL_tmps_stack
#define PL_tmps_stack (*Perl_Itmps_stack_ptr(aTHX))
-#undef PL_tokenbuf
-#define PL_tokenbuf (*Perl_Itokenbuf_ptr(aTHX))
#undef PL_top_env
#define PL_top_env (*Perl_Itop_env_ptr(aTHX))
#undef PL_toptarget
parser->bufend = ls + SvCUR(parser->linestr);
}
+ Copy(proto->tokenbuf, parser->tokenbuf, 256, char);
+
#ifdef PERL_MAD
parser->endwhite = proto->endwhite;
PL_runops = proto_perl->Irunops;
- Copy(proto_perl->Itokenbuf, PL_tokenbuf, 256, char);
-
#ifdef CSH
PL_cshlen = proto_perl->Icshlen;
PL_cshname = proto_perl->Icshname; /* XXX never deallocated */
#define PL_rsfp_filters (PL_parser->rsfp_filters)
#define PL_in_my (PL_parser->in_my)
#define PL_in_my_stash (PL_parser->in_my_stash)
+#define PL_tokenbuf (PL_parser->tokenbuf)
#ifdef PERL_MAD
# define PL_endwhite (PL_parser->endwhite)
{
dVAR;
SV* retval;
- SV* const tokenbufsv = sv_newmortal();
dSP;
const size_t pkg_len = strlen(pkg);
const size_t name_len = strlen(name);
PUSHs(sv_2mortal(newSViv(minbits)));
PUSHs(sv_2mortal(newSViv(none)));
PUTBACK;
- if (IN_PERL_COMPILETIME) {
- sv_setpv(tokenbufsv, PL_tokenbuf);
- }
errsv_save = newSVsv(ERRSV);
if (call_method("SWASHNEW", G_SCALAR))
retval = newSVsv(*PL_stack_sp--);
LEAVE;
POPSTACK;
if (IN_PERL_COMPILETIME) {
- STRLEN len;
- const char* const pv = SvPV_const(tokenbufsv, len);
-
- Copy(pv, PL_tokenbuf, len+1, char);
CopHINTS_set(PL_curcop, PL_hints);
}
if (!SvROK(retval) || SvTYPE(SvRV(retval)) != SVt_PVHV) {