3 * Copyright (c) 1991-2000, Larry Wall
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
11 * "For the fashion of Minas Tirith was such that it was built on seven
16 #define PERL_IN_SCOPE_C
19 #if defined(PERL_FLEXIBLE_EXCEPTIONS)
21 Perl_default_protect(pTHX_ volatile JMPENV *pcur_env, int *excpt,
22 protect_body_t body, ...)
27 ret = vdefault_protect(pcur_env, excpt, body, &args);
33 Perl_vdefault_protect(pTHX_ volatile JMPENV *pcur_env, int *excpt,
34 protect_body_t body, va_list *args)
44 ret = CALL_FPTR(body)(aTHX_ *args);
52 Perl_stack_grow(pTHX_ SV **sp, SV **p, int n)
55 #if defined(DEBUGGING) && !defined(USE_THREADS)
56 static int growing = 0;
61 #ifndef STRESS_REALLOC
62 av_extend(PL_curstack, (p - PL_stack_base) + (n) + 128);
64 av_extend(PL_curstack, (p - PL_stack_base) + (n) + 1);
66 #if defined(DEBUGGING) && !defined(USE_THREADS)
72 #ifndef STRESS_REALLOC
73 #define GROW(old) ((old) * 3 / 2)
75 #define GROW(old) ((old) + 1)
79 Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems)
83 New(56, si, 1, PERL_SI);
84 si->si_stack = newAV();
85 AvREAL_off(si->si_stack);
86 av_extend(si->si_stack, stitems > 0 ? stitems-1 : 0);
87 AvALLOC(si->si_stack)[0] = &PL_sv_undef;
88 AvFILLp(si->si_stack) = 0;
91 si->si_cxmax = cxitems - 1;
93 si->si_type = PERLSI_UNDEF;
94 New(56, si->si_cxstack, cxitems, PERL_CONTEXT);
102 cxstack_max = GROW(cxstack_max);
103 Renew(cxstack, cxstack_max + 1, PERL_CONTEXT); /* XXX should fix CXINC macro */
104 return cxstack_ix + 1;
108 Perl_push_return(pTHX_ OP *retop)
111 if (PL_retstack_ix == PL_retstack_max) {
112 PL_retstack_max = GROW(PL_retstack_max);
113 Renew(PL_retstack, PL_retstack_max, OP*);
115 PL_retstack[PL_retstack_ix++] = retop;
119 Perl_pop_return(pTHX)
122 if (PL_retstack_ix > 0)
123 return PL_retstack[--PL_retstack_ix];
129 Perl_push_scope(pTHX)
132 if (PL_scopestack_ix == PL_scopestack_max) {
133 PL_scopestack_max = GROW(PL_scopestack_max);
134 Renew(PL_scopestack, PL_scopestack_max, I32);
136 PL_scopestack[PL_scopestack_ix++] = PL_savestack_ix;
144 I32 oldsave = PL_scopestack[--PL_scopestack_ix];
145 LEAVE_SCOPE(oldsave);
149 Perl_markstack_grow(pTHX)
152 I32 oldmax = PL_markstack_max - PL_markstack;
153 I32 newmax = GROW(oldmax);
155 Renew(PL_markstack, newmax, I32);
156 PL_markstack_ptr = PL_markstack + oldmax;
157 PL_markstack_max = PL_markstack + newmax;
161 Perl_savestack_grow(pTHX)
164 PL_savestack_max = GROW(PL_savestack_max) + 4;
165 Renew(PL_savestack, PL_savestack_max, ANY);
171 Perl_tmps_grow(pTHX_ I32 n)
174 #ifndef STRESS_REALLOC
176 n = (PL_tmps_max < 512) ? 128 : 512;
178 PL_tmps_max = PL_tmps_ix + n + 1;
179 Renew(PL_tmps_stack, PL_tmps_max, SV*);
187 /* XXX should tmps_floor live in cxstack? */
188 I32 myfloor = PL_tmps_floor;
189 while (PL_tmps_ix > myfloor) { /* clean up after last statement */
190 SV* sv = PL_tmps_stack[PL_tmps_ix];
191 PL_tmps_stack[PL_tmps_ix--] = Nullsv;
194 SvREFCNT_dec(sv); /* note, can modify tmps_ix!!! */
200 S_save_scalar_at(pTHX_ SV **sptr)
206 sv = *sptr = NEWSV(0,0);
207 if (SvTYPE(osv) >= SVt_PVMG && SvMAGIC(osv) && SvTYPE(osv) != SVt_PVGV) {
208 sv_upgrade(sv, SvTYPE(osv));
209 if (SvGMAGICAL(osv)) {
211 bool oldtainted = PL_tainted;
213 if (PL_tainting && PL_tainted && (mg = mg_find(osv, 't'))) {
214 SAVESPTR(mg->mg_obj);
217 SvFLAGS(osv) |= (SvFLAGS(osv) &
218 (SVp_IOK|SVp_NOK|SVp_POK)) >> PRIVSHIFT;
219 PL_tainted = oldtainted;
221 SvMAGIC(sv) = SvMAGIC(osv);
222 SvFLAGS(sv) |= SvMAGICAL(osv);
231 Perl_save_scalar(pTHX_ GV *gv)
234 SV **sptr = &GvSV(gv);
236 SSPUSHPTR(SvREFCNT_inc(gv));
237 SSPUSHPTR(SvREFCNT_inc(*sptr));
239 return save_scalar_at(sptr);
243 Perl_save_svref(pTHX_ SV **sptr)
248 SSPUSHPTR(SvREFCNT_inc(*sptr));
249 SSPUSHINT(SAVEt_SVREF);
250 return save_scalar_at(sptr);
253 /* Like save_svref(), but doesn't deal with magic. Can be used to
254 * restore a global SV to its prior contents, freeing new value. */
256 Perl_save_generic_svref(pTHX_ SV **sptr)
261 SSPUSHPTR(SvREFCNT_inc(*sptr));
262 SSPUSHINT(SAVEt_GENERIC_SVREF);
266 Perl_save_gp(pTHX_ GV *gv, I32 empty)
270 SSPUSHIV((IV)SvLEN(gv));
271 SvLEN(gv) = 0; /* forget that anything was allocated here */
272 SSPUSHIV((IV)SvCUR(gv));
273 SSPUSHPTR(SvPVX(gv));
275 SSPUSHPTR(SvREFCNT_inc(gv));
282 Newz(602, gp, 1, GP);
285 PL_sub_generation++; /* taking a method out of circulation */
286 if (GvIOp(gv) && (IoFLAGS(GvIOp(gv)) & IOf_ARGV)) {
288 IoFLAGS(gp->gp_io) |= IOf_ARGV|IOf_START;
290 GvGP(gv) = gp_ref(gp);
291 GvSV(gv) = NEWSV(72,0);
292 GvLINE(gv) = CopLINE(PL_curcop);
302 Perl_save_ary(pTHX_ GV *gv)
308 if (!AvREAL(oav) && AvREIFY(oav))
315 GvAV(gv) = Null(AV*);
318 SvMAGIC(av) = SvMAGIC(oav);
319 SvFLAGS((SV*)av) |= SvMAGICAL(oav);
330 Perl_save_hash(pTHX_ GV *gv)
337 SSPUSHPTR(ohv = GvHVn(gv));
340 GvHV(gv) = Null(HV*);
343 SvMAGIC(hv) = SvMAGIC(ohv);
344 SvFLAGS((SV*)hv) |= SvMAGICAL(ohv);
355 Perl_save_item(pTHX_ register SV *item)
358 register SV *sv = NEWSV(0,0);
362 SSPUSHPTR(item); /* remember the pointer */
363 SSPUSHPTR(sv); /* remember the value */
364 SSPUSHINT(SAVEt_ITEM);
368 Perl_save_int(pTHX_ int *intp)
374 SSPUSHINT(SAVEt_INT);
378 Perl_save_long(pTHX_ long int *longp)
384 SSPUSHINT(SAVEt_LONG);
388 Perl_save_I32(pTHX_ I32 *intp)
394 SSPUSHINT(SAVEt_I32);
398 Perl_save_I16(pTHX_ I16 *intp)
404 SSPUSHINT(SAVEt_I16);
408 Perl_save_I8(pTHX_ I8 *bytep)
418 Perl_save_iv(pTHX_ IV *ivp)
427 /* Cannot use save_sptr() to store a char* since the SV** cast will
428 * force word-alignment and we'll miss the pointer.
431 Perl_save_pptr(pTHX_ char **pptr)
437 SSPUSHINT(SAVEt_PPTR);
441 Perl_save_vptr(pTHX_ void *ptr)
445 SSPUSHPTR(*(char**)ptr);
447 SSPUSHINT(SAVEt_VPTR);
451 Perl_save_sptr(pTHX_ SV **sptr)
457 SSPUSHINT(SAVEt_SPTR);
461 Perl_save_threadsv(pTHX_ PADOFFSET i)
465 SV **svp = &THREADSV(i); /* XXX Change to save by offset */
466 DEBUG_S(PerlIO_printf(Perl_debug_log, "save_threadsv %"UVuf": %p %p:%s\n",
467 (UV)i, svp, *svp, SvPEEK(*svp)));
471 Perl_croak(aTHX_ "panic: save_threadsv called in non-threaded perl");
473 #endif /* USE_THREADS */
477 Perl_save_nogv(pTHX_ GV *gv)
482 SSPUSHINT(SAVEt_NSTAB);
486 Perl_save_hptr(pTHX_ HV **hptr)
492 SSPUSHINT(SAVEt_HPTR);
496 Perl_save_aptr(pTHX_ AV **aptr)
502 SSPUSHINT(SAVEt_APTR);
506 Perl_save_freesv(pTHX_ SV *sv)
511 SSPUSHINT(SAVEt_FREESV);
515 Perl_save_freeop(pTHX_ OP *o)
520 SSPUSHINT(SAVEt_FREEOP);
524 Perl_save_freepv(pTHX_ char *pv)
529 SSPUSHINT(SAVEt_FREEPV);
533 Perl_save_clearsv(pTHX_ SV **svp)
537 SSPUSHLONG((long)(svp-PL_curpad));
538 SSPUSHINT(SAVEt_CLEARSV);
542 Perl_save_delete(pTHX_ HV *hv, char *key, I32 klen)
548 SSPUSHPTR(SvREFCNT_inc(hv));
549 SSPUSHINT(SAVEt_DELETE);
553 Perl_save_list(pTHX_ register SV **sarg, I32 maxsarg)
559 for (i = 1; i <= maxsarg; i++) {
561 sv_setsv(sv,sarg[i]);
563 SSPUSHPTR(sarg[i]); /* remember the pointer */
564 SSPUSHPTR(sv); /* remember the value */
565 SSPUSHINT(SAVEt_ITEM);
570 Perl_save_destructor(pTHX_ DESTRUCTORFUNC_NOCONTEXT_t f, void* p)
576 SSPUSHINT(SAVEt_DESTRUCTOR);
580 Perl_save_destructor_x(pTHX_ DESTRUCTORFUNC_t f, void* p)
586 SSPUSHINT(SAVEt_DESTRUCTOR_X);
590 Perl_save_aelem(pTHX_ AV *av, I32 idx, SV **sptr)
594 SSPUSHPTR(SvREFCNT_inc(av));
596 SSPUSHPTR(SvREFCNT_inc(*sptr));
597 SSPUSHINT(SAVEt_AELEM);
598 save_scalar_at(sptr);
602 Perl_save_helem(pTHX_ HV *hv, SV *key, SV **sptr)
606 SSPUSHPTR(SvREFCNT_inc(hv));
607 SSPUSHPTR(SvREFCNT_inc(key));
608 SSPUSHPTR(SvREFCNT_inc(*sptr));
609 SSPUSHINT(SAVEt_HELEM);
610 save_scalar_at(sptr);
623 Perl_save_alloc(pTHX_ I32 size, I32 pad)
626 register I32 start = pad + ((char*)&PL_savestack[PL_savestack_ix]
627 - (char*)PL_savestack);
628 register I32 elems = 1 + ((size + pad - 1) / sizeof(*PL_savestack));
630 /* SSCHECK may not be good enough */
631 while (PL_savestack_ix + elems + 2 > PL_savestack_max)
634 PL_savestack_ix += elems;
636 SSPUSHINT(SAVEt_ALLOC);
641 Perl_leave_scope(pTHX_ I32 base)
653 Perl_croak(aTHX_ "panic: corrupt saved stack index");
654 while (PL_savestack_ix > base) {
656 case SAVEt_ITEM: /* normal string */
657 value = (SV*)SSPOPPTR;
659 sv_replace(sv,value);
664 case SAVEt_SV: /* scalar reference */
665 value = (SV*)SSPOPPTR;
670 case SAVEt_GENERIC_SVREF: /* generic sv */
671 value = (SV*)SSPOPPTR;
680 case SAVEt_SVREF: /* scalar reference */
681 value = (SV*)SSPOPPTR;
685 DEBUG_S(PerlIO_printf(Perl_debug_log,
686 "restore svref: %p %p:%s -> %p:%s\n",
687 ptr, sv, SvPEEK(sv), value, SvPEEK(value)));
688 if (SvTYPE(sv) >= SVt_PVMG && SvMAGIC(sv) &&
689 SvTYPE(sv) != SVt_PVGV)
691 (void)SvUPGRADE(value, SvTYPE(sv));
692 SvMAGIC(value) = SvMAGIC(sv);
693 SvFLAGS(value) |= SvMAGICAL(sv);
697 else if (SvTYPE(value) >= SVt_PVMG && SvMAGIC(value) &&
698 SvTYPE(value) != SVt_PVGV)
700 SvFLAGS(value) |= (SvFLAGS(value) &
701 (SVp_IOK|SVp_NOK|SVp_POK)) >> PRIVSHIFT;
702 SvMAGICAL_off(value);
712 case SAVEt_AV: /* array reference */
716 AV *goner = GvAV(gv);
717 SvMAGIC(av) = SvMAGIC(goner);
718 SvFLAGS((SV*)av) |= SvMAGICAL(goner);
719 SvMAGICAL_off(goner);
730 case SAVEt_HV: /* hash reference */
734 HV *goner = GvHV(gv);
735 SvMAGIC(hv) = SvMAGIC(goner);
736 SvFLAGS(hv) |= SvMAGICAL(goner);
737 SvMAGICAL_off(goner);
748 case SAVEt_INT: /* int reference */
750 *(int*)ptr = (int)SSPOPINT;
752 case SAVEt_LONG: /* long reference */
754 *(long*)ptr = (long)SSPOPLONG;
756 case SAVEt_I32: /* I32 reference */
758 *(I32*)ptr = (I32)SSPOPINT;
760 case SAVEt_I16: /* I16 reference */
762 *(I16*)ptr = (I16)SSPOPINT;
764 case SAVEt_I8: /* I8 reference */
766 *(I8*)ptr = (I8)SSPOPINT;
768 case SAVEt_IV: /* IV reference */
770 *(IV*)ptr = (IV)SSPOPIV;
772 case SAVEt_SPTR: /* SV* reference */
774 *(SV**)ptr = (SV*)SSPOPPTR;
776 case SAVEt_VPTR: /* random* reference */
777 case SAVEt_PPTR: /* char* reference */
779 *(char**)ptr = (char*)SSPOPPTR;
781 case SAVEt_HPTR: /* HV* reference */
783 *(HV**)ptr = (HV*)SSPOPPTR;
785 case SAVEt_APTR: /* AV* reference */
787 *(AV**)ptr = (AV*)SSPOPPTR;
791 (void)sv_clear((SV*)gv);
793 case SAVEt_GP: /* scalar reference */
796 if (SvPVX(gv) && SvLEN(gv) > 0) {
799 SvPVX(gv) = (char *)SSPOPPTR;
800 SvCUR(gv) = (STRLEN)SSPOPIV;
801 SvLEN(gv) = (STRLEN)SSPOPIV;
805 PL_sub_generation++; /* putting a method back into circulation */
810 SvREFCNT_dec((SV*)ptr);
815 PL_curpad = AvARRAY(PL_comppad);
820 Safefree((char*)ptr);
823 ptr = (void*)&PL_curpad[SSPOPLONG];
825 /* Can clear pad variable in place? */
826 if (SvREFCNT(sv) <= 1 && !SvOBJECT(sv)) {
827 if (SvTHINKFIRST(sv))
832 switch (SvTYPE(sv)) {
842 Perl_croak(aTHX_ "panic: leave_scope pad code");
854 else { /* Someone has a claim on this, so abandon it. */
855 U32 padflags = SvFLAGS(sv) & (SVs_PADBUSY|SVs_PADMY|SVs_PADTMP);
856 switch (SvTYPE(sv)) { /* Console ourselves with a new value */
857 case SVt_PVAV: *(SV**)ptr = (SV*)newAV(); break;
858 case SVt_PVHV: *(SV**)ptr = (SV*)newHV(); break;
859 default: *(SV**)ptr = NEWSV(0,0); break;
861 SvREFCNT_dec(sv); /* Cast current value to the winds. */
862 SvFLAGS(*(SV**)ptr) |= padflags; /* preserve pad nature */
869 (void)hv_delete(hv, (char*)ptr, (U32)SSPOPINT, G_DISCARD);
873 case SAVEt_DESTRUCTOR:
877 case SAVEt_DESTRUCTOR_X:
879 (*SSPOPDXPTR)(aTHXo_ ptr);
881 case SAVEt_REGCONTEXT:
884 PL_savestack_ix -= i; /* regexp must have croaked */
886 case SAVEt_STACK_POS: /* Position on Perl stack */
888 PL_stack_sp = PL_stack_base + i;
890 case SAVEt_AELEM: /* array element */
891 value = (SV*)SSPOPPTR;
894 ptr = av_fetch(av,i,1);
897 if (sv && sv != &PL_sv_undef) {
898 if (SvTIED_mg((SV*)av, 'P'))
899 (void)SvREFCNT_inc(sv);
907 case SAVEt_HELEM: /* hash element */
908 value = (SV*)SSPOPPTR;
911 ptr = hv_fetch_ent(hv, sv, 1, 0);
913 SV *oval = HeVAL((HE*)ptr);
914 if (oval && oval != &PL_sv_undef) {
915 ptr = &HeVAL((HE*)ptr);
916 if (SvTIED_mg((SV*)hv, 'P'))
917 (void)SvREFCNT_inc(*(SV**)ptr);
928 PL_op = (OP*)SSPOPPTR;
931 if (GvHV(PL_hintgv)) {
932 SvREFCNT_dec((SV*)GvHV(PL_hintgv));
933 GvHV(PL_hintgv) = NULL;
935 *(I32*)&PL_hints = (I32)SSPOPINT;
938 PL_comppad = (AV*)SSPOPPTR;
940 PL_curpad = AvARRAY(PL_comppad);
942 PL_curpad = Null(SV**);
945 Perl_croak(aTHX_ "panic: leave_scope inconsistency");
951 Perl_cx_dump(pTHX_ PERL_CONTEXT *cx)
955 PerlIO_printf(Perl_debug_log, "CX %ld = %s\n", (long)(cx - cxstack), PL_block_type[CxTYPE(cx)]);
956 if (CxTYPE(cx) != CXt_SUBST) {
957 PerlIO_printf(Perl_debug_log, "BLK_OLDSP = %ld\n", (long)cx->blk_oldsp);
958 PerlIO_printf(Perl_debug_log, "BLK_OLDCOP = 0x%"UVxf"\n",
959 PTR2UV(cx->blk_oldcop));
960 PerlIO_printf(Perl_debug_log, "BLK_OLDMARKSP = %ld\n", (long)cx->blk_oldmarksp);
961 PerlIO_printf(Perl_debug_log, "BLK_OLDSCOPESP = %ld\n", (long)cx->blk_oldscopesp);
962 PerlIO_printf(Perl_debug_log, "BLK_OLDRETSP = %ld\n", (long)cx->blk_oldretsp);
963 PerlIO_printf(Perl_debug_log, "BLK_OLDPM = 0x%"UVxf"\n",
964 PTR2UV(cx->blk_oldpm));
965 PerlIO_printf(Perl_debug_log, "BLK_GIMME = %s\n", cx->blk_gimme ? "LIST" : "SCALAR");
967 switch (CxTYPE(cx)) {
972 PerlIO_printf(Perl_debug_log, "BLK_SUB.CV = 0x%"UVxf"\n",
973 PTR2UV(cx->blk_sub.cv));
974 PerlIO_printf(Perl_debug_log, "BLK_SUB.GV = 0x%"UVxf"\n",
975 PTR2UV(cx->blk_sub.gv));
976 PerlIO_printf(Perl_debug_log, "BLK_SUB.DFOUTGV = 0x%"UVxf"\n",
977 PTR2UV(cx->blk_sub.dfoutgv));
978 PerlIO_printf(Perl_debug_log, "BLK_SUB.HASARGS = %d\n",
979 (int)cx->blk_sub.hasargs);
982 PerlIO_printf(Perl_debug_log, "BLK_SUB.CV = 0x%"UVxf"\n",
983 PTR2UV(cx->blk_sub.cv));
984 PerlIO_printf(Perl_debug_log, "BLK_SUB.OLDDEPTH = %ld\n",
985 (long)cx->blk_sub.olddepth);
986 PerlIO_printf(Perl_debug_log, "BLK_SUB.HASARGS = %d\n",
987 (int)cx->blk_sub.hasargs);
988 PerlIO_printf(Perl_debug_log, "BLK_SUB.LVAL = %d\n",
989 (int)cx->blk_sub.lval);
992 PerlIO_printf(Perl_debug_log, "BLK_EVAL.OLD_IN_EVAL = %ld\n",
993 (long)cx->blk_eval.old_in_eval);
994 PerlIO_printf(Perl_debug_log, "BLK_EVAL.OLD_OP_TYPE = %s (%s)\n",
995 PL_op_name[cx->blk_eval.old_op_type],
996 PL_op_desc[cx->blk_eval.old_op_type]);
997 if (cx->blk_eval.old_namesv)
998 PerlIO_printf(Perl_debug_log, "BLK_EVAL.OLD_NAME = %s\n",
999 SvPVX(cx->blk_eval.old_namesv));
1000 PerlIO_printf(Perl_debug_log, "BLK_EVAL.OLD_EVAL_ROOT = 0x%"UVxf"\n",
1001 PTR2UV(cx->blk_eval.old_eval_root));
1005 PerlIO_printf(Perl_debug_log, "BLK_LOOP.LABEL = %s\n",
1006 cx->blk_loop.label);
1007 PerlIO_printf(Perl_debug_log, "BLK_LOOP.RESETSP = %ld\n",
1008 (long)cx->blk_loop.resetsp);
1009 PerlIO_printf(Perl_debug_log, "BLK_LOOP.REDO_OP = 0x%"UVxf"\n",
1010 PTR2UV(cx->blk_loop.redo_op));
1011 PerlIO_printf(Perl_debug_log, "BLK_LOOP.NEXT_OP = 0x%"UVxf"\n",
1012 PTR2UV(cx->blk_loop.next_op));
1013 PerlIO_printf(Perl_debug_log, "BLK_LOOP.LAST_OP = 0x%"UVxf"\n",
1014 PTR2UV(cx->blk_loop.last_op));
1015 PerlIO_printf(Perl_debug_log, "BLK_LOOP.ITERIX = %ld\n",
1016 (long)cx->blk_loop.iterix);
1017 PerlIO_printf(Perl_debug_log, "BLK_LOOP.ITERARY = 0x%"UVxf"\n",
1018 PTR2UV(cx->blk_loop.iterary));
1019 PerlIO_printf(Perl_debug_log, "BLK_LOOP.ITERVAR = 0x%"UVxf"\n",
1020 PTR2UV(CxITERVAR(cx)));
1022 PerlIO_printf(Perl_debug_log, "BLK_LOOP.ITERSAVE = 0x%"UVxf"\n",
1023 PTR2UV(cx->blk_loop.itersave));
1024 PerlIO_printf(Perl_debug_log, "BLK_LOOP.ITERLVAL = 0x%"UVxf"\n",
1025 PTR2UV(cx->blk_loop.iterlval));
1029 PerlIO_printf(Perl_debug_log, "SB_ITERS = %ld\n",
1030 (long)cx->sb_iters);
1031 PerlIO_printf(Perl_debug_log, "SB_MAXITERS = %ld\n",
1032 (long)cx->sb_maxiters);
1033 PerlIO_printf(Perl_debug_log, "SB_RFLAGS = %ld\n",
1034 (long)cx->sb_rflags);
1035 PerlIO_printf(Perl_debug_log, "SB_ONCE = %ld\n",
1037 PerlIO_printf(Perl_debug_log, "SB_ORIG = %s\n",
1039 PerlIO_printf(Perl_debug_log, "SB_DSTR = 0x%"UVxf"\n",
1040 PTR2UV(cx->sb_dstr));
1041 PerlIO_printf(Perl_debug_log, "SB_TARG = 0x%"UVxf"\n",
1042 PTR2UV(cx->sb_targ));
1043 PerlIO_printf(Perl_debug_log, "SB_S = 0x%"UVxf"\n",
1045 PerlIO_printf(Perl_debug_log, "SB_M = 0x%"UVxf"\n",
1047 PerlIO_printf(Perl_debug_log, "SB_STREND = 0x%"UVxf"\n",
1048 PTR2UV(cx->sb_strend));
1049 PerlIO_printf(Perl_debug_log, "SB_RXRES = 0x%"UVxf"\n",
1050 PTR2UV(cx->sb_rxres));
1053 #endif /* DEBUGGING */