(1) The lddlflags lost its -lc by change #3660
(and the politeness of change #3257).
(2) optype_size must end up in perl.exp (as PL_optype_size).
Added it to perlvars.h, fixed bytecode.pl,
regen'ed the relevant headers.
p4raw-link: @3660 (not found)
p4raw-link: @3257 on //depot/cfgperl:
5f3774a9b49fbaa1b06fec2cad77079ee509d6ca
p4raw-id: //depot/cfgperl@3479
((PMOP*)o)->op_pmregexp = arg ? \
CALLREGCOMP(arg, arg + PL_bytecode_pv.xpv_cur, ((PMOP*)o)) : 0
#define BSET_newsv(sv, arg) sv = NEWSV(666,0); SvUPGRADE(sv, arg)
-#define BSET_newop(o, arg) o = (OP*)safemalloc(optype_size[arg])
+#define BSET_newop(o, arg) o = (OP*)safemalloc(PL_optype_size[arg])
#define BSET_newopn(o, arg) STMT_START { \
OP *oldop = o; \
BSET_newop(o, arg); \
}
printf BYTERUN_H " OPt_%s\t\t/* %d */\n};\n\n", $optype[$i], $i;
print BYTERUN_H <<'EOT';
-EXT int optype_size[]
+EXT int PL_optype_size[]
#ifdef DOINIT
= {
EOT
OPt_COP /* 11 */
};
-EXT int optype_size[]
+EXT int PL_optype_size[]
#ifdef DOINIT
= {
sizeof(OP),
#define PL_oldbufptr (PL_Vars.Goldbufptr)
#define PL_oldoldbufptr (PL_Vars.Goldoldbufptr)
#define PL_op_seqmax (PL_Vars.Gop_seqmax)
+#define PL_optype_size (PL_Vars.Goptype_size)
#define PL_origalen (PL_Vars.Gorigalen)
#define PL_origenviron (PL_Vars.Gorigenviron)
#define PL_osname (PL_Vars.Gosname)
#define PL_Goldbufptr PL_oldbufptr
#define PL_Goldoldbufptr PL_oldoldbufptr
#define PL_Gop_seqmax PL_op_seqmax
+#define PL_Goptype_size PL_optype_size
#define PL_Gorigalen PL_origalen
#define PL_Gorigenviron PL_origenviron
#define PL_Gosname PL_osname
#define PL_op_seqmax pPerl->PL_op_seqmax
#undef PL_opsave
#define PL_opsave pPerl->PL_opsave
+#undef PL_optype_size
+#define PL_optype_size pPerl->PL_optype_size
#undef PL_origalen
#define PL_origalen pPerl->PL_origalen
#undef PL_origargc
PERLVAR(Gbitcount, char *)
PERLVAR(Gfilter_debug, int)
+/* byterun globals */
+PERLVAR(Goptype_size[], int)
+