45 #ifndef _P_P_PORTABILITY_H_
46 #define _P_P_PORTABILITY_H_
47 #ifndef DPPP_NAMESPACE
48 #define DPPP_NAMESPACE DPPP_
50 #define DPPP_CAT2(x,y) CAT2(x,y)
51 #define DPPP_(name) DPPP_CAT2(DPPP_NAMESPACE, name)
53 #if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION))
54 #define PERL_PATCHLEVEL_H_IMPLICIT
55 #include <patchlevel.h>
57 #if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL)))
58 #include <could_not_find_Perl_patchlevel.h>
61 #define PERL_REVISION (5)
62 #define PERL_VERSION PATCHLEVEL
63 #define PERL_SUBVERSION SUBVERSION
66 #define _dpppDEC2BCD(dec) ((((dec)/100)<<8)|((((dec)%100)/10)<<4)|((dec)%10))
67 #define PERL_BCDVERSION ((_dpppDEC2BCD(PERL_REVISION)<<24)|(_dpppDEC2BCD(PERL_VERSION)<<12)|_dpppDEC2BCD(PERL_SUBVERSION))
68 #if PERL_REVISION != 5
69 #error ppport.h only works with Perl version 5
78 #define dTHXa(x) dNOOP
92 #if (PERL_BCDVERSION < 0x5006000)
107 #define dTHXoa(x) dTHXa(x)
112 #ifndef PERL_UCHAR_MIN
113 #define PERL_UCHAR_MIN ((unsigned char)0)
115 #ifndef PERL_UCHAR_MAX
117 #define PERL_UCHAR_MAX ((unsigned char)UCHAR_MAX)
120 #define PERL_UCHAR_MAX ((unsigned char)MAXUCHAR)
122 #define PERL_UCHAR_MAX ((unsigned char)~(unsigned)0)
126 #ifndef PERL_USHORT_MIN
127 #define PERL_USHORT_MIN ((unsigned short)0)
129 #ifndef PERL_USHORT_MAX
131 #define PERL_USHORT_MAX ((unsigned short)USHORT_MAX)
134 #define PERL_USHORT_MAX ((unsigned short)MAXUSHORT)
137 #define PERL_USHORT_MAX ((unsigned short)USHRT_MAX)
139 #define PERL_USHORT_MAX ((unsigned short)~(unsigned)0)
144 #ifndef PERL_SHORT_MAX
146 #define PERL_SHORT_MAX ((short)SHORT_MAX)
149 #define PERL_SHORT_MAX ((short)MAXSHORT)
152 #define PERL_SHORT_MAX ((short)SHRT_MAX)
154 #define PERL_SHORT_MAX ((short) (PERL_USHORT_MAX >> 1))
159 #ifndef PERL_SHORT_MIN
161 #define PERL_SHORT_MIN ((short)SHORT_MIN)
164 #define PERL_SHORT_MIN ((short)MINSHORT)
167 #define PERL_SHORT_MIN ((short)SHRT_MIN)
169 #define PERL_SHORT_MIN (-PERL_SHORT_MAX - ((3 & -1) == 3))
174 #ifndef PERL_UINT_MAX
176 #define PERL_UINT_MAX ((unsigned int)UINT_MAX)
179 #define PERL_UINT_MAX ((unsigned int)MAXUINT)
181 #define PERL_UINT_MAX (~(unsigned int)0)
185 #ifndef PERL_UINT_MIN
186 #define PERL_UINT_MIN ((unsigned int)0)
190 #define PERL_INT_MAX ((int)INT_MAX)
193 #define PERL_INT_MAX ((int)MAXINT)
195 #define PERL_INT_MAX ((int)(PERL_UINT_MAX >> 1))
201 #define PERL_INT_MIN ((int)INT_MIN)
204 #define PERL_INT_MIN ((int)MININT)
206 #define PERL_INT_MIN (-PERL_INT_MAX - ((3 & -1) == 3))
210 #ifndef PERL_ULONG_MAX
212 #define PERL_ULONG_MAX ((unsigned long)ULONG_MAX)
215 #define PERL_ULONG_MAX ((unsigned long)MAXULONG)
217 #define PERL_ULONG_MAX (~(unsigned long)0)
221 #ifndef PERL_ULONG_MIN
222 #define PERL_ULONG_MIN ((unsigned long)0L)
224 #ifndef PERL_LONG_MAX
226 #define PERL_LONG_MAX ((long)LONG_MAX)
229 #define PERL_LONG_MAX ((long)MAXLONG)
231 #define PERL_LONG_MAX ((long) (PERL_ULONG_MAX >> 1))
235 #ifndef PERL_LONG_MIN
237 #define PERL_LONG_MIN ((long)LONG_MIN)
240 #define PERL_LONG_MIN ((long)MINLONG)
242 #define PERL_LONG_MIN (-PERL_LONG_MAX - ((3 & -1) == 3))
246 #if defined(HAS_QUAD) && (defined(convex) || defined(uts))
247 #ifndef PERL_UQUAD_MAX
249 #define PERL_UQUAD_MAX ((unsigned long long)ULONGLONG_MAX)
252 #define PERL_UQUAD_MAX ((unsigned long long)MAXULONGLONG)
254 #define PERL_UQUAD_MAX (~(unsigned long long)0)
258 #ifndef PERL_UQUAD_MIN
259 #define PERL_UQUAD_MIN ((unsigned long long)0L)
261 #ifndef PERL_QUAD_MAX
263 #define PERL_QUAD_MAX ((long long)LONGLONG_MAX)
266 #define PERL_QUAD_MAX ((long long)MAXLONGLONG)
268 #define PERL_QUAD_MAX ((long long) (PERL_UQUAD_MAX >> 1))
272 #ifndef PERL_QUAD_MIN
274 #define PERL_QUAD_MIN ((long long)LONGLONG_MIN)
277 #define PERL_QUAD_MIN ((long long)MINLONGLONG)
279 #define PERL_QUAD_MIN (-PERL_QUAD_MAX - ((3 & -1) == 3))
290 #define IV_MIN PERL_INT_MIN
293 #define IV_MAX PERL_INT_MAX
296 #define UV_MIN PERL_UINT_MIN
299 #define UV_MAX PERL_UINT_MAX
303 #define IVSIZE INTSIZE
307 #if defined(convex) || defined(uts)
309 #define IVTYPE long long
312 #define IV_MIN PERL_QUAD_MIN
315 #define IV_MAX PERL_QUAD_MAX
318 #define UV_MIN PERL_UQUAD_MIN
321 #define UV_MAX PERL_UQUAD_MAX
325 #define IVSIZE LONGLONGSIZE
333 #define IV_MIN PERL_LONG_MIN
336 #define IV_MAX PERL_LONG_MAX
339 #define UV_MIN PERL_ULONG_MIN
342 #define UV_MAX PERL_ULONG_MAX
346 #define IVSIZE LONGSIZE
357 #ifndef PERL_QUAD_MIN
358 #define PERL_QUAD_MIN IV_MIN
360 #ifndef PERL_QUAD_MAX
361 #define PERL_QUAD_MAX IV_MAX
363 #ifndef PERL_UQUAD_MIN
364 #define PERL_UQUAD_MIN UV_MIN
366 #ifndef PERL_UQUAD_MAX
367 #define PERL_UQUAD_MAX UV_MAX
377 #define IV_MIN PERL_LONG_MIN
380 #define IV_MAX PERL_LONG_MAX
383 #define UV_MIN PERL_ULONG_MIN
386 #define UV_MAX PERL_ULONG_MAX
391 #define IVSIZE LONGSIZE
397 #define UVTYPE unsigned IVTYPE
400 #define UVSIZE IVSIZE
403 #define sv_setuv(sv, uv) \
406 if (TeMpUv <= IV_MAX) \
407 sv_setiv(sv, TeMpUv); \
409 sv_setnv(sv, (double)TeMpUv); \
413 #define newSVuv(uv) ((uv) <= IV_MAX ? newSViv((IV)uv) : newSVnv((NV)uv))
416 #define sv_2uv(sv) ((PL_Sv = (sv)), (UV) (SvNOK(PL_Sv) ? SvNV(PL_Sv) : sv_2nv(PL_Sv)))
419 #define SvUVX(sv) ((UV)SvIVX(sv))
422 #define SvUVXx(sv) SvUVX(sv)
425 #define SvUV(sv) (SvIOK(sv) ? SvUVX(sv) : sv_2uv(sv))
428 #define SvUVx(sv) ((PL_Sv = (sv)), SvUV(PL_Sv))
431 #define sv_uv(sv) SvUVx(sv)
433 #if !defined(SvUOK) && defined(SvIOK_UV)
434 #define SvUOK(sv) SvIOK_UV(sv)
437 #define XST_mUV(i,v) (ST(i) = sv_2mortal(newSVuv(v)) )
440 #define XSRETURN_UV(v) STMT_START { XST_mUV(0,v); XSRETURN(1); } STMT_END
443 #define PUSHu(u) STMT_START { sv_setuv(TARG, (UV)(u)); PUSHTARG; } STMT_END
446 #define XPUSHu(u) STMT_START { sv_setuv(TARG, (UV)(u)); XPUSHTARG; } STMT_END
450 #define memNE(s1,s2,l) (memcmp(s1,s2,l))
453 #define memEQ(s1,s2,l) (!memcmp(s1,s2,l))
457 #define memNE(s1,s2,l) (bcmp(s1,s2,l))
460 #define memEQ(s1,s2,l) (!bcmp(s1,s2,l))
464 #define memEQs(s1, l, s2) \
465 (sizeof(s2)-1 == l && memEQ(s1, (s2 ""), (sizeof(s2)-1)))
468 #define memNEs(s1, l, s2) !memEQs(s1, l, s2)
471 #define MoveD(s,d,n,t) memmove((char*)(d),(char*)(s), (n) * sizeof(t))
474 #define CopyD(s,d,n,t) memcpy((char*)(d),(char*)(s), (n) * sizeof(t))
478 #define ZeroD(d,n,t) memzero((char*)(d), (n) * sizeof(t))
482 #define ZeroD(d,n,t) ((void)memzero((char*)(d), (n) * sizeof(t)), d)
486 #define PoisonWith(d,n,t,b) (void)memset((char*)(d), (U8)(b), (n) * sizeof(t))
489 #define PoisonNew(d,n,t) PoisonWith(d,n,t,0xAB)
492 #define PoisonFree(d,n,t) PoisonWith(d,n,t,0xEF)
495 #define Poison(d,n,t) PoisonFree(d,n,t)
498 #define Newx(v,n,t) New(0,v,n,t)
501 #define Newxc(v,n,t,c) Newc(0,v,n,t,c)
504 #define Newxz(v,n,t) Newz(0,v,n,t)
506 #ifndef PERL_UNUSED_DECL
508 #if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
509 #define PERL_UNUSED_DECL
511 #define PERL_UNUSED_DECL __attribute__((unused))
514 #define PERL_UNUSED_DECL
517 #ifndef PERL_UNUSED_ARG
518 #if defined(lint) && defined(S_SPLINT_S)
520 #define PERL_UNUSED_ARG(x) NOTE(ARGUNUSED(x))
522 #define PERL_UNUSED_ARG(x) ((void)x)
525 #ifndef PERL_UNUSED_VAR
526 #define PERL_UNUSED_VAR(x) ((void)x)
528 #ifndef PERL_UNUSED_CONTEXT
530 #define PERL_UNUSED_CONTEXT PERL_UNUSED_ARG(my_perl)
532 #define PERL_UNUSED_CONTEXT
539 #define dNOOP extern int Perl___notused PERL_UNUSED_DECL
542 #if defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE)
543 #define NVTYPE long double
545 #define NVTYPE double
550 #if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
552 #define INT2PTR(any,d) (any)(d)
554 #if PTRSIZE == LONGSIZE
555 #define PTRV unsigned long
557 #define PTRV unsigned
559 #define INT2PTR(any,d) (any)(PTRV)(d)
563 #if PTRSIZE == LONGSIZE
564 #define PTR2ul(p) (unsigned long)(p)
566 #define PTR2ul(p) INT2PTR(unsigned long,p)
570 #define PTR2nat(p) (PTRV)(p)
573 #define NUM2PTR(any,d) (any)PTR2nat(d)
576 #define PTR2IV(p) INT2PTR(IV,p)
579 #define PTR2UV(p) INT2PTR(UV,p)
582 #define PTR2NV(p) NUM2PTR(NV,p)
584 #undef START_EXTERN_C
588 #define START_EXTERN_C extern "C" {
589 #define END_EXTERN_C }
590 #define EXTERN_C extern "C"
592 #define START_EXTERN_C
594 #define EXTERN_C extern
596 #if defined(PERL_GCC_PEDANTIC)
597 #ifndef PERL_GCC_BRACE_GROUPS_FORBIDDEN
598 #define PERL_GCC_BRACE_GROUPS_FORBIDDEN
601 #if defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN) && !defined(__cplusplus)
602 #ifndef PERL_USE_GCC_BRACE_GROUPS
603 #define PERL_USE_GCC_BRACE_GROUPS
608 #ifdef PERL_USE_GCC_BRACE_GROUPS
609 #define STMT_START (void)(
612 #if defined(VOIDFLAGS) && (VOIDFLAGS) && (defined(sun) || defined(__sun__)) && !defined(__GNUC__)
613 #define STMT_START if (1)
614 #define STMT_END else (void)0
616 #define STMT_START do
617 #define STMT_END while (0)
621 #define boolSV(b) ((b) ? &PL_sv_yes : &PL_sv_no)
624 #define DEFSV GvSV(PL_defgv)
627 #define SAVE_DEFSV SAVESPTR(GvSV(PL_defgv))
630 #define DEFSV_set(sv) (DEFSV = (sv))
633 #define AvFILLp AvFILL
636 #define ERRSV get_sv("@",FALSE)
639 #define gv_stashpvn(str,len,create) gv_stashpv(str,create)
642 #define get_cv perl_get_cv
645 #define get_sv perl_get_sv
648 #define get_av perl_get_av
651 #define get_hv perl_get_hv
654 #define dUNDERBAR dNOOP
657 #define UNDERBAR DEFSV
660 #define dAX I32 ax = MARK - PL_stack_base + 1
663 #define dITEMS I32 items = SP - MARK
666 #define dXSTARG SV * targ = sv_newmortal()
669 #define dAXMARK I32 ax = POPMARK; \
670 register SV ** const mark = PL_stack_base + ax++
673 #define XSprePUSH (sp = PL_stack_base + ax - 1)
675 #if (PERL_BCDVERSION < 0x5005000)
677 #define XSRETURN(off) \
679 PL_stack_sp = PL_stack_base + ax + ((off) - 1); \
684 #define XSPROTO(name) void name(pTHX_ CV* cv)
687 #define SVfARG(p) ((void*)(p))
690 #define PERL_ABS(x) ((x) < 0 ? -(x) : (x))
698 #ifndef UTF8_MAXBYTES
699 #define UTF8_MAXBYTES UTF8_MAXLEN
702 #define CPERLscope(x) x
705 #define PERL_HASH(hash,str,len) \
707 const char *s_PeRlHaSh = str; \
708 I32 i_PeRlHaSh = len; \
709 U32 hash_PeRlHaSh = 0; \
710 while (i_PeRlHaSh--) \
711 hash_PeRlHaSh = hash_PeRlHaSh * 33 + *s_PeRlHaSh++; \
712 (hash) = hash_PeRlHaSh; \
715 #ifndef PERLIO_FUNCS_DECL
716 #ifdef PERLIO_FUNCS_CONST
717 #define PERLIO_FUNCS_DECL(funcs) const PerlIO_funcs funcs
718 #define PERLIO_FUNCS_CAST(funcs) (PerlIO_funcs*)(funcs)
720 #define PERLIO_FUNCS_DECL(funcs) PerlIO_funcs funcs
721 #define PERLIO_FUNCS_CAST(funcs) (funcs)
724 #if (PERL_BCDVERSION < 0x5009003)
733 #define isPSXSPC(c) (isSPACE(c) || (c) == '\v')
736 #define isBLANK(c) ((c) == ' ' || (c) == '\t')
740 #define isALNUMC(c) isalnum(c)
743 #define isASCII(c) isascii(c)
746 #define isCNTRL(c) iscntrl(c)
749 #define isGRAPH(c) isgraph(c)
752 #define isPRINT(c) isprint(c)
755 #define isPUNCT(c) ispunct(c)
758 #define isXDIGIT(c) isxdigit(c)
761 #if (PERL_BCDVERSION < 0x5010000)
766 #define WIDEST_UTYPE U64TYPE
768 #define WIDEST_UTYPE Quad_t
771 #define WIDEST_UTYPE U32
774 #define isALNUMC(c) (isALPHA(c) || isDIGIT(c))
777 #define isASCII(c) ((WIDEST_UTYPE) (c) <= 127)
780 #define isCNTRL(c) ((WIDEST_UTYPE) (c) < ' ' || (c) == 127)
783 #define isGRAPH(c) (isALNUM(c) || isPUNCT(c))
786 #define isPRINT(c) (((c) >= 32 && (c) < 127))
789 #define isPUNCT(c) (((c) >= 33 && (c) <= 47) || ((c) >= 58 && (c) <= 64) || ((c) >= 91 && (c) <= 96) || ((c) >= 123 && (c) <= 126))
792 #define isXDIGIT(c) (isDIGIT(c) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))
795 #if (PERL_BCDVERSION >= 0x5008000)
797 #define HeUTF8(he) ((HeKLEN(he) == HEf_SVKEY) ? \
798 SvUTF8(HeKEY_sv(he)) : \
802 #ifndef PERL_SIGNALS_UNSAFE_FLAG
803 #define PERL_SIGNALS_UNSAFE_FLAG 0x0001
804 #if (PERL_BCDVERSION < 0x5008000)
805 #define D_PPP_PERL_SIGNALS_INIT PERL_SIGNALS_UNSAFE_FLAG
807 #define D_PPP_PERL_SIGNALS_INIT 0
809 #if defined(NEED_PL_signals)
811 #elif defined(NEED_PL_signals_GLOBAL)
814 extern U32
DPPP_(my_PL_signals);
816 #define PL_signals DPPP_(my_PL_signals)
818 #if (PERL_BCDVERSION <= 0x5005005)
819 #define PL_ppaddr ppaddr
820 #define PL_no_modify no_modify
822 #if (PERL_BCDVERSION <= 0x5004005)
823 #define PL_DBsignal DBsignal
824 #define PL_DBsingle DBsingle
825 #define PL_DBsub DBsub
826 #define PL_DBtrace DBtrace
828 #define PL_bufend bufend
829 #define PL_bufptr bufptr
830 #define PL_compiling compiling
831 #define PL_copline copline
832 #define PL_curcop curcop
833 #define PL_curstash curstash
834 #define PL_debstash debstash
835 #define PL_defgv defgv
836 #define PL_diehook diehook
837 #define PL_dirty dirty
838 #define PL_dowarn dowarn
839 #define PL_errgv errgv
840 #define PL_error_count error_count
841 #define PL_expect expect
842 #define PL_hexdigit hexdigit
843 #define PL_hints hints
844 #define PL_in_my in_my
845 #define PL_laststatval laststatval
846 #define PL_lex_state lex_state
847 #define PL_lex_stuff lex_stuff
848 #define PL_linestr linestr
850 #define PL_perl_destruct_level perl_destruct_level
851 #define PL_perldb perldb
852 #define PL_rsfp_filters rsfp_filters
854 #define PL_stack_base stack_base
855 #define PL_stack_sp stack_sp
856 #define PL_statcache statcache
857 #define PL_stdingv stdingv
858 #define PL_sv_arenaroot sv_arenaroot
859 #define PL_sv_no sv_no
860 #define PL_sv_undef sv_undef
861 #define PL_sv_yes sv_yes
862 #define PL_tainted tainted
863 #define PL_tainting tainting
864 #define PL_tokenbuf tokenbuf
866 #if (PERL_BCDVERSION >= 0x5009005)
867 #ifdef DPPP_PL_parser_NO_DUMMY
868 #define D_PPP_my_PL_parser_var(var) ((PL_parser ? PL_parser : \
869 (croak("panic: PL_parser == NULL in %s:%d", \
870 __FILE__, __LINE__), (yy_parser *) NULL))->var)
872 #ifdef DPPP_PL_parser_NO_DUMMY_WARNING
873 #define D_PPP_parser_dummy_warning(var)
875 #define D_PPP_parser_dummy_warning(var) \
876 warn("warning: dummy PL_" #var " used in %s:%d", __FILE__, __LINE__),
878 #define D_PPP_my_PL_parser_var(var) ((PL_parser ? PL_parser : \
879 (D_PPP_parser_dummy_warning(var) &DPPP_(dummy_PL_parser)))->var)
880 #if defined(NEED_PL_parser)
881 static yy_parser
DPPP_(dummy_PL_parser);
882 #elif defined(NEED_PL_parser_GLOBAL)
883 yy_parser
DPPP_(dummy_PL_parser);
885 extern yy_parser
DPPP_(dummy_PL_parser);
888 #define PL_expect D_PPP_my_PL_parser_var(expect)
889 #define PL_copline D_PPP_my_PL_parser_var(copline)
890 #define PL_rsfp D_PPP_my_PL_parser_var(rsfp)
891 #define PL_rsfp_filters D_PPP_my_PL_parser_var(rsfp_filters)
892 #define PL_linestr D_PPP_my_PL_parser_var(linestr)
893 #define PL_bufptr D_PPP_my_PL_parser_var(bufptr)
894 #define PL_bufend D_PPP_my_PL_parser_var(bufend)
895 #define PL_lex_state D_PPP_my_PL_parser_var(lex_state)
896 #define PL_lex_stuff D_PPP_my_PL_parser_var(lex_stuff)
897 #define PL_tokenbuf D_PPP_my_PL_parser_var(tokenbuf)
898 #define PL_in_my D_PPP_my_PL_parser_var(in_my)
899 #define PL_in_my_stash D_PPP_my_PL_parser_var(in_my_stash)
900 #define PL_error_count D_PPP_my_PL_parser_var(error_count)
902 #define PL_parser ((void *) 1)
905 #define mPUSHs(s) PUSHs(sv_2mortal(s))
908 #define PUSHmortal PUSHs(sv_newmortal())
911 #define mPUSHp(p,l) sv_setpvn(PUSHmortal, (p), (l))
914 #define mPUSHn(n) sv_setnv(PUSHmortal, (NV)(n))
917 #define mPUSHi(i) sv_setiv(PUSHmortal, (IV)(i))
920 #define mPUSHu(u) sv_setuv(PUSHmortal, (UV)(u))
923 #define mXPUSHs(s) XPUSHs(sv_2mortal(s))
926 #define XPUSHmortal XPUSHs(sv_newmortal())
929 #define mXPUSHp(p,l) STMT_START { EXTEND(sp,1); sv_setpvn(PUSHmortal, (p), (l)); } STMT_END
932 #define mXPUSHn(n) STMT_START { EXTEND(sp,1); sv_setnv(PUSHmortal, (NV)(n)); } STMT_END
935 #define mXPUSHi(i) STMT_START { EXTEND(sp,1); sv_setiv(PUSHmortal, (IV)(i)); } STMT_END
938 #define mXPUSHu(u) STMT_START { EXTEND(sp,1); sv_setuv(PUSHmortal, (UV)(u)); } STMT_END
941 #define call_sv perl_call_sv
944 #define call_pv perl_call_pv
947 #define call_argv perl_call_argv
950 #define call_method perl_call_method
953 #define eval_sv perl_eval_sv
955 #ifndef PERL_LOADMOD_DENY
956 #define PERL_LOADMOD_DENY 0x1
958 #ifndef PERL_LOADMOD_NOIMPORT
959 #define PERL_LOADMOD_NOIMPORT 0x2
961 #ifndef PERL_LOADMOD_IMPORT_OPS
962 #define PERL_LOADMOD_IMPORT_OPS 0x4
969 #if (PERL_BCDVERSION < 0x5006000)
970 #define call_sv(sv, flags) ((flags) & G_METHOD ? perl_call_method((char *) SvPV_nolen_const(sv), \
971 (flags) & ~G_METHOD) : perl_call_sv(sv, flags))
973 #define call_sv(sv, flags) ((flags) & G_METHOD ? Perl_call_method(aTHX_ (char *) SvPV_nolen_const(sv), \
974 (flags) & ~G_METHOD) : Perl_call_sv(aTHX_ sv, flags))
978 #if defined(NEED_eval_pv)
987 #define eval_pv(a,b) DPPP_(my_eval_pv)(aTHX_ a,b)
988 #define Perl_eval_pv DPPP_(my_eval_pv)
989 #if defined(NEED_eval_pv) || defined(NEED_eval_pv_GLOBAL)
994 SV* sv = newSVpv(
p, 0);
1001 if (croak_on_error && SvTRUE(GvSV(errgv)))
1002 croak(SvPVx(GvSV(errgv), na));
1007 #ifndef vload_module
1008 #if defined(NEED_vload_module)
1017 #define vload_module(a,b,c,d) DPPP_(my_vload_module)(aTHX_ a,b,c,d)
1018 #define Perl_vload_module DPPP_(my_vload_module)
1019 #if defined(NEED_vload_module) || defined(NEED_vload_module_GLOBAL)
1026 OP *
const modname = newSVOP(OP_CONST, 0,
name);
1027 SvREADONLY_off(((SVOP*)modname)->op_sv);
1028 modname->op_private |= OPpCONST_BARE;
1030 veop = newSVOP(OP_CONST, 0, ver);
1035 imop = sawparens(newNULLLIST());
1038 imop = va_arg(*args, OP*);
1043 sv = va_arg(*args, SV*);
1045 imop = append_elem(OP_LIST, imop, newSVOP(OP_CONST, 0, sv));
1046 sv = va_arg(*args, SV*);
1053 #if (PERL_BCDVERSION >= 0x5004000)
1055 veop, modname, imop);
1056 #elif (PERL_BCDVERSION > 0x5003000)
1057 utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(),
1058 veop, modname, imop);
1060 utilize(!(flags & PERL_LOADMOD_DENY), start_subparse(),
1071 #if defined(NEED_load_module)
1080 #define load_module DPPP_(my_load_module)
1081 #define Perl_load_module DPPP_(my_load_module)
1082 #if defined(NEED_load_module) || defined(NEED_load_module_GLOBAL)
1087 va_start(args, ver);
1094 #define newRV_inc(sv) newRV(sv)
1097 #if defined(NEED_newRV_noinc)
1106 #define newRV_noinc(a) DPPP_(my_newRV_noinc)(aTHX_ a)
1107 #define Perl_newRV_noinc DPPP_(my_newRV_noinc)
1108 #if defined(NEED_newRV_noinc) || defined(NEED_newRV_noinc_GLOBAL)
1112 SV *rv = (SV *)newRV(sv);
1118 #if (PERL_BCDVERSION < 0x5004063) && (PERL_BCDVERSION != 0x5004005)
1119 #if defined(NEED_newCONSTSUB)
1128 #define newCONSTSUB(a,b,c) DPPP_(my_newCONSTSUB)(aTHX_ a,b,c)
1129 #define Perl_newCONSTSUB DPPP_(my_newCONSTSUB)
1130 #if defined(NEED_newCONSTSUB) || defined(NEED_newCONSTSUB_GLOBAL)
1131 #define D_PPP_PL_copline PL_copline
1136 HV *old_cop_stash =
PL_curcop->cop_stash;
1149 start_subparse(FALSE, 0),
1151 newSVOP(OP_CONST, 0, newSVpv((
char *)
name, 0)),
1153 newSTATEOP(0, Nullch, newSVOP(OP_CONST, 0, sv))
1162 #if defined(MULTIPLICITY) || defined(PERL_OBJECT) || \
1163 defined(PERL_CAPI) || defined(PERL_IMPLICIT_CONTEXT)
1164 #ifndef START_MY_CXT
1165 #define START_MY_CXT
1166 #if (PERL_BCDVERSION < 0x5004068)
1167 #define dMY_CXT_SV \
1168 SV *my_cxt_sv = get_sv(MY_CXT_KEY, FALSE)
1170 #define dMY_CXT_SV \
1171 SV *my_cxt_sv = *hv_fetch(PL_modglobal, MY_CXT_KEY, \
1172 sizeof(MY_CXT_KEY)-1, TRUE)
1176 my_cxt_t *my_cxtp = INT2PTR(my_cxt_t*,SvUV(my_cxt_sv))
1177 #define MY_CXT_INIT \
1180 my_cxt_t *my_cxtp = (my_cxt_t*)SvPVX(newSV(sizeof(my_cxt_t)-1));\
1181 Zero(my_cxtp, 1, my_cxt_t); \
1182 sv_setuv(my_cxt_sv, PTR2UV(my_cxtp))
1183 #define MY_CXT (*my_cxtp)
1184 #define pMY_CXT my_cxt_t *my_cxtp
1185 #define pMY_CXT_ pMY_CXT,
1186 #define _pMY_CXT ,pMY_CXT
1187 #define aMY_CXT my_cxtp
1188 #define aMY_CXT_ aMY_CXT,
1189 #define _aMY_CXT ,aMY_CXT
1191 #ifndef MY_CXT_CLONE
1192 #define MY_CXT_CLONE \
1194 my_cxt_t *my_cxtp = (my_cxt_t*)SvPVX(newSV(sizeof(my_cxt_t)-1));\
1195 Copy(INT2PTR(my_cxt_t*, SvUV(my_cxt_sv)), my_cxtp, 1, my_cxt_t);\
1196 sv_setuv(my_cxt_sv, PTR2UV(my_cxtp))
1199 #ifndef START_MY_CXT
1200 #define START_MY_CXT static my_cxt_t my_cxt;
1201 #define dMY_CXT_SV dNOOP
1202 #define dMY_CXT dNOOP
1203 #define MY_CXT_INIT NOOP
1204 #define MY_CXT my_cxt
1205 #define pMY_CXT void
1212 #ifndef MY_CXT_CLONE
1213 #define MY_CXT_CLONE NOOP
1217 #if IVSIZE == LONGSIZE
1223 #elif IVSIZE == INTSIZE
1230 #error "cannot define IV/UV formats"
1234 #if defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE) && \
1235 defined(PERL_PRIfldbl) && (PERL_BCDVERSION != 0x5006000)
1236 #define NVef PERL_PRIeldbl
1237 #define NVff PERL_PRIfldbl
1238 #define NVgf PERL_PRIgldbl
1245 #ifndef SvREFCNT_inc
1246 #ifdef PERL_USE_GCC_BRACE_GROUPS
1247 #define SvREFCNT_inc(sv) \
1249 SV * const _sv = (SV*)(sv); \
1251 (SvREFCNT(_sv))++; \
1255 #define SvREFCNT_inc(sv) \
1256 ((PL_Sv=(SV*)(sv)) ? (++(SvREFCNT(PL_Sv)),PL_Sv) : NULL)
1259 #ifndef SvREFCNT_inc_simple
1260 #ifdef PERL_USE_GCC_BRACE_GROUPS
1261 #define SvREFCNT_inc_simple(sv) \
1268 #define SvREFCNT_inc_simple(sv) \
1269 ((sv) ? (SvREFCNT(sv)++,(SV*)(sv)) : NULL)
1272 #ifndef SvREFCNT_inc_NN
1273 #ifdef PERL_USE_GCC_BRACE_GROUPS
1274 #define SvREFCNT_inc_NN(sv) \
1276 SV * const _sv = (SV*)(sv); \
1281 #define SvREFCNT_inc_NN(sv) \
1282 (PL_Sv=(SV*)(sv),++(SvREFCNT(PL_Sv)),PL_Sv)
1285 #ifndef SvREFCNT_inc_void
1286 #ifdef PERL_USE_GCC_BRACE_GROUPS
1287 #define SvREFCNT_inc_void(sv) \
1289 SV * const _sv = (SV*)(sv); \
1291 (void)(SvREFCNT(_sv)++); \
1294 #define SvREFCNT_inc_void(sv) \
1295 (void)((PL_Sv=(SV*)(sv)) ? ++(SvREFCNT(PL_Sv)) : 0)
1298 #ifndef SvREFCNT_inc_simple_void
1299 #define SvREFCNT_inc_simple_void(sv) STMT_START { if (sv) SvREFCNT(sv)++; } STMT_END
1301 #ifndef SvREFCNT_inc_simple_NN
1302 #define SvREFCNT_inc_simple_NN(sv) (++SvREFCNT(sv), (SV*)(sv))
1304 #ifndef SvREFCNT_inc_void_NN
1305 #define SvREFCNT_inc_void_NN(sv) (void)(++SvREFCNT((SV*)(sv)))
1307 #ifndef SvREFCNT_inc_simple_void_NN
1308 #define SvREFCNT_inc_simple_void_NN(sv) (void)(++SvREFCNT((SV*)(sv)))
1311 #if defined(NEED_newSV_type)
1320 #define newSV_type(a) DPPP_(my_newSV_type)(aTHX_ a)
1321 #define Perl_newSV_type DPPP_(my_newSV_type)
1322 #if defined(NEED_newSV_type) || defined(NEED_newSV_type_GLOBAL)
1326 SV*
const sv = newSV(0);
1332 #if (PERL_BCDVERSION < 0x5006000)
1333 #define D_PPP_CONSTPV_ARG(x) ((char *) (x))
1335 #define D_PPP_CONSTPV_ARG(x) (x)
1338 #define newSVpvn(data,len) ((data) \
1339 ? ((len) ? newSVpv((data), (len)) : newSVpv("", 0)) \
1342 #ifndef newSVpvn_utf8
1343 #define newSVpvn_utf8(s, len, u) newSVpvn_flags((s), (len), (u) ? SVf_UTF8 : 0)
1348 #ifndef newSVpvn_flags
1349 #if defined(NEED_newSVpvn_flags)
1355 #ifdef newSVpvn_flags
1356 #undef newSVpvn_flags
1358 #define newSVpvn_flags(a,b,c) DPPP_(my_newSVpvn_flags)(aTHX_ a,b,c)
1359 #define Perl_newSVpvn_flags DPPP_(my_newSVpvn_flags)
1360 #if defined(NEED_newSVpvn_flags) || defined(NEED_newSVpvn_flags_GLOBAL)
1366 return (flags & SVs_TEMP) ? sv_2mortal(sv) : sv;
1370 #if !defined(NEED_sv_2pv_flags) && defined(NEED_sv_2pv_nolen)
1371 #define NEED_sv_2pv_flags
1373 #if !defined(NEED_sv_2pv_flags_GLOBAL) && defined(NEED_sv_2pv_nolen_GLOBAL)
1374 #define NEED_sv_2pv_flags_GLOBAL
1376 #ifndef sv_2pv_nolen
1377 #define sv_2pv_nolen(sv) SvPV_nolen(sv)
1380 #if (PERL_BCDVERSION < 0x5007000)
1381 #if defined(NEED_sv_2pvbyte)
1382 static char *
DPPP_(my_sv_2pvbyte)(
pTHX_ SV *sv, STRLEN *lp);
1385 extern char *
DPPP_(my_sv_2pvbyte)(
pTHX_ SV *sv, STRLEN *lp);
1390 #define sv_2pvbyte(a,b) DPPP_(my_sv_2pvbyte)(aTHX_ a,b)
1391 #define Perl_sv_2pvbyte DPPP_(my_sv_2pvbyte)
1392 #if defined(NEED_sv_2pvbyte) || defined(NEED_sv_2pvbyte_GLOBAL)
1394 DPPP_(my_sv_2pvbyte)(
pTHX_ SV *sv, STRLEN *lp)
1396 sv_utf8_downgrade(sv,0);
1397 return SvPV(sv,*lp);
1401 #define SvPVbyte(sv, lp) \
1402 ((SvFLAGS(sv) & (SVf_POK|SVf_UTF8)) == (SVf_POK) \
1403 ? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pvbyte(sv, &lp))
1406 #define SvPVbyte SvPV
1407 #define sv_2pvbyte sv_2pv
1409 #ifndef sv_2pvbyte_nolen
1410 #define sv_2pvbyte_nolen(sv) sv_2pv_nolen(sv)
1412 #ifndef SV_IMMEDIATE_UNREF
1413 #define SV_IMMEDIATE_UNREF 0
1418 #ifndef SV_COW_DROP_PV
1419 #define SV_COW_DROP_PV 0
1421 #ifndef SV_UTF8_NO_ENCODING
1422 #define SV_UTF8_NO_ENCODING 0
1425 #define SV_NOSTEAL 0
1427 #ifndef SV_CONST_RETURN
1428 #define SV_CONST_RETURN 0
1430 #ifndef SV_MUTABLE_RETURN
1431 #define SV_MUTABLE_RETURN 0
1436 #ifndef SV_HAS_TRAILING_NUL
1437 #define SV_HAS_TRAILING_NUL 0
1439 #ifndef SV_COW_SHARED_HASH_KEYS
1440 #define SV_COW_SHARED_HASH_KEYS 0
1442 #if (PERL_BCDVERSION < 0x5007002)
1443 #if defined(NEED_sv_2pv_flags)
1452 #define sv_2pv_flags(a,b,c) DPPP_(my_sv_2pv_flags)(aTHX_ a,b,c)
1453 #define Perl_sv_2pv_flags DPPP_(my_sv_2pv_flags)
1454 #if defined(NEED_sv_2pv_flags) || defined(NEED_sv_2pv_flags_GLOBAL)
1458 STRLEN n_a = (STRLEN) flags;
1459 return sv_2pv(sv, lp ? lp : &n_a);
1462 #if defined(NEED_sv_pvn_force_flags)
1468 #ifdef sv_pvn_force_flags
1469 #undef sv_pvn_force_flags
1471 #define sv_pvn_force_flags(a,b,c) DPPP_(my_sv_pvn_force_flags)(aTHX_ a,b,c)
1472 #define Perl_sv_pvn_force_flags DPPP_(my_sv_pvn_force_flags)
1473 #if defined(NEED_sv_pvn_force_flags) || defined(NEED_sv_pvn_force_flags_GLOBAL)
1477 STRLEN n_a = (STRLEN) flags;
1478 return sv_pvn_force(sv, lp ? lp : &n_a);
1482 #if (PERL_BCDVERSION < 0x5008008) || ( (PERL_BCDVERSION >= 0x5009000) && (PERL_BCDVERSION < 0x5009003) )
1483 #define DPPP_SVPV_NOLEN_LP_ARG &PL_na
1485 #define DPPP_SVPV_NOLEN_LP_ARG 0
1488 #define SvPV_const(sv, lp) SvPV_flags_const(sv, lp, SV_GMAGIC)
1490 #ifndef SvPV_mutable
1491 #define SvPV_mutable(sv, lp) SvPV_flags_mutable(sv, lp, SV_GMAGIC)
1494 #define SvPV_flags(sv, lp, flags) \
1495 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
1496 ? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pv_flags(sv, &lp, flags))
1498 #ifndef SvPV_flags_const
1499 #define SvPV_flags_const(sv, lp, flags) \
1500 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
1501 ? ((lp = SvCUR(sv)), SvPVX_const(sv)) : \
1502 (const char*) sv_2pv_flags(sv, &lp, flags|SV_CONST_RETURN))
1504 #ifndef SvPV_flags_const_nolen
1505 #define SvPV_flags_const_nolen(sv, flags) \
1506 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
1507 ? SvPVX_const(sv) : \
1508 (const char*) sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, flags|SV_CONST_RETURN))
1510 #ifndef SvPV_flags_mutable
1511 #define SvPV_flags_mutable(sv, lp, flags) \
1512 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
1513 ? ((lp = SvCUR(sv)), SvPVX_mutable(sv)) : \
1514 sv_2pv_flags(sv, &lp, flags|SV_MUTABLE_RETURN))
1517 #define SvPV_force(sv, lp) SvPV_force_flags(sv, lp, SV_GMAGIC)
1519 #ifndef SvPV_force_nolen
1520 #define SvPV_force_nolen(sv) SvPV_force_flags_nolen(sv, SV_GMAGIC)
1522 #ifndef SvPV_force_mutable
1523 #define SvPV_force_mutable(sv, lp) SvPV_force_flags_mutable(sv, lp, SV_GMAGIC)
1525 #ifndef SvPV_force_nomg
1526 #define SvPV_force_nomg(sv, lp) SvPV_force_flags(sv, lp, 0)
1528 #ifndef SvPV_force_nomg_nolen
1529 #define SvPV_force_nomg_nolen(sv) SvPV_force_flags_nolen(sv, 0)
1531 #ifndef SvPV_force_flags
1532 #define SvPV_force_flags(sv, lp, flags) \
1533 ((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \
1534 ? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_pvn_force_flags(sv, &lp, flags))
1536 #ifndef SvPV_force_flags_nolen
1537 #define SvPV_force_flags_nolen(sv, flags) \
1538 ((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \
1539 ? SvPVX(sv) : sv_pvn_force_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, flags))
1541 #ifndef SvPV_force_flags_mutable
1542 #define SvPV_force_flags_mutable(sv, lp, flags) \
1543 ((SvFLAGS(sv) & (SVf_POK|SVf_THINKFIRST)) == SVf_POK \
1544 ? ((lp = SvCUR(sv)), SvPVX_mutable(sv)) \
1545 : sv_pvn_force_flags(sv, &lp, flags|SV_MUTABLE_RETURN))
1548 #define SvPV_nolen(sv) \
1549 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
1550 ? SvPVX(sv) : sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, SV_GMAGIC))
1552 #ifndef SvPV_nolen_const
1553 #define SvPV_nolen_const(sv) \
1554 ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
1555 ? SvPVX_const(sv) : sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, SV_GMAGIC|SV_CONST_RETURN))
1558 #define SvPV_nomg(sv, lp) SvPV_flags(sv, lp, 0)
1560 #ifndef SvPV_nomg_const
1561 #define SvPV_nomg_const(sv, lp) SvPV_flags_const(sv, lp, 0)
1563 #ifndef SvPV_nomg_const_nolen
1564 #define SvPV_nomg_const_nolen(sv) SvPV_flags_const_nolen(sv, 0)
1566 #ifndef SvPV_nomg_nolen
1567 #define SvPV_nomg_nolen(sv) ((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
1568 ? SvPVX(sv) : sv_2pv_flags(sv, DPPP_SVPV_NOLEN_LP_ARG, 0))
1571 #define SvPV_renew(sv,n) STMT_START { SvLEN_set(sv, n); \
1572 SvPV_set((sv), (char *) saferealloc( \
1573 (Malloc_t)SvPVX(sv), (MEM_SIZE)((n)))); \
1577 #define SvMAGIC_set(sv, val) \
1578 STMT_START { assert(SvTYPE(sv) >= SVt_PVMG); \
1579 (((XPVMG*) SvANY(sv))->xmg_magic = (val)); } STMT_END
1581 #if (PERL_BCDVERSION < 0x5009003)
1583 #define SvPVX_const(sv) ((const char*) (0 + SvPVX(sv)))
1585 #ifndef SvPVX_mutable
1586 #define SvPVX_mutable(sv) (0 + SvPVX(sv))
1589 #define SvRV_set(sv, val) \
1590 STMT_START { assert(SvTYPE(sv) >= SVt_RV); \
1591 (((XRV*) SvANY(sv))->xrv_rv = (val)); } STMT_END
1595 #define SvPVX_const(sv) ((const char*)((sv)->sv_u.svu_pv))
1597 #ifndef SvPVX_mutable
1598 #define SvPVX_mutable(sv) ((sv)->sv_u.svu_pv)
1601 #define SvRV_set(sv, val) \
1602 STMT_START { assert(SvTYPE(sv) >= SVt_RV); \
1603 ((sv)->sv_u.svu_rv = (val)); } STMT_END
1607 #define SvSTASH_set(sv, val) \
1608 STMT_START { assert(SvTYPE(sv) >= SVt_PVMG); \
1609 (((XPVMG*) SvANY(sv))->xmg_stash = (val)); } STMT_END
1611 #if (PERL_BCDVERSION < 0x5004000)
1613 #define SvUV_set(sv, val) \
1614 STMT_START { assert(SvTYPE(sv) == SVt_IV || SvTYPE(sv) >= SVt_PVIV); \
1615 (((XPVIV*) SvANY(sv))->xiv_iv = (IV) (val)); } STMT_END
1619 #define SvUV_set(sv, val) \
1620 STMT_START { assert(SvTYPE(sv) == SVt_IV || SvTYPE(sv) >= SVt_PVIV); \
1621 (((XPVUV*) SvANY(sv))->xuv_uv = (val)); } STMT_END
1624 #if (PERL_BCDVERSION >= 0x5004000) && !defined(vnewSVpvf)
1625 #if defined(NEED_vnewSVpvf)
1626 static SV *
DPPP_(my_vnewSVpvf)(
pTHX_ const char *pat, va_list *args);
1629 extern SV *
DPPP_(my_vnewSVpvf)(
pTHX_ const char *pat, va_list *args);
1634 #define vnewSVpvf(a,b) DPPP_(my_vnewSVpvf)(aTHX_ a,b)
1635 #define Perl_vnewSVpvf DPPP_(my_vnewSVpvf)
1636 #if defined(NEED_vnewSVpvf) || defined(NEED_vnewSVpvf_GLOBAL)
1638 DPPP_(my_vnewSVpvf)(
pTHX_ const char *pat, va_list *args)
1640 register SV *sv = newSV(0);
1641 sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(
bool*));
1646 #if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vcatpvf)
1647 #define sv_vcatpvf(sv, pat, args) sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
1649 #if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vsetpvf)
1650 #define sv_vsetpvf(sv, pat, args) sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
1652 #if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_catpvf_mg)
1653 #if defined(NEED_sv_catpvf_mg)
1654 static void DPPP_(my_sv_catpvf_mg)(
pTHX_ SV *sv,
const char *pat, ...);
1657 extern void DPPP_(my_sv_catpvf_mg)(
pTHX_ SV *sv,
const char *pat, ...);
1659 #define Perl_sv_catpvf_mg DPPP_(my_sv_catpvf_mg)
1660 #if defined(NEED_sv_catpvf_mg) || defined(NEED_sv_catpvf_mg_GLOBAL)
1662 DPPP_(my_sv_catpvf_mg)(
pTHX_ SV *sv,
const char *pat, ...)
1665 va_start(args, pat);
1666 sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(
bool*));
1672 #ifdef PERL_IMPLICIT_CONTEXT
1673 #if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_catpvf_mg_nocontext)
1674 #if defined(NEED_sv_catpvf_mg_nocontext)
1675 static void DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv,
const char *pat, ...);
1678 extern void DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv,
const char *pat, ...);
1680 #define sv_catpvf_mg_nocontext DPPP_(my_sv_catpvf_mg_nocontext)
1681 #define Perl_sv_catpvf_mg_nocontext DPPP_(my_sv_catpvf_mg_nocontext)
1682 #if defined(NEED_sv_catpvf_mg_nocontext) || defined(NEED_sv_catpvf_mg_nocontext_GLOBAL)
1684 DPPP_(my_sv_catpvf_mg_nocontext)(SV *sv,
const char *pat, ...)
1688 va_start(args, pat);
1689 sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(
bool*));
1696 #ifndef sv_catpvf_mg
1697 #ifdef PERL_IMPLICIT_CONTEXT
1698 #define sv_catpvf_mg Perl_sv_catpvf_mg_nocontext
1700 #define sv_catpvf_mg Perl_sv_catpvf_mg
1703 #if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vcatpvf_mg)
1704 #define sv_vcatpvf_mg(sv, pat, args) \
1706 sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \
1710 #if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_setpvf_mg)
1711 #if defined(NEED_sv_setpvf_mg)
1712 static void DPPP_(my_sv_setpvf_mg)(
pTHX_ SV *sv,
const char *pat, ...);
1715 extern void DPPP_(my_sv_setpvf_mg)(
pTHX_ SV *sv,
const char *pat, ...);
1717 #define Perl_sv_setpvf_mg DPPP_(my_sv_setpvf_mg)
1718 #if defined(NEED_sv_setpvf_mg) || defined(NEED_sv_setpvf_mg_GLOBAL)
1720 DPPP_(my_sv_setpvf_mg)(
pTHX_ SV *sv,
const char *pat, ...)
1723 va_start(args, pat);
1724 sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(
bool*));
1730 #ifdef PERL_IMPLICIT_CONTEXT
1731 #if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_setpvf_mg_nocontext)
1732 #if defined(NEED_sv_setpvf_mg_nocontext)
1733 static void DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv,
const char *pat, ...);
1736 extern void DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv,
const char *pat, ...);
1738 #define sv_setpvf_mg_nocontext DPPP_(my_sv_setpvf_mg_nocontext)
1739 #define Perl_sv_setpvf_mg_nocontext DPPP_(my_sv_setpvf_mg_nocontext)
1740 #if defined(NEED_sv_setpvf_mg_nocontext) || defined(NEED_sv_setpvf_mg_nocontext_GLOBAL)
1742 DPPP_(my_sv_setpvf_mg_nocontext)(SV *sv,
const char *pat, ...)
1746 va_start(args, pat);
1747 sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(
bool*));
1754 #ifndef sv_setpvf_mg
1755 #ifdef PERL_IMPLICIT_CONTEXT
1756 #define sv_setpvf_mg Perl_sv_setpvf_mg_nocontext
1758 #define sv_setpvf_mg Perl_sv_setpvf_mg
1761 #if (PERL_BCDVERSION >= 0x5004000) && !defined(sv_vsetpvf_mg)
1762 #define sv_vsetpvf_mg(sv, pat, args) \
1764 sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \
1768 #ifndef newSVpvn_share
1769 #if defined(NEED_newSVpvn_share)
1775 #ifdef newSVpvn_share
1776 #undef newSVpvn_share
1778 #define newSVpvn_share(a,b,c) DPPP_(my_newSVpvn_share)(aTHX_ a,b,c)
1779 #define Perl_newSVpvn_share DPPP_(my_newSVpvn_share)
1780 #if defined(NEED_newSVpvn_share) || defined(NEED_newSVpvn_share_GLOBAL)
1790 sv_upgrade(sv, SVt_PVIV);
1798 #ifndef SvSHARED_HASH
1799 #define SvSHARED_HASH(sv) (0 + SvUVX(sv))
1802 #define HvNAME_get(hv) HvNAME(hv)
1804 #ifndef HvNAMELEN_get
1805 #define HvNAMELEN_get(hv) (HvNAME_get(hv) ? (I32)strlen(HvNAME_get(hv)) : 0)
1808 #define GvSVn(gv) GvSV(gv)
1810 #ifndef isGV_with_GP
1811 #define isGV_with_GP(gv) isGV(gv)
1813 #ifndef gv_fetchpvn_flags
1814 #define gv_fetchpvn_flags(name, len, flags, svt) gv_fetchpv(name, flags, svt)
1817 #define gv_fetchsv(name, flags, svt) gv_fetchpv(SvPV_nolen_const(name), flags, svt)
1819 #ifndef get_cvn_flags
1820 #define get_cvn_flags(name, namelen, flags) get_cv(name, flags)
1825 #ifndef WARN_CLOSURE
1826 #define WARN_CLOSURE 1
1828 #ifndef WARN_DEPRECATED
1829 #define WARN_DEPRECATED 2
1831 #ifndef WARN_EXITING
1832 #define WARN_EXITING 3
1841 #define WARN_CLOSED 6
1847 #define WARN_LAYER 8
1849 #ifndef WARN_NEWLINE
1850 #define WARN_NEWLINE 9
1853 #define WARN_PIPE 10
1855 #ifndef WARN_UNOPENED
1856 #define WARN_UNOPENED 11
1859 #define WARN_MISC 12
1861 #ifndef WARN_NUMERIC
1862 #define WARN_NUMERIC 13
1865 #define WARN_ONCE 14
1867 #ifndef WARN_OVERFLOW
1868 #define WARN_OVERFLOW 15
1871 #define WARN_PACK 16
1873 #ifndef WARN_PORTABLE
1874 #define WARN_PORTABLE 17
1876 #ifndef WARN_RECURSION
1877 #define WARN_RECURSION 18
1879 #ifndef WARN_REDEFINE
1880 #define WARN_REDEFINE 19
1883 #define WARN_REGEXP 20
1886 #define WARN_SEVERE 21
1888 #ifndef WARN_DEBUGGING
1889 #define WARN_DEBUGGING 22
1891 #ifndef WARN_INPLACE
1892 #define WARN_INPLACE 23
1894 #ifndef WARN_INTERNAL
1895 #define WARN_INTERNAL 24
1898 #define WARN_MALLOC 25
1901 #define WARN_SIGNAL 26
1904 #define WARN_SUBSTR 27
1907 #define WARN_SYNTAX 28
1909 #ifndef WARN_AMBIGUOUS
1910 #define WARN_AMBIGUOUS 29
1912 #ifndef WARN_BAREWORD
1913 #define WARN_BAREWORD 30
1916 #define WARN_DIGIT 31
1918 #ifndef WARN_PARENTHESIS
1919 #define WARN_PARENTHESIS 32
1921 #ifndef WARN_PRECEDENCE
1922 #define WARN_PRECEDENCE 33
1925 #define WARN_PRINTF 34
1927 #ifndef WARN_PROTOTYPE
1928 #define WARN_PROTOTYPE 35
1933 #ifndef WARN_RESERVED
1934 #define WARN_RESERVED 37
1936 #ifndef WARN_SEMICOLON
1937 #define WARN_SEMICOLON 38
1940 #define WARN_TAINT 39
1942 #ifndef WARN_THREADS
1943 #define WARN_THREADS 40
1945 #ifndef WARN_UNINITIALIZED
1946 #define WARN_UNINITIALIZED 41
1949 #define WARN_UNPACK 42
1952 #define WARN_UNTIE 43
1955 #define WARN_UTF8 44
1958 #define WARN_VOID 45
1960 #ifndef WARN_ASSERTIONS
1961 #define WARN_ASSERTIONS 46
1964 #define packWARN(a) (a)
1968 #define ckWARN(a) (PL_dowarn & G_WARN_ON)
1970 #define ckWARN(a) PL_dowarn
1973 #if (PERL_BCDVERSION >= 0x5004000) && !defined(warner)
1974 #if defined(NEED_warner)
1975 static void DPPP_(my_warner)(U32 err,
const char *pat, ...);
1978 extern void DPPP_(my_warner)(U32 err,
const char *pat, ...);
1980 #define Perl_warner DPPP_(my_warner)
1981 #if defined(NEED_warner) || defined(NEED_warner_GLOBAL)
1983 DPPP_(my_warner)(U32 err,
const char *pat, ...)
1988 va_start(args, pat);
1989 sv = vnewSVpvf(pat, &args);
1994 #define warner Perl_warner
1995 #define Perl_warner_nocontext Perl_warner
1998 #ifndef STR_WITH_LEN
1999 #define STR_WITH_LEN(s) (s ""), (sizeof(s)-1)
2002 #define newSVpvs(str) newSVpvn(str "", sizeof(str) - 1)
2004 #ifndef newSVpvs_flags
2005 #define newSVpvs_flags(str, flags) newSVpvn_flags(str "", sizeof(str) - 1, flags)
2007 #ifndef newSVpvs_share
2008 #define newSVpvs_share(str) newSVpvn_share(str "", sizeof(str) - 1, 0)
2011 #define sv_catpvs(sv, str) sv_catpvn(sv, str "", sizeof(str) - 1)
2014 #define sv_setpvs(sv, str) sv_setpvn(sv, str "", sizeof(str) - 1)
2017 #define hv_fetchs(hv, key, lval) hv_fetch(hv, key "", sizeof(key) - 1, lval)
2020 #define hv_stores(hv, key, val) hv_store(hv, key "", sizeof(key) - 1, val, 0)
2023 #define gv_fetchpvs(name, flags, svt) gv_fetchpvn_flags(name "", sizeof(name) - 1, flags, svt)
2026 #define gv_stashpvs(name, flags) gv_stashpvn(name "", sizeof(name) - 1, flags)
2029 #define get_cvs(name, flags) get_cvn_flags(name "", sizeof(name)-1, flags)
2032 #define SvGETMAGIC(x) STMT_START { if (SvGMAGICAL(x)) mg_get(x); } STMT_END
2035 #define HEf_SVKEY -2
2037 #if defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN)
2038 #define MUTABLE_PTR(p) ({ void *_p = (p); _p; })
2040 #define MUTABLE_PTR(p) ((void *) (p))
2042 #define MUTABLE_SV(p) ((SV *)MUTABLE_PTR(p))
2043 #ifndef PERL_MAGIC_sv
2044 #define PERL_MAGIC_sv '\0'
2046 #ifndef PERL_MAGIC_overload
2047 #define PERL_MAGIC_overload 'A'
2049 #ifndef PERL_MAGIC_overload_elem
2050 #define PERL_MAGIC_overload_elem 'a'
2052 #ifndef PERL_MAGIC_overload_table
2053 #define PERL_MAGIC_overload_table 'c'
2055 #ifndef PERL_MAGIC_bm
2056 #define PERL_MAGIC_bm 'B'
2058 #ifndef PERL_MAGIC_regdata
2059 #define PERL_MAGIC_regdata 'D'
2061 #ifndef PERL_MAGIC_regdatum
2062 #define PERL_MAGIC_regdatum 'd'
2064 #ifndef PERL_MAGIC_env
2065 #define PERL_MAGIC_env 'E'
2067 #ifndef PERL_MAGIC_envelem
2068 #define PERL_MAGIC_envelem 'e'
2070 #ifndef PERL_MAGIC_fm
2071 #define PERL_MAGIC_fm 'f'
2073 #ifndef PERL_MAGIC_regex_global
2074 #define PERL_MAGIC_regex_global 'g'
2076 #ifndef PERL_MAGIC_isa
2077 #define PERL_MAGIC_isa 'I'
2079 #ifndef PERL_MAGIC_isaelem
2080 #define PERL_MAGIC_isaelem 'i'
2082 #ifndef PERL_MAGIC_nkeys
2083 #define PERL_MAGIC_nkeys 'k'
2085 #ifndef PERL_MAGIC_dbfile
2086 #define PERL_MAGIC_dbfile 'L'
2088 #ifndef PERL_MAGIC_dbline
2089 #define PERL_MAGIC_dbline 'l'
2091 #ifndef PERL_MAGIC_mutex
2092 #define PERL_MAGIC_mutex 'm'
2094 #ifndef PERL_MAGIC_shared
2095 #define PERL_MAGIC_shared 'N'
2097 #ifndef PERL_MAGIC_shared_scalar
2098 #define PERL_MAGIC_shared_scalar 'n'
2100 #ifndef PERL_MAGIC_collxfrm
2101 #define PERL_MAGIC_collxfrm 'o'
2103 #ifndef PERL_MAGIC_tied
2104 #define PERL_MAGIC_tied 'P'
2106 #ifndef PERL_MAGIC_tiedelem
2107 #define PERL_MAGIC_tiedelem 'p'
2109 #ifndef PERL_MAGIC_tiedscalar
2110 #define PERL_MAGIC_tiedscalar 'q'
2112 #ifndef PERL_MAGIC_qr
2113 #define PERL_MAGIC_qr 'r'
2115 #ifndef PERL_MAGIC_sig
2116 #define PERL_MAGIC_sig 'S'
2118 #ifndef PERL_MAGIC_sigelem
2119 #define PERL_MAGIC_sigelem 's'
2121 #ifndef PERL_MAGIC_taint
2122 #define PERL_MAGIC_taint 't'
2124 #ifndef PERL_MAGIC_uvar
2125 #define PERL_MAGIC_uvar 'U'
2127 #ifndef PERL_MAGIC_uvar_elem
2128 #define PERL_MAGIC_uvar_elem 'u'
2130 #ifndef PERL_MAGIC_vstring
2131 #define PERL_MAGIC_vstring 'V'
2133 #ifndef PERL_MAGIC_vec
2134 #define PERL_MAGIC_vec 'v'
2136 #ifndef PERL_MAGIC_utf8
2137 #define PERL_MAGIC_utf8 'w'
2139 #ifndef PERL_MAGIC_substr
2140 #define PERL_MAGIC_substr 'x'
2142 #ifndef PERL_MAGIC_defelem
2143 #define PERL_MAGIC_defelem 'y'
2145 #ifndef PERL_MAGIC_glob
2146 #define PERL_MAGIC_glob '*'
2148 #ifndef PERL_MAGIC_arylen
2149 #define PERL_MAGIC_arylen '#'
2151 #ifndef PERL_MAGIC_pos
2152 #define PERL_MAGIC_pos '.'
2154 #ifndef PERL_MAGIC_backref
2155 #define PERL_MAGIC_backref '<'
2157 #ifndef PERL_MAGIC_ext
2158 #define PERL_MAGIC_ext '~'
2160 #ifndef sv_catpvn_nomg
2161 #define sv_catpvn_nomg sv_catpvn
2163 #ifndef sv_catsv_nomg
2164 #define sv_catsv_nomg sv_catsv
2166 #ifndef sv_setsv_nomg
2167 #define sv_setsv_nomg sv_setsv
2170 #define sv_pvn_nomg sv_pvn
2173 #define SvIV_nomg SvIV
2176 #define SvUV_nomg SvUV
2179 #define sv_catpv_mg(sv, ptr) \
2182 sv_catpv(TeMpSv,ptr); \
2183 SvSETMAGIC(TeMpSv); \
2186 #ifndef sv_catpvn_mg
2187 #define sv_catpvn_mg(sv, ptr, len) \
2190 sv_catpvn(TeMpSv,ptr,len); \
2191 SvSETMAGIC(TeMpSv); \
2195 #define sv_catsv_mg(dsv, ssv) \
2198 sv_catsv(TeMpSv,ssv); \
2199 SvSETMAGIC(TeMpSv); \
2203 #define sv_setiv_mg(sv, i) \
2206 sv_setiv(TeMpSv,i); \
2207 SvSETMAGIC(TeMpSv); \
2211 #define sv_setnv_mg(sv, num) \
2214 sv_setnv(TeMpSv,num); \
2215 SvSETMAGIC(TeMpSv); \
2219 #define sv_setpv_mg(sv, ptr) \
2222 sv_setpv(TeMpSv,ptr); \
2223 SvSETMAGIC(TeMpSv); \
2226 #ifndef sv_setpvn_mg
2227 #define sv_setpvn_mg(sv, ptr, len) \
2230 sv_setpvn(TeMpSv,ptr,len); \
2231 SvSETMAGIC(TeMpSv); \
2235 #define sv_setsv_mg(dsv, ssv) \
2238 sv_setsv(TeMpSv,ssv); \
2239 SvSETMAGIC(TeMpSv); \
2243 #define sv_setuv_mg(sv, i) \
2246 sv_setuv(TeMpSv,i); \
2247 SvSETMAGIC(TeMpSv); \
2250 #ifndef sv_usepvn_mg
2251 #define sv_usepvn_mg(sv, ptr, len) \
2254 sv_usepvn(TeMpSv,ptr,len); \
2255 SvSETMAGIC(TeMpSv); \
2258 #ifndef SvVSTRING_mg
2259 #define SvVSTRING_mg(sv) (SvMAGICAL(sv) ? mg_find(sv, PERL_MAGIC_vstring) : NULL)
2261 #if (PERL_BCDVERSION < 0x5004000)
2262 #elif (PERL_BCDVERSION < 0x5008000)
2263 #define sv_magic_portable(sv, obj, how, name, namlen) \
2265 SV *SvMp_sv = (sv); \
2266 char *SvMp_name = (char *) (name); \
2267 I32 SvMp_namlen = (namlen); \
2268 if (SvMp_name && SvMp_namlen == 0) \
2271 sv_magic(SvMp_sv, obj, how, 0, 0); \
2272 mg = SvMAGIC(SvMp_sv); \
2274 mg->mg_ptr = SvMp_name; \
2278 sv_magic(SvMp_sv, obj, how, SvMp_name, SvMp_namlen); \
2282 #define sv_magic_portable(a, b, c, d, e) sv_magic(a, b, c, d, e)
2284 #if !defined(mg_findext)
2285 #if defined(NEED_mg_findext)
2291 #define mg_findext DPPP_(my_mg_findext)
2292 #define Perl_mg_findext DPPP_(my_mg_findext)
2293 #if defined(NEED_mg_findext) || defined(NEED_mg_findext_GLOBAL)
2298 #ifdef AvPAD_NAMELIST
2299 assert(!(SvTYPE(sv) == SVt_PVAV && AvPAD_NAMELIST(sv)));
2301 for (mg = SvMAGIC (sv); mg; mg = mg->mg_moremagic) {
2302 if (mg->mg_type == type && mg->mg_virtual == vtbl)
2310 #if !defined(sv_unmagicext)
2311 #if defined(NEED_sv_unmagicext)
2317 #ifdef sv_unmagicext
2318 #undef sv_unmagicext
2320 #define sv_unmagicext(a,b,c) DPPP_(my_sv_unmagicext)(aTHX_ a,b,c)
2321 #define Perl_sv_unmagicext DPPP_(my_sv_unmagicext)
2322 #if defined(NEED_sv_unmagicext) || defined(NEED_sv_unmagicext_GLOBAL)
2328 if (SvTYPE(sv) < SVt_PVMG || !SvMAGIC(sv))
2330 mgp = &(SvMAGIC(sv));
2331 for (mg = *mgp; mg; mg = *mgp) {
2332 const MGVTBL*
const virt = mg->mg_virtual;
2333 if (mg->mg_type == type && virt == vtbl) {
2334 *mgp = mg->mg_moremagic;
2335 if (virt && virt->svt_free)
2336 virt->svt_free(
aTHX_ sv, mg);
2339 Safefree(mg->mg_ptr);
2343 Safefree(mg->mg_ptr);
2345 if (mg->mg_flags & MGf_REFCOUNTED)
2346 SvREFCNT_dec(mg->mg_obj);
2350 mgp = &mg->mg_moremagic;
2358 SvFLAGS(sv) |= (SvFLAGS(sv) & (SVp_IOK|SVp_NOK|SVp_POK)) >> PRIVSHIFT;
2366 #define CopFILE(c) ((c)->cop_file)
2369 #define CopFILEGV(c) (CopFILE(c) ? gv_fetchfile(CopFILE(c)) : Nullgv)
2372 #define CopFILE_set(c,pv) ((c)->cop_file = savepv(pv))
2375 #define CopFILESV(c) (CopFILE(c) ? GvSV(gv_fetchfile(CopFILE(c))) : Nullsv)
2378 #define CopFILEAV(c) (CopFILE(c) ? GvAV(gv_fetchfile(CopFILE(c))) : Nullav)
2381 #define CopSTASHPV(c) ((c)->cop_stashpv)
2383 #ifndef CopSTASHPV_set
2384 #define CopSTASHPV_set(c,pv) ((c)->cop_stashpv = ((pv) ? savepv(pv) : Nullch))
2387 #define CopSTASH(c) (CopSTASHPV(c) ? gv_stashpv(CopSTASHPV(c),GV_ADD) : Nullhv)
2389 #ifndef CopSTASH_set
2390 #define CopSTASH_set(c,hv) CopSTASHPV_set(c, (hv) ? HvNAME(hv) : Nullch)
2393 #define CopSTASH_eq(c,hv) ((hv) && (CopSTASHPV(c) == HvNAME(hv) \
2394 || (CopSTASHPV(c) && HvNAME(hv) \
2395 && strEQ(CopSTASHPV(c), HvNAME(hv)))))
2399 #define CopFILEGV(c) ((c)->cop_filegv)
2401 #ifndef CopFILEGV_set
2402 #define CopFILEGV_set(c,gv) ((c)->cop_filegv = (GV*)SvREFCNT_inc(gv))
2405 #define CopFILE_set(c,pv) CopFILEGV_set((c), gv_fetchfile(pv))
2408 #define CopFILESV(c) (CopFILEGV(c) ? GvSV(CopFILEGV(c)) : Nullsv)
2411 #define CopFILEAV(c) (CopFILEGV(c) ? GvAV(CopFILEGV(c)) : Nullav)
2414 #define CopFILE(c) (CopFILESV(c) ? SvPVX(CopFILESV(c)) : Nullch)
2417 #define CopSTASH(c) ((c)->cop_stash)
2419 #ifndef CopSTASH_set
2420 #define CopSTASH_set(c,hv) ((c)->cop_stash = (hv))
2423 #define CopSTASHPV(c) (CopSTASH(c) ? HvNAME(CopSTASH(c)) : Nullch)
2425 #ifndef CopSTASHPV_set
2426 #define CopSTASHPV_set(c,pv) CopSTASH_set((c), gv_stashpv(pv,GV_ADD))
2429 #define CopSTASH_eq(c,hv) (CopSTASH(c) == (hv))
2432 #if (PERL_BCDVERSION >= 0x5006000)
2434 #if defined(NEED_caller_cx) || defined(NEED_caller_cx_GLOBAL)
2436 DPPP_dopoptosub_at(
const PERL_CONTEXT *cxstk, I32 startingblock)
2439 for (i = startingblock; i >= 0; i--) {
2440 register const PERL_CONTEXT *
const cx = &cxstk[
i];
2441 switch (CxTYPE(cx)) {
2453 #if defined(NEED_caller_cx)
2454 static const PERL_CONTEXT *
DPPP_(my_caller_cx)(
pTHX_ I32 count,
const PERL_CONTEXT **dbcxp);
2457 extern const PERL_CONTEXT *
DPPP_(my_caller_cx)(
pTHX_ I32 count,
const PERL_CONTEXT **dbcxp);
2462 #define caller_cx(a,b) DPPP_(my_caller_cx)(aTHX_ a,b)
2463 #define Perl_caller_cx DPPP_(my_caller_cx)
2464 #if defined(NEED_caller_cx) || defined(NEED_caller_cx_GLOBAL)
2465 const PERL_CONTEXT *
2466 DPPP_(my_caller_cx)(
pTHX_ I32 count,
const PERL_CONTEXT **dbcxp)
2468 register I32 cxix = DPPP_dopoptosub_at(cxstack, cxstack_ix);
2469 register const PERL_CONTEXT *cx;
2470 register const PERL_CONTEXT *ccstack = cxstack;
2471 const PERL_SI *top_si = PL_curstackinfo;
2473 while (cxix < 0 && top_si->si_type != PERLSI_MAIN) {
2474 top_si = top_si->si_prev;
2475 ccstack = top_si->si_cxstack;
2476 cxix = DPPP_dopoptosub_at(ccstack, top_si->si_cxix);
2481 ccstack[cxix].blk_sub.cv == GvCV(
PL_DBsub))
2485 cxix = DPPP_dopoptosub_at(ccstack, cxix - 1);
2487 cx = &ccstack[cxix];
2488 if (dbcxp) *dbcxp = cx;
2489 if (CxTYPE(cx) == CXt_SUB || CxTYPE(cx) == CXt_FORMAT) {
2490 const I32 dbcxix = DPPP_dopoptosub_at(ccstack, cxix - 1);
2492 cx = &ccstack[dbcxix];
2499 #ifndef IN_PERL_COMPILETIME
2500 #define IN_PERL_COMPILETIME (PL_curcop == &PL_compiling)
2502 #ifndef IN_LOCALE_RUNTIME
2503 #define IN_LOCALE_RUNTIME (PL_curcop->op_private & HINT_LOCALE)
2505 #ifndef IN_LOCALE_COMPILETIME
2506 #define IN_LOCALE_COMPILETIME (PL_hints & HINT_LOCALE)
2509 #define IN_LOCALE (IN_PERL_COMPILETIME ? IN_LOCALE_COMPILETIME : IN_LOCALE_RUNTIME)
2511 #ifndef IS_NUMBER_IN_UV
2512 #define IS_NUMBER_IN_UV 0x01
2514 #ifndef IS_NUMBER_GREATER_THAN_UV_MAX
2515 #define IS_NUMBER_GREATER_THAN_UV_MAX 0x02
2517 #ifndef IS_NUMBER_NOT_INT
2518 #define IS_NUMBER_NOT_INT 0x04
2520 #ifndef IS_NUMBER_NEG
2521 #define IS_NUMBER_NEG 0x08
2523 #ifndef IS_NUMBER_INFINITY
2524 #define IS_NUMBER_INFINITY 0x10
2526 #ifndef IS_NUMBER_NAN
2527 #define IS_NUMBER_NAN 0x20
2529 #ifndef GROK_NUMERIC_RADIX
2530 #define GROK_NUMERIC_RADIX(sp, send) grok_numeric_radix(sp, send)
2532 #ifndef PERL_SCAN_GREATER_THAN_UV_MAX
2533 #define PERL_SCAN_GREATER_THAN_UV_MAX 0x02
2535 #ifndef PERL_SCAN_SILENT_ILLDIGIT
2536 #define PERL_SCAN_SILENT_ILLDIGIT 0x04
2538 #ifndef PERL_SCAN_ALLOW_UNDERSCORES
2539 #define PERL_SCAN_ALLOW_UNDERSCORES 0x01
2541 #ifndef PERL_SCAN_DISALLOW_PREFIX
2542 #define PERL_SCAN_DISALLOW_PREFIX 0x02
2544 #ifndef grok_numeric_radix
2545 #if defined(NEED_grok_numeric_radix)
2551 #ifdef grok_numeric_radix
2552 #undef grok_numeric_radix
2554 #define grok_numeric_radix(a,b) DPPP_(my_grok_numeric_radix)(aTHX_ a,b)
2555 #define Perl_grok_numeric_radix DPPP_(my_grok_numeric_radix)
2556 #if defined(NEED_grok_numeric_radix) || defined(NEED_grok_numeric_radix_GLOBAL)
2560 #ifdef USE_LOCALE_NUMERIC
2561 #ifdef PL_numeric_radix_sv
2564 char* radix = SvPV(PL_numeric_radix_sv, len);
2565 if (*sp + len <= send &&
memEQ(*sp, radix, len)) {
2573 struct lconv *lc = localeconv();
2574 char *radix = lc->decimal_point;
2576 STRLEN len = strlen(radix);
2577 if (*sp + len <= send &&
memEQ(*sp, radix, len)) {
2584 if (*sp < send && **sp ==
'.') {
2593 #if defined(NEED_grok_number)
2602 #define grok_number(a,b,c) DPPP_(my_grok_number)(aTHX_ a,b,c)
2603 #define Perl_grok_number DPPP_(my_grok_number)
2604 #if defined(NEED_grok_number) || defined(NEED_grok_number_GLOBAL)
2609 const char *send = pv + len;
2610 const UV max_div_10 =
UV_MAX / 10;
2611 const char max_mod_10 =
UV_MAX % 10;
2615 while (s < send && isSPACE(*s))
2619 }
else if (*s ==
'-') {
2628 UV value = *s -
'0';
2630 int digit = *s -
'0';
2631 if (digit >= 0 && digit <= 9) {
2632 value = value * 10 + digit;
2635 if (digit >= 0 && digit <= 9) {
2636 value = value * 10 + digit;
2639 if (digit >= 0 && digit <= 9) {
2640 value = value * 10 + digit;
2643 if (digit >= 0 && digit <= 9) {
2644 value = value * 10 + digit;
2647 if (digit >= 0 && digit <= 9) {
2648 value = value * 10 + digit;
2651 if (digit >= 0 && digit <= 9) {
2652 value = value * 10 + digit;
2655 if (digit >= 0 && digit <= 9) {
2656 value = value * 10 + digit;
2659 if (digit >= 0 && digit <= 9) {
2660 value = value * 10 + digit;
2663 while (digit >= 0 && digit <= 9
2664 && (value < max_div_10
2665 || (value == max_div_10
2666 && digit <= max_mod_10))) {
2667 value = value * 10 + digit;
2673 if (digit >= 0 && digit <= 9
2677 }
while (s < send && isDIGIT(*s));
2705 while (s < send && isDIGIT(*s))
2711 if (s < send && isDIGIT(*s)) {
2714 }
while (s < send && isDIGIT(*s));
2721 }
else if (*s ==
'I' || *s ==
'i') {
2722 s++;
if (s == send || (*s !=
'N' && *s !=
'n'))
return 0;
2723 s++;
if (s == send || (*s !=
'F' && *s !=
'f'))
return 0;
2724 s++;
if (s < send && (*s ==
'I' || *s ==
'i')) {
2725 s++;
if (s == send || (*s !=
'N' && *s !=
'n'))
return 0;
2726 s++;
if (s == send || (*s !=
'I' && *s !=
'i'))
return 0;
2727 s++;
if (s == send || (*s !=
'T' && *s !=
't'))
return 0;
2728 s++;
if (s == send || (*s !=
'Y' && *s !=
'y'))
return 0;
2732 }
else if (*s ==
'N' || *s ==
'n') {
2733 s++;
if (s == send || (*s !=
'A' && *s !=
'a'))
return 0;
2734 s++;
if (s == send || (*s !=
'N' && *s !=
'n'))
return 0;
2742 }
else if (sawnan) {
2745 }
else if (s < send) {
2746 if (*s ==
'e' || *s ==
'E') {
2750 if (s < send && (*s ==
'-' || *s ==
'+'))
2752 if (s < send && isDIGIT(*s)) {
2755 }
while (s < send && isDIGIT(*s));
2761 while (s < send && isSPACE(*s))
2765 if (len == 10 &&
memEQ(pv,
"0 but true", 10)) {
2775 #if defined(NEED_grok_bin)
2784 #define grok_bin(a,b,c,d) DPPP_(my_grok_bin)(aTHX_ a,b,c,d)
2785 #define Perl_grok_bin DPPP_(my_grok_bin)
2786 #if defined(NEED_grok_bin) || defined(NEED_grok_bin_GLOBAL)
2790 const char *
s = start;
2791 STRLEN len = *len_p;
2794 const UV max_div_2 =
UV_MAX / 2;
2796 bool overflowed = FALSE;
2803 else if (len >= 2 && s[0] ==
'0' && s[1] ==
'b') {
2809 for (; len-- && *
s; s++) {
2811 if (bit ==
'0' || bit ==
'1') {
2814 if (value <= max_div_2) {
2815 value = (value << 1) | (bit -
'0');
2818 warn(
"Integer overflow in binary number");
2820 value_nv = (
NV) value;
2823 value_nv += (
NV)(bit -
'0');
2826 if (bit ==
'_' && len && allow_underscores && (bit = s[1])
2827 && (bit ==
'0' || bit ==
'1'))
2834 warn(
"Illegal binary digit '%c' ignored", *s);
2837 if ( ( overflowed && value_nv > 4294967295.0)
2839 || (!overflowed && value > 0xffffffff )
2842 warn(
"Binary number > 0b11111111111111111111111111111111 non-portable");
2857 #if defined(NEED_grok_hex)
2866 #define grok_hex(a,b,c,d) DPPP_(my_grok_hex)(aTHX_ a,b,c,d)
2867 #define Perl_grok_hex DPPP_(my_grok_hex)
2868 #if defined(NEED_grok_hex) || defined(NEED_grok_hex_GLOBAL)
2872 const char *
s = start;
2873 STRLEN len = *len_p;
2876 const UV max_div_16 =
UV_MAX / 16;
2878 bool overflowed = FALSE;
2886 else if (len >= 2 && s[0] ==
'0' && s[1] ==
'x') {
2892 for (; len-- && *
s; s++) {
2897 if (value <= max_div_16) {
2898 value = (value << 4) | ((xdigit -
PL_hexdigit) & 15);
2901 warn(
"Integer overflow in hexadecimal number");
2903 value_nv = (
NV) value;
2909 if (*s ==
'_' && len && allow_underscores && s[1]
2917 warn(
"Illegal hexadecimal digit '%c' ignored", *s);
2920 if ( ( overflowed && value_nv > 4294967295.0)
2922 || (!overflowed && value > 0xffffffff )
2925 warn(
"Hexadecimal number > 0xffffffff non-portable");
2940 #if defined(NEED_grok_oct)
2949 #define grok_oct(a,b,c,d) DPPP_(my_grok_oct)(aTHX_ a,b,c,d)
2950 #define Perl_grok_oct DPPP_(my_grok_oct)
2951 #if defined(NEED_grok_oct) || defined(NEED_grok_oct_GLOBAL)
2955 const char *
s = start;
2956 STRLEN len = *len_p;
2959 const UV max_div_8 =
UV_MAX / 8;
2961 bool overflowed = FALSE;
2962 for (; len-- && *
s; s++) {
2963 int digit = *s -
'0';
2964 if (digit >= 0 && digit <= 7) {
2967 if (value <= max_div_8) {
2968 value = (value << 3) | digit;
2971 warn(
"Integer overflow in octal number");
2973 value_nv = (
NV) value;
2976 value_nv += (
NV)digit;
2979 if (digit == (
'_' -
'0') && len && allow_underscores
2980 && (digit = s[1] -
'0') && (digit >= 0 && digit <= 7))
2986 if (digit == 8 || digit == 9) {
2988 warn(
"Illegal octal digit '%c' ignored", *s);
2992 if ( ( overflowed && value_nv > 4294967295.0)
2994 || (!overflowed && value > 0xffffffff )
2997 warn(
"Octal number > 037777777777 non-portable");
3011 #if !defined(my_snprintf)
3012 #if defined(NEED_my_snprintf)
3013 static int DPPP_(
my_my_snprintf)(
char * buffer,
const Size_t len,
const char * format, ...);
3016 extern int DPPP_(
my_my_snprintf)(
char * buffer,
const Size_t len,
const char * format, ...);
3018 #define my_snprintf DPPP_(my_my_snprintf)
3019 #define Perl_my_snprintf DPPP_(my_my_snprintf)
3020 #if defined(NEED_my_snprintf) || defined(NEED_my_snprintf_GLOBAL)
3027 va_start(ap, format);
3028 #ifdef HAS_VSNPRINTF
3029 retval = vsnprintf(buffer, len, format, ap);
3031 retval =
vsprintf(buffer, format, ap);
3034 if (retval < 0 || (len > 0 && (Size_t)retval >= len))
3035 Perl_croak(
aTHX_ "panic: my_snprintf buffer overflow");
3040 #if !defined(my_sprintf)
3041 #if defined(NEED_my_sprintf)
3047 #define my_sprintf DPPP_(my_my_sprintf)
3048 #define Perl_my_sprintf DPPP_(my_my_sprintf)
3049 #if defined(NEED_my_sprintf) || defined(NEED_my_sprintf_GLOBAL)
3054 va_start(args, pat);
3057 return strlen(buffer);
3063 #define dXCPT dJMPENV; int rEtV = 0
3064 #define XCPT_TRY_START JMPENV_PUSH(rEtV); if (rEtV == 0)
3065 #define XCPT_TRY_END JMPENV_POP;
3066 #define XCPT_CATCH if (rEtV != 0)
3067 #define XCPT_RETHROW JMPENV_JUMP(rEtV)
3069 #define dXCPT Sigjmp_buf oldTOP; int rEtV = 0
3070 #define XCPT_TRY_START Copy(top_env, oldTOP, 1, Sigjmp_buf); rEtV = Sigsetjmp(top_env, 1); if (rEtV == 0)
3071 #define XCPT_TRY_END Copy(oldTOP, top_env, 1, Sigjmp_buf);
3072 #define XCPT_CATCH if (rEtV != 0)
3073 #define XCPT_RETHROW Siglongjmp(top_env, rEtV)
3076 #if !defined(my_strlcat)
3077 #if defined(NEED_my_strlcat)
3083 #define my_strlcat DPPP_(my_my_strlcat)
3084 #define Perl_my_strlcat DPPP_(my_my_strlcat)
3085 #if defined(NEED_my_strlcat) || defined(NEED_my_strlcat_GLOBAL)
3089 Size_t used, length,
copy;
3091 length = strlen(src);
3092 if (size > 0 && used < size - 1) {
3093 copy = (length >= size - used) ? size - used - 1 : length;
3094 memcpy(dst + used, src, copy);
3095 dst[used +
copy] =
'\0';
3097 return used + length;
3101 #if !defined(my_strlcpy)
3102 #if defined(NEED_my_strlcpy)
3108 #define my_strlcpy DPPP_(my_my_strlcpy)
3109 #define Perl_my_strlcpy DPPP_(my_my_strlcpy)
3110 #if defined(NEED_my_strlcpy) || defined(NEED_my_strlcpy_GLOBAL)
3114 Size_t length,
copy;
3115 length = strlen(src);
3117 copy = (length >= size) ? size - 1 : length;
3118 memcpy(dst, src, copy);
3125 #ifndef PERL_PV_ESCAPE_QUOTE
3126 #define PERL_PV_ESCAPE_QUOTE 0x0001
3128 #ifndef PERL_PV_PRETTY_QUOTE
3129 #define PERL_PV_PRETTY_QUOTE PERL_PV_ESCAPE_QUOTE
3131 #ifndef PERL_PV_PRETTY_ELLIPSES
3132 #define PERL_PV_PRETTY_ELLIPSES 0x0002
3134 #ifndef PERL_PV_PRETTY_LTGT
3135 #define PERL_PV_PRETTY_LTGT 0x0004
3137 #ifndef PERL_PV_ESCAPE_FIRSTCHAR
3138 #define PERL_PV_ESCAPE_FIRSTCHAR 0x0008
3140 #ifndef PERL_PV_ESCAPE_UNI
3141 #define PERL_PV_ESCAPE_UNI 0x0100
3143 #ifndef PERL_PV_ESCAPE_UNI_DETECT
3144 #define PERL_PV_ESCAPE_UNI_DETECT 0x0200
3146 #ifndef PERL_PV_ESCAPE_ALL
3147 #define PERL_PV_ESCAPE_ALL 0x1000
3149 #ifndef PERL_PV_ESCAPE_NOBACKSLASH
3150 #define PERL_PV_ESCAPE_NOBACKSLASH 0x2000
3152 #ifndef PERL_PV_ESCAPE_NOCLEAR
3153 #define PERL_PV_ESCAPE_NOCLEAR 0x4000
3155 #ifndef PERL_PV_ESCAPE_RE
3156 #define PERL_PV_ESCAPE_RE 0x8000
3158 #ifndef PERL_PV_PRETTY_NOCLEAR
3159 #define PERL_PV_PRETTY_NOCLEAR PERL_PV_ESCAPE_NOCLEAR
3161 #ifndef PERL_PV_PRETTY_DUMP
3162 #define PERL_PV_PRETTY_DUMP PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_QUOTE
3164 #ifndef PERL_PV_PRETTY_REGPROP
3165 #define PERL_PV_PRETTY_REGPROP PERL_PV_PRETTY_ELLIPSES|PERL_PV_PRETTY_LTGT|PERL_PV_ESCAPE_RE
3168 #if defined(NEED_pv_escape)
3169 static char *
DPPP_(
my_pv_escape)(
pTHX_ SV * dsv,
char const *
const str,
const STRLEN count,
const STRLEN max, STRLEN *
const escaped,
const U32 flags);
3172 extern char *
DPPP_(
my_pv_escape)(
pTHX_ SV * dsv,
char const *
const str,
const STRLEN count,
const STRLEN max, STRLEN *
const escaped,
const U32 flags);
3177 #define pv_escape(a,b,c,d,e,f) DPPP_(my_pv_escape)(aTHX_ a,b,c,d,e,f)
3178 #define Perl_pv_escape DPPP_(my_pv_escape)
3179 #if defined(NEED_pv_escape) || defined(NEED_pv_escape_GLOBAL)
3182 const STRLEN count,
const STRLEN max,
3183 STRLEN *
const escaped,
const U32 flags)
3187 char octbuf[32] =
"%123456789ABCDF";
3190 STRLEN readsize = 1;
3191 #if defined(is_utf8_string) && defined(utf8_to_uvchr)
3194 const char *pv = str;
3195 const char *
const end = pv + count;
3199 #if defined(is_utf8_string) && defined(utf8_to_uvchr)
3203 for (; pv < end && (!max || wrote < max) ; pv += readsize) {
3205 #if defined(is_utf8_string) && defined(utf8_to_uvchr)
3206 isuni ? utf8_to_uvchr((U8*)pv, &readsize) :
3209 const U8
c = (U8)u & 0xFF;
3216 "%cx{%" UVxf "}", esc, u);
3220 if (c == dq || c == esc || !
isPRINT(c)) {
3224 case '%' :
if (c == esc)
3229 case '\v' : octbuf[1] =
'v';
break;
3230 case '\t' : octbuf[1] =
't';
break;
3231 case '\r' : octbuf[1] =
'r';
break;
3232 case '\n' : octbuf[1] =
'n';
break;
3233 case '\f' : octbuf[1] =
'f';
break;
3234 case '"' :
if (dq ==
'"')
3239 default: chsize =
my_snprintf(octbuf,
sizeof octbuf,
3240 pv < end && isDIGIT((U8)*(pv+readsize))
3241 ?
"%c%03o" :
"%c%o", esc, c);
3247 if (max && wrote + chsize > max) {
3249 }
else if (chsize > 1) {
3250 sv_catpvn(dsv, octbuf, chsize);
3255 sv_catpvn(dsv, tmp, 1);
3261 if (escaped !=
NULL)
3268 #if defined(NEED_pv_pretty)
3269 static char *
DPPP_(
my_pv_pretty)(
pTHX_ SV * dsv,
char const *
const str,
const STRLEN count,
const STRLEN max,
char const *
const start_color,
char const *
const end_color,
const U32 flags);
3272 extern char *
DPPP_(
my_pv_pretty)(
pTHX_ SV * dsv,
char const *
const str,
const STRLEN count,
const STRLEN max,
char const *
const start_color,
char const *
const end_color,
const U32 flags);
3277 #define pv_pretty(a,b,c,d,e,f,g) DPPP_(my_pv_pretty)(aTHX_ a,b,c,d,e,f,g)
3278 #define Perl_pv_pretty DPPP_(my_pv_pretty)
3279 #if defined(NEED_pv_pretty) || defined(NEED_pv_pretty_GLOBAL)
3282 const STRLEN max,
char const *
const start_color,
char const *
const end_color,
3293 if (start_color !=
NULL)
3296 if (end_color !=
NULL)
3300 else if (flags & PERL_PV_PRETTY_LTGT)
3309 #if defined(NEED_pv_display)
3318 #define pv_display(a,b,c,d,e) DPPP_(my_pv_display)(aTHX_ a,b,c,d,e)
3319 #define Perl_pv_display DPPP_(my_pv_display)
3320 #if defined(NEED_pv_display) || defined(NEED_pv_display_GLOBAL)
3325 if (len > cur && pv[cur] ==
'\0')
#define CPERLscope(x)
Definition: ppport.h:702
#define PERL_HASH(hash, str, len)
Definition: ppport.h:705
#define eval_sv
Definition: ppport.h:953
#define sv_catpvs(sv, str)
Definition: ppport.h:2011
#define D_PPP_PERL_SIGNALS_INIT
Definition: ppport.h:805
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
OP *CPERLscope Perl_check_t(pTHX_ OP *)
Definition: ppport.h:730
UV DPPP_() my_grok_bin(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result)
#define dTHX
Definition: ppport.h:75
#define PERL_PV_PRETTY_ELLIPSES
Definition: ppport.h:3132
char * NULL
Definition: KviIrcNumericCodes.h:391
#define PL_hexdigit
Definition: ppport.h:842
char *DPPP_() my_pv_escape(pTHX_ SV *dsv, char const *const str, const STRLEN count, const STRLEN max, STRLEN *const escaped, const U32 flags)
#define PERL_PV_ESCAPE_UNI
Definition: ppport.h:3141
#define PL_curstash
Definition: ppport.h:833
#define isPRINT(c)
Definition: ppport.h:786
#define PERL_SCAN_ALLOW_UNDERSCORES
Definition: ppport.h:2539
Size_t DPPP_() my_my_strlcpy(char *dst, const char *src, Size_t size)
SV *DPPP_() my_newRV_noinc(SV *sv)
UV DPPP_() my_grok_oct(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result)
void DPPP_() my_vload_module(U32 flags, SV *name, SV *ver, va_list *args)
#define PL_hints
Definition: ppport.h:843
#define pv_pretty(a, b, c, d, e, f, g)
Definition: ppport.h:3277
#define aTHX_
Definition: ppport.h:90
#define PERL_LOADMOD_IMPORT_OPS
Definition: ppport.h:962
#define dVAR
Definition: ppport.h:693
#define IN_LOCALE
Definition: ppport.h:2509
#define D_PPP_CONSTPV_ARG(x)
Definition: ppport.h:1333
int DPPP_() my_grok_number(pTHX_ const char *pv, STRLEN len, UV *valuep)
QString type()
Definition: KviRuntimeInfo.cpp:646
#define IS_NUMBER_NOT_INT
Definition: ppport.h:2518
void vsprintf(QString &szSrc, const QString &szFmt, kvi_va_list list)
Writes to the character string.
Definition: KviQString.cpp:634
char *DPPP_() my_pv_pretty(pTHX_ SV *dsv, char const *const str, const STRLEN count, const STRLEN max, char const *const start_color, char const *const end_color, const U32 flags)
#define DPPP_(name)
Definition: ppport.h:51
#define i
Definition: detector.cpp:73
NVTYPE NV
Definition: ppport.h:547
UV DPPP_() my_grok_hex(pTHX_ const char *start, STRLEN *len_p, I32 *flags, NV *result)
#define NVTYPE
Definition: ppport.h:545
int DPPP_() my_my_snprintf(char *buffer, const Size_t len, const char *format,...)
#define SvPV_nolen(sv)
Definition: ppport.h:1548
int DPPP_() my_my_sprintf(char *buffer, const char *pat,...)
OP *CPERLscope Perl_ppaddr_t(pTHX)
Definition: ppport.h:728
#define PERL_PV_ESCAPE_NOBACKSLASH
Definition: ppport.h:3150
#define PL_DBsub
Definition: ppport.h:825
#define PERL_MAGIC_regex_global
Definition: ppport.h:2074
char s char s s
Definition: KviIrcNumericCodes.h:391
#define PERL_PV_ESCAPE_ALL
Definition: ppport.h:3147
#define pTHX_
Definition: ppport.h:84
#define PERL_PV_ESCAPE_NOCLEAR
Definition: ppport.h:3153
#define IS_NUMBER_NAN
Definition: ppport.h:2527
#define pv_escape(a, b, c, d, e, f)
Definition: ppport.h:3177
bool DPPP_() my_grok_numeric_radix(pTHX_ const char **sp, const char *send)
#define PERL_SCAN_SILENT_ILLDIGIT
Definition: ppport.h:2536
MAGIC *DPPP_() my_mg_findext(SV *sv, int type, const MGVTBL *vtbl)
#define PL_copline
Definition: ppport.h:831
SV *DPPP_() my_newSVpvn_flags(pTHX_ const char *s, STRLEN len, U32 flags)
#define PERL_PV_ESCAPE_UNI_DETECT
Definition: ppport.h:3144
#define PERL_BCDVERSION
Definition: ppport.h:67
#define vload_module(a, b, c, d)
Definition: ppport.h:1017
#define PERL_SCAN_GREATER_THAN_UV_MAX
Definition: ppport.h:2533
char *DPPP_() my_sv_2pv_flags(pTHX_ SV *sv, STRLEN *lp, I32 flags)
QHashIterator< int, QFile * > t(getDict)
#define PERL_PV_PRETTY_QUOTE
Definition: ppport.h:3129
#define PERL_PV_ESCAPE_QUOTE
Definition: ppport.h:3126
#define MUTABLE_SV(p)
Definition: ppport.h:2042
#define UV_MAX
Definition: ppport.h:386
#define PERL_PV_PRETTY_DUMP
Definition: ppport.h:3162
#define dTHR
Definition: ppport.h:72
#define PERL_PV_PRETTY_LTGT
Definition: ppport.h:3135
#define PERL_SCAN_DISALLOW_PREFIX
Definition: ppport.h:2542
#define PERL_LOADMOD_DENY
Definition: ppport.h:956
#define IS_NUMBER_IN_UV
Definition: ppport.h:2512
Size_t DPPP_() my_my_strlcat(char *dst, const char *src, Size_t size)
#define PERL_PV_PRETTY_NOCLEAR
Definition: ppport.h:3159
#define PERL_PV_ESCAPE_RE
Definition: ppport.h:3156
void DPPP_() my_load_module(U32 flags, SV *name, SV *ver,...)
SV *DPPP_() my_newSV_type(pTHX_ svtype const t)
QString name()
Definition: KviRuntimeInfo.cpp:655
#define PERL_LOADMOD_NOIMPORT
Definition: ppport.h:959
#define PERL_UNUSED_ARG(x)
Definition: ppport.h:522
int DPPP_() my_sv_unmagicext(pTHX_ SV *const sv, const int type, MGVTBL *vtbl)
#define my_snprintf
Definition: ppport.h:3018
#define PL_curcop
Definition: ppport.h:832
SV *DPPP_() my_eval_pv(char *p, I32 croak_on_error)
#define u
Definition: detector.cpp:85
void DPPP_() my_newCONSTSUB(HV *stash, const char *name, SV *sv)
#define GROK_NUMERIC_RADIX(sp, send)
Definition: ppport.h:2530
#define pTHX
Definition: ppport.h:81
#define HEf_SVKEY
Definition: ppport.h:2035
#define PERL_MAGIC_utf8
Definition: ppport.h:2137
#define SVf_UTF8
Definition: ppport.h:1346
#define memEQ(s1, s2, l)
Definition: ppport.h:460
#define IS_NUMBER_NEG
Definition: ppport.h:2521
SV *DPPP_() my_newSVpvn_share(pTHX_ const char *src, I32 len, U32 hash)
#define PL_expect
Definition: ppport.h:841
#define sv_setpvs(sv, str)
Definition: ppport.h:2014
void copy(void *dst_ptr, const void *src_ptr, int len)
Moves len bytes from src_ptr to dst_ptr.
Definition: KviMemory.h:166
#define IS_NUMBER_INFINITY
Definition: ppport.h:2524
#define p
Definition: detector.cpp:80
#define IS_NUMBER_GREATER_THAN_UV_MAX
Definition: ppport.h:2515
char *DPPP_() my_sv_pvn_force_flags(pTHX_ SV *sv, STRLEN *lp, I32 flags)
#define PL_sv_no
Definition: ppport.h:859
#define UVxf
Definition: ppport.h:1221
#define newSVpvn(data, len)
Definition: ppport.h:1338
char *DPPP_() my_pv_display(pTHX_ SV *dsv, const char *pv, STRLEN cur, STRLEN len, STRLEN pvlim)
#define PERL_PV_ESCAPE_FIRSTCHAR
Definition: ppport.h:3138