diff options
-rw-r--r-- | MANIFEST | 1 | ||||
-rw-r--r-- | cop.h | 8 | ||||
-rw-r--r-- | deb.c | 11 | ||||
-rw-r--r-- | doio.c | 19 | ||||
-rw-r--r-- | dosish.h | 1 | ||||
-rwxr-xr-x | embed.pl | 2 | ||||
-rw-r--r-- | embedvar.h | 3 | ||||
-rw-r--r-- | gv.c | 8 | ||||
-rw-r--r-- | intrpvar.h | 1 | ||||
-rw-r--r-- | mg.c | 1 | ||||
-rw-r--r-- | objXSUB.h | 2 | ||||
-rw-r--r-- | op.c | 16 | ||||
-rw-r--r-- | os2/os2ish.h | 1 | ||||
-rw-r--r-- | perl.c | 14 | ||||
-rw-r--r-- | perl.h | 15 | ||||
-rw-r--r-- | perly.c | 1 | ||||
-rw-r--r-- | perly_c.diff | 3 | ||||
-rw-r--r-- | pod/Win32.pod | 15 | ||||
-rw-r--r-- | pp_ctl.c | 28 | ||||
-rw-r--r-- | pp_hot.c | 4 | ||||
-rw-r--r-- | pp_sys.c | 2 | ||||
-rw-r--r-- | proto.h | 1374 | ||||
-rw-r--r-- | regcomp.c | 1 | ||||
-rw-r--r-- | regexec.c | 1 | ||||
-rw-r--r-- | scope.c | 7 | ||||
-rw-r--r-- | sv.c | 1 | ||||
-rwxr-xr-x | t/io/nargv.t | 63 | ||||
-rw-r--r-- | toke.c | 25 | ||||
-rw-r--r-- | universal.c | 4 | ||||
-rw-r--r-- | util.c | 2 | ||||
-rw-r--r-- | vms/perly_c.vms | 1 | ||||
-rw-r--r-- | vms/vmsish.h | 2 | ||||
-rw-r--r-- | win32/win32.c | 92 | ||||
-rw-r--r-- | xsutils.c | 4 |
34 files changed, 900 insertions, 833 deletions
@@ -1150,6 +1150,7 @@ t/io/dup.t See if >& works right t/io/fs.t See if directory manipulations work t/io/inplace.t See if inplace editing works t/io/iprefix.t See if inplace editing works with prefixes +t/io/nargv.t See if nested ARGV stuff works t/io/open.t See if open works t/io/openpid.t See if open works for subprocesses t/io/pipe.t See if secure pipes work @@ -20,6 +20,14 @@ struct cop { #define Nullcop Null(COP*) +#define CopFILEGV(c) (c)->cop_filegv +#define CopFILEGV_set(c,gv) ((c)->cop_filegv = gv) +#define CopFILESV(c) (CopFILEGV(c) ? GvSV(CopFILEGV(c)) : Nullsv) +#define CopFILEAV(c) (CopFILEGV(c) ? GvAV(CopFILEGV(c)) : Nullav) +#define CopFILE(c) (CopFILESV(c) ? SvPVX(CopFILESV(c)) : Nullch) +#define CopLINE(c) ((c)->cop_line) +#define CopLINE_set(c,l) ((c)->cop_line = (l)) + /* * Here we have some enormously heavy (or at least ponderous) wizardry. */ @@ -47,17 +47,16 @@ Perl_vdeb(pTHX_ const char *pat, va_list *args) #ifdef DEBUGGING dTHR; register I32 i; - GV* gv = PL_curcop->cop_filegv; + char* file = CopFILE(PL_curcop); #ifdef USE_THREADS PerlIO_printf(Perl_debug_log, "0x%"UVxf" (%s:%ld)\t", PTR2UV(thr), - SvTYPE(gv) == SVt_PVGV ? SvPVX(GvSV(gv)) : "<free>", - (long)PL_curcop->cop_line); + (file ? file : "<free>"), + (long)CopLINE(PL_curcop)); #else - PerlIO_printf(Perl_debug_log, "(%s:%ld)\t", - SvTYPE(gv) == SVt_PVGV ? SvPVX(GvSV(gv)) : "<free>", - (long)PL_curcop->cop_line); + PerlIO_printf(Perl_debug_log, "(%s:%ld)\t", (file ? file : "<free>"), + (long)CopLINE(PL_curcop)); #endif /* USE_THREADS */ (void) PerlIO_vprintf(Perl_debug_log, pat, *args); #endif /* DEBUGGING */ @@ -484,9 +484,15 @@ Perl_nextargv(pTHX_ register GV *gv) #endif Uid_t fileuid; Gid_t filegid; + IO *io = GvIOp(gv); if (!PL_argvoutgv) PL_argvoutgv = gv_fetchpv("ARGVOUT",TRUE,SVt_PVIO); + if (io && (IoFLAGS(io) & IOf_ARGV) && (IoFLAGS(io) & IOf_START)) { + IoFLAGS(io) &= ~IOf_START; + if (PL_inplace) + av_push(PL_argvout_stack, SvREFCNT_inc(PL_defoutgv)); + } if (PL_filemode & (S_ISUID|S_ISGID)) { PerlIO_flush(IoIFP(GvIOn(PL_argvoutgv))); /* chmod must follow last write */ #ifdef HAS_FCHMOD @@ -610,11 +616,12 @@ Perl_nextargv(pTHX_ register GV *gv) SETERRNO(0,0); /* in case sprintf set errno */ #ifdef VMS if (!do_open(PL_argvoutgv,SvPVX(sv),SvCUR(sv),PL_inplace!=0, - O_WRONLY|O_CREAT|O_TRUNC,0,Nullfp)) { + O_WRONLY|O_CREAT|O_TRUNC,0,Nullfp)) #else if (!do_open(PL_argvoutgv,SvPVX(sv),SvCUR(sv),PL_inplace!=0, - O_WRONLY|O_CREAT|OPEN_EXCL,0666,Nullfp)) { + O_WRONLY|O_CREAT|OPEN_EXCL,0666,Nullfp)) #endif + { if (ckWARN_d(WARN_INPLACE)) Perl_warner(aTHX_ WARN_INPLACE, "Can't do inplace edit on %s: %s", PL_oldname, Strerror(errno) ); @@ -657,8 +664,16 @@ Perl_nextargv(pTHX_ register GV *gv) } } } + if (io && (IoFLAGS(io) & IOf_ARGV)) + IoFLAGS(io) |= IOf_START; if (PL_inplace) { (void)do_close(PL_argvoutgv,FALSE); + if (io && (IoFLAGS(io) & IOf_ARGV) && AvFILLp(PL_argvout_stack) >= 0) { + GV *oldout = (GV*)av_pop(PL_argvout_stack); + setdefout(oldout); + SvREFCNT_dec(oldout); + return Nullfp; + } setdefout(gv_fetchpv("STDOUT",TRUE,SVt_PVIO)); } return Nullfp; @@ -31,7 +31,6 @@ #define PERL_SYS_TERM() MALLOC_TERM #define dXSUB_SYS -#define TMPPATH "plXXXXXX" /* * 5.003_07 and earlier keyed on #ifdef MSDOS for determining if we were @@ -116,7 +116,7 @@ sub write_protos { $func = "S_$func"; } else { - $retval = "VIRTUAL $retval"; + $retval = "PERL_CALLCONV $retval"; if ($flags =~ /p/) { $func = "Perl_$func"; } diff --git a/embedvar.h b/embedvar.h index 94f93b08ee..37954329dd 100644 --- a/embedvar.h +++ b/embedvar.h @@ -191,6 +191,7 @@ #define PL_an (PERL_GET_INTERP->Ian) #define PL_archpat_auto (PERL_GET_INTERP->Iarchpat_auto) #define PL_argvgv (PERL_GET_INTERP->Iargvgv) +#define PL_argvout_stack (PERL_GET_INTERP->Iargvout_stack) #define PL_argvoutgv (PERL_GET_INTERP->Iargvoutgv) #define PL_basetime (PERL_GET_INTERP->Ibasetime) #define PL_beginav (PERL_GET_INTERP->Ibeginav) @@ -449,6 +450,7 @@ #define PL_an (vTHX->Ian) #define PL_archpat_auto (vTHX->Iarchpat_auto) #define PL_argvgv (vTHX->Iargvgv) +#define PL_argvout_stack (vTHX->Iargvout_stack) #define PL_argvoutgv (vTHX->Iargvoutgv) #define PL_basetime (vTHX->Ibasetime) #define PL_beginav (vTHX->Ibeginav) @@ -709,6 +711,7 @@ #define PL_Ian PL_an #define PL_Iarchpat_auto PL_archpat_auto #define PL_Iargvgv PL_argvgv +#define PL_Iargvout_stack PL_argvout_stack #define PL_Iargvoutgv PL_argvoutgv #define PL_Ibasetime PL_basetime #define PL_Ibeginav PL_beginav @@ -105,8 +105,8 @@ Perl_gv_init(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len, int multi) Newz(602, gp, 1, GP); GvGP(gv) = gp_ref(gp); GvSV(gv) = NEWSV(72,0); - GvLINE(gv) = PL_curcop->cop_line; - GvFILE(gv) = PL_curcop->cop_filegv ? SvPVX(GvSV(PL_curcop->cop_filegv)) : ""; + GvLINE(gv) = CopLINE(PL_curcop); + GvFILE(gv) = CopFILE(PL_curcop) ? CopFILE(PL_curcop) : ""; GvCVGEN(gv) = 0; GvEGV(gv) = gv; sv_magic((SV*)gv, (SV*)gv, '*', name, len); @@ -899,9 +899,9 @@ Perl_gv_check(pTHX_ HV *stash) gv = (GV*)HeVAL(entry); if (SvTYPE(gv) != SVt_PVGV || GvMULTI(gv)) continue; - PL_curcop->cop_line = GvLINE(gv); + CopLINE_set(PL_curcop, GvLINE(gv)); filegv = GvFILEGV(gv); /* XXX could be made faster */ - PL_curcop->cop_filegv = filegv; + CopFILEGV_set(PL_curcop, filegv); if (filegv && GvMULTI(filegv)) /* Filename began with slash */ continue; Perl_warner(aTHX_ WARN_ONCE, diff --git a/intrpvar.h b/intrpvar.h index 1d34a819c1..24ff54e803 100644 --- a/intrpvar.h +++ b/intrpvar.h @@ -66,6 +66,7 @@ PERLVAR(Istderrgv, GV *) PERLVAR(Idefgv, GV *) PERLVAR(Iargvgv, GV *) PERLVAR(Iargvoutgv, GV *) +PERLVAR(Iargvout_stack, AV *) /* shortcuts to regexp stuff */ /* this one needs to be moved to thrdvar.h and accessed via @@ -2085,7 +2085,6 @@ cleanup: #ifdef PERL_OBJECT -#define NO_XSLOCKS #include "XSUB.h" #endif @@ -48,6 +48,8 @@ #define PL_archpat_auto (*Perl_Iarchpat_auto_ptr(aTHXo)) #undef PL_argvgv #define PL_argvgv (*Perl_Iargvgv_ptr(aTHXo)) +#undef PL_argvout_stack +#define PL_argvout_stack (*Perl_Iargvout_stack_ptr(aTHXo)) #undef PL_argvoutgv #define PL_argvoutgv (*Perl_Iargvoutgv_ptr(aTHXo)) #undef PL_basetime @@ -761,7 +761,7 @@ STATIC void S_cop_free(pTHX_ COP* cop) { Safefree(cop->cop_label); - SvREFCNT_dec(cop->cop_filegv); + SvREFCNT_dec(CopFILEGV(cop)); if (! specialWARN(cop->cop_warnings)) SvREFCNT_dec(cop->cop_warnings); } @@ -2006,7 +2006,7 @@ Perl_newPROG(pTHX_ OP *o) if (cv) { dSP; PUSHMARK(SP); - XPUSHs((SV*)PL_compiling.cop_filegv); + XPUSHs((SV*)CopFILEGV(&PL_compiling)); PUTBACK; call_sv((SV*)cv, G_DISCARD); } @@ -3274,14 +3274,14 @@ Perl_newSTATEOP(pTHX_ I32 flags, char *label, OP *o) if (PL_copline == NOLINE) cop->cop_line = PL_curcop->cop_line; else { - cop->cop_line = PL_copline; + cop->cop_line = PL_copline; PL_copline = NOLINE; } - cop->cop_filegv = (GV*)SvREFCNT_inc(PL_curcop->cop_filegv); + CopFILEGV_set(cop, (GV*)SvREFCNT_inc(CopFILEGV(PL_curcop))); cop->cop_stash = PL_curstash; if (PERLDB_LINE && PL_curstash != PL_debstash) { - SV **svp = av_fetch(GvAV(PL_curcop->cop_filegv),(I32)cop->cop_line, FALSE); + SV **svp = av_fetch(CopFILEAV(PL_curcop), (I32)CopLINE(cop), FALSE); if (svp && *svp != &PL_sv_undef && !SvIOK(*svp)) { (void)SvIOK_on(*svp); SvIVX(*svp) = 1; @@ -4366,8 +4366,8 @@ Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) HV *hv; Perl_sv_setpvf(aTHX_ sv, "%_:%ld-%ld", - GvSV(PL_curcop->cop_filegv), - (long)PL_subline, (long)PL_curcop->cop_line); + CopFILESV(PL_curcop), + (long)PL_subline, (long)CopLINE(PL_curcop)); gv_efullname3(tmpstr, gv, Nullch); hv_store(GvHV(PL_DBsub), SvPVX(tmpstr), SvCUR(tmpstr), sv, 0); hv = GvHVn(db_postponed); @@ -4388,7 +4388,7 @@ Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) if (strEQ(s, "BEGIN")) { I32 oldscope = PL_scopestack_ix; ENTER; - SAVESPTR(PL_compiling.cop_filegv); + SAVESPTR(CopFILEGV(&PL_compiling)); SAVEI16(PL_compiling.cop_line); save_svref(&PL_rs); sv_setsv(PL_rs, PL_nrs); diff --git a/os2/os2ish.h b/os2/os2ish.h index 23b109670f..3d7a6fd403 100644 --- a/os2/os2ish.h +++ b/os2/os2ish.h @@ -231,7 +231,6 @@ void *sys_alloc(int size); # define PerlIO FILE #endif -#define TMPPATH tmppath #define TMPPATH1 "plXXXXXX" extern char *tmppath; PerlIO *my_syspopen(char *cmd, char *mode); @@ -2087,7 +2087,7 @@ S_open_script(pTHX_ char *scriptname, bool dosearch, SV *sv, int *fdscript) } } - PL_curcop->cop_filegv = gv_fetchfile(PL_origfilename); + CopFILEGV_set(PL_curcop, gv_fetchfile(PL_origfilename)); if (strEQ(PL_origfilename,"-")) scriptname = ""; if (*fdscript >= 0) { @@ -2201,7 +2201,7 @@ sed %s -e \"/^[^#]/b\" \ #ifdef DOSUID #ifndef IAMSUID /* in case script is not readable before setuid */ if (PL_euid && - PerlLIO_stat(SvPVX(GvSV(PL_curcop->cop_filegv)),&PL_statbuf) >= 0 && + PerlLIO_stat(CopFILE(PL_curcop),&PL_statbuf) >= 0 && PL_statbuf.st_mode & (S_ISUID|S_ISGID)) { /* try again */ @@ -2211,7 +2211,7 @@ sed %s -e \"/^[^#]/b\" \ #endif #endif Perl_croak(aTHX_ "Can't open perl script \"%s\": %s\n", - SvPVX(GvSV(PL_curcop->cop_filegv)), Strerror(errno)); + CopFILE(PL_curcop), Strerror(errno)); } } @@ -2355,7 +2355,7 @@ S_validate_suid(pTHX_ char *validarg, char *scriptname, int fdscript) * But I don't think it's too important. The manual lies when * it says access() is useful in setuid programs. */ - if (PerlLIO_access(SvPVX(GvSV(PL_curcop->cop_filegv)),1)) /*double check*/ + if (PerlLIO_access(CopFILE(PL_curcop),1)) /*double check*/ Perl_croak(aTHX_ "Permission denied"); #else /* If we can swap euid and uid, then we can determine access rights @@ -2376,7 +2376,7 @@ S_validate_suid(pTHX_ char *validarg, char *scriptname, int fdscript) #endif || PerlProc_getuid() != PL_euid || PerlProc_geteuid() != PL_uid) Perl_croak(aTHX_ "Can't swap uid and euid"); /* really paranoid */ - if (PerlLIO_stat(SvPVX(GvSV(PL_curcop->cop_filegv)),&tmpstatbuf) < 0) + if (PerlLIO_stat(CopFILE(PL_curcop),&tmpstatbuf) < 0) Perl_croak(aTHX_ "Permission denied"); /* testing full pathname here */ #if defined(IAMSUID) && !defined(NO_NOSUID_CHECK) if (fd_on_nosuid_fs(PerlIO_fileno(PL_rsfp))) @@ -2391,7 +2391,7 @@ S_validate_suid(pTHX_ char *validarg, char *scriptname, int fdscript) (Filename of set-id script was %s, uid %"Uid_t_f" gid %"Gid_t_f".)\n\nSincerely,\nperl\n", PL_uid,(long)tmpstatbuf.st_dev, (long)tmpstatbuf.st_ino, (long)PL_statbuf.st_dev, (long)PL_statbuf.st_ino, - SvPVX(GvSV(PL_curcop->cop_filegv)), + CopFILE(PL_curcop), PL_statbuf.st_uid, PL_statbuf.st_gid); (void)PerlProc_pclose(PL_rsfp); } @@ -2829,6 +2829,7 @@ S_init_postdump_symbols(pTHX_ register int argc, register char **argv, register for (; argc > 0; argc--,argv++) { av_push(GvAVn(PL_argvgv),newSVpv(argv[0],0)); } + PL_argvout_stack = newAV(); } if (PL_envgv = gv_fetchpv("ENV",TRUE, SVt_PVHV)) { HV *hv; @@ -3295,7 +3296,6 @@ S_my_exit_jump(pTHX) } #ifdef PERL_OBJECT -#define NO_XSLOCKS #include "XSUB.h" #endif @@ -1861,10 +1861,6 @@ typedef I32 CHECKPOINT; # define MAXSYSFD 2 #endif -#ifndef TMPPATH -# define TMPPATH "/tmp/perl-eXXXXXX" -#endif - #ifndef __cplusplus Uid_t getuid (void); Uid_t geteuid (void); @@ -2581,13 +2577,6 @@ typedef void *Thread; # define PERL_CALLCONV #endif -#ifdef PERL_OBJECT -# define VIRTUAL virtual PERL_CALLCONV -#else -# define VIRTUAL PERL_CALLCONV -/*START_EXTERN_C*/ -#endif - #ifndef NEXT30_NO_ATTRIBUTE # ifndef HASATTRIBUTE /* disable GNU-cc attribute checking? */ # ifdef __attribute__ /* Avoid possible redefinition errors */ @@ -2615,10 +2604,8 @@ public: #include "pp_proto.h" #ifdef PERL_OBJECT -VIRTUAL int CPerlObj::do_aspawn (void *vreally, void **vmark, void **vsp); +int CPerlObj::do_aspawn (void *vreally, void **vmark, void **vsp); #undef PERL_DECL_PROT -#else -/*END_EXTERN_C*/ #endif #ifndef PERL_OBJECT @@ -2481,7 +2481,6 @@ yyaccept: } #ifdef PERL_OBJECT -#define NO_XSLOCKS #include "XSUB.h" #endif diff --git a/perly_c.diff b/perly_c.diff index 450b159fb2..0b73880c4e 100644 --- a/perly_c.diff +++ b/perly_c.diff @@ -134,7 +134,7 @@ yyaccept: ! return (0); } ---- 2524,2570 ---- +--- 2524,2569 ---- #endif if (yyssp >= yyss + yystacksize - 1) { @@ -164,7 +164,6 @@ ! } ! ! #ifdef PERL_OBJECT -! #define NO_XSLOCKS ! #include "XSUB.h" ! #endif ! diff --git a/pod/Win32.pod b/pod/Win32.pod index dfc78bda5a..08043e83ec 100644 --- a/pod/Win32.pod +++ b/pod/Win32.pod @@ -32,12 +32,13 @@ only available in the ActivePerl binary distribution. =item Win32::CopyFile(FROM, TO, OVERWRITE) -The Win32::CopyFile() function copies an existing file to a new file. All -file information like creation time and file attributes will be copied to -the new file. However it will B<not> copy the security information. If the -destination file already exists it will only be overwritten when the -OVERWRITE parameter is true. But even this will not overwrite a read-only -file; you have to unlink() it first yourself. +[CORE] The Win32::CopyFile() function copies an existing file to a new +file. All file information like creation time and file attributes will +be copied to the new file. However it will B<not> copy the security +information. If the destination file already exists it will only be +overwritten when the OVERWRITE parameter is true. But even this will +not overwrite a read-only file; you have to unlink() it first +yourself. =item Win32::DomainName() @@ -207,7 +208,7 @@ the SID type. =item Win32::LookupAccountSID(SYSTEM, SID, ACCOUNT, DOMAIN, SIDTYPE) -[EXT] ]Looks up SID on SYSTEM and returns the account name, domain name, +[EXT] Looks up SID on SYSTEM and returns the account name, domain name, and the SID type. =item Win32::MsgBox(MESSAGE [, FLAGS [, TITLE]]) @@ -1445,8 +1445,7 @@ PP(pp_caller) PUSHs(&PL_sv_undef); else PUSHs(sv_2mortal(newSVpv(HvNAME(hv), 0))); - PUSHs(sv_2mortal(newSVpvn(SvPVX(GvSV(cx->blk_oldcop->cop_filegv)), - SvCUR(GvSV(cx->blk_oldcop->cop_filegv))))); + PUSHs(sv_2mortal(newSVsv(CopFILESV(cx->blk_oldcop)))); PUSHs(sv_2mortal(newSViv((I32)cx->blk_oldcop->cop_line))); if (!MAXARG) RETURN; @@ -2490,10 +2489,10 @@ Perl_sv_compile_2op(pTHX_ SV *sv, OP** startop, char *code, AV** avp) SAVESPTR(PL_compiling.cop_stash); PL_compiling.cop_stash = PL_curstash; } - SAVESPTR(PL_compiling.cop_filegv); + SAVESPTR(CopFILEGV(&PL_compiling)); SAVEI16(PL_compiling.cop_line); sprintf(tmpbuf, "_<(%.10s_eval %lu)", code, (unsigned long)++PL_evalseq); - PL_compiling.cop_filegv = gv_fetchfile(tmpbuf+2); + CopFILEGV_set(&PL_compiling, gv_fetchfile(tmpbuf+2)); PL_compiling.cop_line = 1; /* XXX For C<eval "...">s within BEGIN {} blocks, this ends up deleting the eval's FILEGV from the stash before gv_check() runs @@ -2514,7 +2513,7 @@ Perl_sv_compile_2op(pTHX_ SV *sv, OP** startop, char *code, AV** avp) PL_op->op_type = OP_ENTEREVAL; PL_op->op_flags = 0; /* Avoid uninit warning. */ PUSHBLOCK(cx, CXt_EVAL, SP); - PUSHEVAL(cx, 0, PL_compiling.cop_filegv); + PUSHEVAL(cx, 0, Nullgv); rop = doeval(G_SCALAR, startop); POPBLOCK(cx,PL_curpm); POPEVAL(cx); @@ -2692,7 +2691,7 @@ S_doeval(pTHX_ int gimme, OP** startop) if (cv) { dSP; PUSHMARK(SP); - XPUSHs((SV*)PL_compiling.cop_filegv); + XPUSHs((SV*)CopFILEGV(&PL_compiling)); PUTBACK; call_sv((SV*)cv, G_DISCARD); } @@ -2978,8 +2977,8 @@ trylocal: { } } } - SAVESPTR(PL_compiling.cop_filegv); - PL_compiling.cop_filegv = gv_fetchfile(tryrsfp ? tryname : name); + SAVESPTR(CopFILEGV(&PL_compiling)); + CopFILEGV_set(&PL_compiling, gv_fetchfile(tryrsfp ? tryname : name)); SvREFCNT_dec(namesv); if (!tryrsfp) { if (PL_op->op_type == OP_REQUIRE) { @@ -3014,7 +3013,7 @@ trylocal: { /* Assume success here to prevent recursive requirement. */ (void)hv_store(GvHVn(PL_incgv), name, strlen(name), - newSVsv(GvSV(PL_compiling.cop_filegv)), 0 ); + newSVsv(CopFILESV(&PL_compiling)), 0 ); ENTER; SAVETMPS; @@ -3046,7 +3045,7 @@ trylocal: { /* switch to eval mode */ push_return(PL_op->op_next); PUSHBLOCK(cx, CXt_EVAL, SP); - PUSHEVAL(cx, name, PL_compiling.cop_filegv); + PUSHEVAL(cx, name, Nullgv); SAVEI16(PL_compiling.cop_line); PL_compiling.cop_line = 0; @@ -3089,9 +3088,9 @@ PP(pp_entereval) /* switch to eval mode */ - SAVESPTR(PL_compiling.cop_filegv); + SAVESPTR(CopFILEGV(&PL_compiling)); sprintf(tmpbuf, "_<(eval %lu)", (unsigned long)++PL_evalseq); - PL_compiling.cop_filegv = gv_fetchfile(tmpbuf+2); + CopFILEGV_set(&PL_compiling, gv_fetchfile(tmpbuf+2)); PL_compiling.cop_line = 1; /* XXX For C<eval "...">s within BEGIN {} blocks, this ends up deleting the eval's FILEGV from the stash before gv_check() runs @@ -3110,12 +3109,12 @@ PP(pp_entereval) push_return(PL_op->op_next); PUSHBLOCK(cx, (CXt_EVAL|CXp_REAL), SP); - PUSHEVAL(cx, 0, PL_compiling.cop_filegv); + PUSHEVAL(cx, 0, Nullgv); /* prepare to compile string */ if (PERLDB_LINE && PL_curstash != PL_debstash) - save_lines(GvAV(PL_compiling.cop_filegv), PL_linestr); + save_lines(CopFILEAV(&PL_compiling), PL_linestr); PUTBACK; #ifdef USE_THREADS MUTEX_LOCK(&PL_eval_mutex); @@ -4130,7 +4129,6 @@ S_qsortsv(pTHX_ SV ** array, size_t num_elts, SVCOMPARE_t compare) #ifdef PERL_OBJECT -#define NO_XSLOCKS #undef this #define this pPerl #include "XSUB.h" @@ -1085,9 +1085,9 @@ Perl_do_readline(pTHX) if (!fp) { if (IoFLAGS(io) & IOf_ARGV) { if (IoFLAGS(io) & IOf_START) { - IoFLAGS(io) &= ~IOf_START; IoLINES(io) = 0; if (av_len(GvAVn(PL_last_in_gv)) < 0) { + IoFLAGS(io) &= ~IOf_START; do_open(PL_last_in_gv,"-",1,FALSE,O_RDONLY,0,Nullfp); sv_setpvn(GvSV(PL_last_in_gv), "-", 1); SvSETMAGIC(GvSV(PL_last_in_gv)); @@ -1098,7 +1098,6 @@ Perl_do_readline(pTHX) fp = nextargv(PL_last_in_gv); if (!fp) { /* Note: fp != IoIFP(io) */ (void)do_close(PL_last_in_gv, FALSE); /* now it does*/ - IoFLAGS(io) |= IOf_START; } } else if (type == OP_GLOB) { @@ -1302,7 +1301,6 @@ Perl_do_readline(pTHX) if (fp) continue; (void)do_close(PL_last_in_gv, FALSE); - IoFLAGS(io) |= IOf_START; } else if (type == OP_GLOB) { if (!do_close(PL_last_in_gv, FALSE) && ckWARN(WARN_CLOSED)) { @@ -475,7 +475,7 @@ PP(pp_die) HV *stash = SvSTASH(SvRV(error)); GV *gv = gv_fetchmethod(stash, "PROPAGATE"); if (gv) { - SV *file = sv_2mortal(newSVsv(GvSV(PL_curcop->cop_filegv))); + SV *file = sv_2mortal(newSVsv(CopFILESV(PL_curcop))); SV *line = sv_2mortal(newSViv(PL_curcop->cop_line)); EXTEND(SP, 3); PUSHMARK(SP); @@ -7,736 +7,736 @@ #if defined(PERL_OBJECT) public: #endif -VIRTUAL SV* Perl_amagic_call(pTHX_ SV* left, SV* right, int method, int dir); -VIRTUAL bool Perl_Gv_AMupdate(pTHX_ HV* stash); -VIRTUAL OP* Perl_append_elem(pTHX_ I32 optype, OP* head, OP* tail); -VIRTUAL OP* Perl_append_list(pTHX_ I32 optype, LISTOP* first, LISTOP* last); -VIRTUAL I32 Perl_apply(pTHX_ I32 type, SV** mark, SV** sp); -VIRTUAL bool Perl_avhv_exists_ent(pTHX_ AV *ar, SV* keysv, U32 hash); -VIRTUAL SV** Perl_avhv_fetch_ent(pTHX_ AV *ar, SV* keysv, I32 lval, U32 hash); -VIRTUAL HE* Perl_avhv_iternext(pTHX_ AV *ar); -VIRTUAL SV* Perl_avhv_iterval(pTHX_ AV *ar, HE* entry); -VIRTUAL HV* Perl_avhv_keys(pTHX_ AV *ar); -VIRTUAL void Perl_av_clear(pTHX_ AV* ar); -VIRTUAL void Perl_av_extend(pTHX_ AV* ar, I32 key); -VIRTUAL AV* Perl_av_fake(pTHX_ I32 size, SV** svp); -VIRTUAL SV** Perl_av_fetch(pTHX_ AV* ar, I32 key, I32 lval); -VIRTUAL void Perl_av_fill(pTHX_ AV* ar, I32 fill); -VIRTUAL I32 Perl_av_len(pTHX_ AV* ar); -VIRTUAL AV* Perl_av_make(pTHX_ I32 size, SV** svp); -VIRTUAL SV* Perl_av_pop(pTHX_ AV* ar); -VIRTUAL void Perl_av_push(pTHX_ AV* ar, SV* val); -VIRTUAL void Perl_av_reify(pTHX_ AV* ar); -VIRTUAL SV* Perl_av_shift(pTHX_ AV* ar); -VIRTUAL SV** Perl_av_store(pTHX_ AV* ar, I32 key, SV* val); -VIRTUAL void Perl_av_undef(pTHX_ AV* ar); -VIRTUAL void Perl_av_unshift(pTHX_ AV* ar, I32 num); -VIRTUAL OP* Perl_bind_match(pTHX_ I32 type, OP* left, OP* pat); -VIRTUAL OP* Perl_block_end(pTHX_ I32 floor, OP* seq); -VIRTUAL I32 Perl_block_gimme(pTHX); -VIRTUAL int Perl_block_start(pTHX_ int full); -VIRTUAL void Perl_boot_core_UNIVERSAL(pTHX); -VIRTUAL void Perl_call_list(pTHX_ I32 oldscope, AV* av_list); -VIRTUAL bool Perl_cando(pTHX_ Mode_t mode, Uid_t effective, Stat_t* statbufp); -VIRTUAL U32 Perl_cast_ulong(pTHX_ NV f); -VIRTUAL I32 Perl_cast_i32(pTHX_ NV f); -VIRTUAL IV Perl_cast_iv(pTHX_ NV f); -VIRTUAL UV Perl_cast_uv(pTHX_ NV f); +PERL_CALLCONV SV* Perl_amagic_call(pTHX_ SV* left, SV* right, int method, int dir); +PERL_CALLCONV bool Perl_Gv_AMupdate(pTHX_ HV* stash); +PERL_CALLCONV OP* Perl_append_elem(pTHX_ I32 optype, OP* head, OP* tail); +PERL_CALLCONV OP* Perl_append_list(pTHX_ I32 optype, LISTOP* first, LISTOP* last); +PERL_CALLCONV I32 Perl_apply(pTHX_ I32 type, SV** mark, SV** sp); +PERL_CALLCONV bool Perl_avhv_exists_ent(pTHX_ AV *ar, SV* keysv, U32 hash); +PERL_CALLCONV SV** Perl_avhv_fetch_ent(pTHX_ AV *ar, SV* keysv, I32 lval, U32 hash); +PERL_CALLCONV HE* Perl_avhv_iternext(pTHX_ AV *ar); +PERL_CALLCONV SV* Perl_avhv_iterval(pTHX_ AV *ar, HE* entry); +PERL_CALLCONV HV* Perl_avhv_keys(pTHX_ AV *ar); +PERL_CALLCONV void Perl_av_clear(pTHX_ AV* ar); +PERL_CALLCONV void Perl_av_extend(pTHX_ AV* ar, I32 key); +PERL_CALLCONV AV* Perl_av_fake(pTHX_ I32 size, SV** svp); +PERL_CALLCONV SV** Perl_av_fetch(pTHX_ AV* ar, I32 key, I32 lval); +PERL_CALLCONV void Perl_av_fill(pTHX_ AV* ar, I32 fill); +PERL_CALLCONV I32 Perl_av_len(pTHX_ AV* ar); +PERL_CALLCONV AV* Perl_av_make(pTHX_ I32 size, SV** svp); +PERL_CALLCONV SV* Perl_av_pop(pTHX_ AV* ar); +PERL_CALLCONV void Perl_av_push(pTHX_ AV* ar, SV* val); +PERL_CALLCONV void Perl_av_reify(pTHX_ AV* ar); +PERL_CALLCONV SV* Perl_av_shift(pTHX_ AV* ar); +PERL_CALLCONV SV** Perl_av_store(pTHX_ AV* ar, I32 key, SV* val); +PERL_CALLCONV void Perl_av_undef(pTHX_ AV* ar); +PERL_CALLCONV void Perl_av_unshift(pTHX_ AV* ar, I32 num); +PERL_CALLCONV OP* Perl_bind_match(pTHX_ I32 type, OP* left, OP* pat); +PERL_CALLCONV OP* Perl_block_end(pTHX_ I32 floor, OP* seq); +PERL_CALLCONV I32 Perl_block_gimme(pTHX); +PERL_CALLCONV int Perl_block_start(pTHX_ int full); +PERL_CALLCONV void Perl_boot_core_UNIVERSAL(pTHX); +PERL_CALLCONV void Perl_call_list(pTHX_ I32 oldscope, AV* av_list); +PERL_CALLCONV bool Perl_cando(pTHX_ Mode_t mode, Uid_t effective, Stat_t* statbufp); +PERL_CALLCONV U32 Perl_cast_ulong(pTHX_ NV f); +PERL_CALLCONV I32 Perl_cast_i32(pTHX_ NV f); +PERL_CALLCONV IV Perl_cast_iv(pTHX_ NV f); +PERL_CALLCONV UV Perl_cast_uv(pTHX_ NV f); #if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP) -VIRTUAL I32 Perl_my_chsize(pTHX_ int fd, Off_t length); +PERL_CALLCONV I32 Perl_my_chsize(pTHX_ int fd, Off_t length); #endif #if defined(USE_THREADS) -VIRTUAL MAGIC* Perl_condpair_magic(pTHX_ SV *sv); +PERL_CALLCONV MAGIC* Perl_condpair_magic(pTHX_ SV *sv); #endif -VIRTUAL OP* Perl_convert(pTHX_ I32 optype, I32 flags, OP* o); -VIRTUAL void Perl_croak(pTHX_ const char* pat, ...) __attribute__((noreturn)); -VIRTUAL void Perl_vcroak(pTHX_ const char* pat, va_list* args) __attribute__((noreturn)); +PERL_CALLCONV OP* Perl_convert(pTHX_ I32 optype, I32 flags, OP* o); +PERL_CALLCONV void Perl_croak(pTHX_ const char* pat, ...) __attribute__((noreturn)); +PERL_CALLCONV void Perl_vcroak(pTHX_ const char* pat, va_list* args) __attribute__((noreturn)); #if defined(PERL_IMPLICIT_CONTEXT) -VIRTUAL void Perl_croak_nocontext(const char* pat, ...) __attribute__((noreturn)); -VIRTUAL OP* Perl_die_nocontext(const char* pat, ...); -VIRTUAL void Perl_deb_nocontext(const char* pat, ...); -VIRTUAL char* Perl_form_nocontext(const char* pat, ...); -VIRTUAL SV* Perl_mess_nocontext(const char* pat, ...); -VIRTUAL void Perl_warn_nocontext(const char* pat, ...); -VIRTUAL void Perl_warner_nocontext(U32 err, const char* pat, ...); -VIRTUAL SV* Perl_newSVpvf_nocontext(const char* pat, ...); -VIRTUAL void Perl_sv_catpvf_nocontext(SV* sv, const char* pat, ...); -VIRTUAL void Perl_sv_setpvf_nocontext(SV* sv, const char* pat, ...); -VIRTUAL void Perl_sv_catpvf_mg_nocontext(SV* sv, const char* pat, ...); -VIRTUAL void Perl_sv_setpvf_mg_nocontext(SV* sv, const char* pat, ...); -VIRTUAL int Perl_fprintf_nocontext(PerlIO* stream, const char* fmt, ...); -#endif -VIRTUAL void Perl_cv_ckproto(pTHX_ CV* cv, GV* gv, char* p); -VIRTUAL CV* Perl_cv_clone(pTHX_ CV* proto); -VIRTUAL SV* Perl_cv_const_sv(pTHX_ CV* cv); -VIRTUAL SV* Perl_op_const_sv(pTHX_ OP* o, CV* cv); -VIRTUAL void Perl_cv_undef(pTHX_ CV* cv); -VIRTUAL void Perl_cx_dump(pTHX_ PERL_CONTEXT* cs); -VIRTUAL SV* Perl_filter_add(pTHX_ filter_t funcp, SV* datasv); -VIRTUAL void Perl_filter_del(pTHX_ filter_t funcp); -VIRTUAL I32 Perl_filter_read(pTHX_ int idx, SV* buffer, int maxlen); -VIRTUAL char** Perl_get_op_descs(pTHX); -VIRTUAL char** Perl_get_op_names(pTHX); -VIRTUAL char* Perl_get_no_modify(pTHX); -VIRTUAL U32* Perl_get_opargs(pTHX); -VIRTUAL PPADDR_t* Perl_get_ppaddr(pTHX); -VIRTUAL I32 Perl_cxinc(pTHX); -VIRTUAL void Perl_deb(pTHX_ const char* pat, ...); -VIRTUAL void Perl_vdeb(pTHX_ const char* pat, va_list* args); -VIRTUAL void Perl_debprofdump(pTHX); -VIRTUAL I32 Perl_debop(pTHX_ OP* o); -VIRTUAL I32 Perl_debstack(pTHX); -VIRTUAL I32 Perl_debstackptrs(pTHX); -VIRTUAL char* Perl_delimcpy(pTHX_ char* to, char* toend, char* from, char* fromend, int delim, I32* retlen); -VIRTUAL void Perl_deprecate(pTHX_ char* s); -VIRTUAL OP* Perl_die(pTHX_ const char* pat, ...); -VIRTUAL OP* Perl_vdie(pTHX_ const char* pat, va_list* args); -VIRTUAL OP* Perl_die_where(pTHX_ char* message, STRLEN msglen); -VIRTUAL void Perl_dounwind(pTHX_ I32 cxix); -VIRTUAL bool Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp); -VIRTUAL bool Perl_do_aexec5(pTHX_ SV* really, SV** mark, SV** sp, int fd, int flag); -VIRTUAL int Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int flag); -VIRTUAL void Perl_do_chop(pTHX_ SV* asv, SV* sv); -VIRTUAL bool Perl_do_close(pTHX_ GV* gv, bool not_implicit); -VIRTUAL bool Perl_do_eof(pTHX_ GV* gv); -VIRTUAL bool Perl_do_exec(pTHX_ char* cmd); +PERL_CALLCONV void Perl_croak_nocontext(const char* pat, ...) __attribute__((noreturn)); +PERL_CALLCONV OP* Perl_die_nocontext(const char* pat, ...); +PERL_CALLCONV void Perl_deb_nocontext(const char* pat, ...); +PERL_CALLCONV char* Perl_form_nocontext(const char* pat, ...); +PERL_CALLCONV SV* Perl_mess_nocontext(const char* pat, ...); +PERL_CALLCONV void Perl_warn_nocontext(const char* pat, ...); +PERL_CALLCONV void Perl_warner_nocontext(U32 err, const char* pat, ...); +PERL_CALLCONV SV* Perl_newSVpvf_nocontext(const char* pat, ...); +PERL_CALLCONV void Perl_sv_catpvf_nocontext(SV* sv, const char* pat, ...); +PERL_CALLCONV void Perl_sv_setpvf_nocontext(SV* sv, const char* pat, ...); +PERL_CALLCONV void Perl_sv_catpvf_mg_nocontext(SV* sv, const char* pat, ...); +PERL_CALLCONV void Perl_sv_setpvf_mg_nocontext(SV* sv, const char* pat, ...); +PERL_CALLCONV int Perl_fprintf_nocontext(PerlIO* stream, const char* fmt, ...); +#endif +PERL_CALLCONV void Perl_cv_ckproto(pTHX_ CV* cv, GV* gv, char* p); +PERL_CALLCONV CV* Perl_cv_clone(pTHX_ CV* proto); +PERL_CALLCONV SV* Perl_cv_const_sv(pTHX_ CV* cv); +PERL_CALLCONV SV* Perl_op_const_sv(pTHX_ OP* o, CV* cv); +PERL_CALLCONV void Perl_cv_undef(pTHX_ CV* cv); +PERL_CALLCONV void Perl_cx_dump(pTHX_ PERL_CONTEXT* cs); +PERL_CALLCONV SV* Perl_filter_add(pTHX_ filter_t funcp, SV* datasv); +PERL_CALLCONV void Perl_filter_del(pTHX_ filter_t funcp); +PERL_CALLCONV I32 Perl_filter_read(pTHX_ int idx, SV* buffer, int maxlen); +PERL_CALLCONV char** Perl_get_op_descs(pTHX); +PERL_CALLCONV char** Perl_get_op_names(pTHX); +PERL_CALLCONV char* Perl_get_no_modify(pTHX); +PERL_CALLCONV U32* Perl_get_opargs(pTHX); +PERL_CALLCONV PPADDR_t* Perl_get_ppaddr(pTHX); +PERL_CALLCONV I32 Perl_cxinc(pTHX); +PERL_CALLCONV void Perl_deb(pTHX_ const char* pat, ...); +PERL_CALLCONV void Perl_vdeb(pTHX_ const char* pat, va_list* args); +PERL_CALLCONV void Perl_debprofdump(pTHX); +PERL_CALLCONV I32 Perl_debop(pTHX_ OP* o); +PERL_CALLCONV I32 Perl_debstack(pTHX); +PERL_CALLCONV I32 Perl_debstackptrs(pTHX); +PERL_CALLCONV char* Perl_delimcpy(pTHX_ char* to, char* toend, char* from, char* fromend, int delim, I32* retlen); +PERL_CALLCONV void Perl_deprecate(pTHX_ char* s); +PERL_CALLCONV OP* Perl_die(pTHX_ const char* pat, ...); +PERL_CALLCONV OP* Perl_vdie(pTHX_ const char* pat, va_list* args); +PERL_CALLCONV OP* Perl_die_where(pTHX_ char* message, STRLEN msglen); +PERL_CALLCONV void Perl_dounwind(pTHX_ I32 cxix); +PERL_CALLCONV bool Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp); +PERL_CALLCONV bool Perl_do_aexec5(pTHX_ SV* really, SV** mark, SV** sp, int fd, int flag); +PERL_CALLCONV int Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int flag); +PERL_CALLCONV void Perl_do_chop(pTHX_ SV* asv, SV* sv); +PERL_CALLCONV bool Perl_do_close(pTHX_ GV* gv, bool not_implicit); +PERL_CALLCONV bool Perl_do_eof(pTHX_ GV* gv); +PERL_CALLCONV bool Perl_do_exec(pTHX_ char* cmd); #if !defined(WIN32) -VIRTUAL bool Perl_do_exec3(pTHX_ char* cmd, int fd, int flag); +PERL_CALLCONV bool Perl_do_exec3(pTHX_ char* cmd, int fd, int flag); #endif -VIRTUAL void Perl_do_execfree(pTHX); +PERL_CALLCONV void Perl_do_execfree(pTHX); #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM) -VIRTUAL I32 Perl_do_ipcctl(pTHX_ I32 optype, SV** mark, SV** sp); -VIRTUAL I32 Perl_do_ipcget(pTHX_ I32 optype, SV** mark, SV** sp); -VIRTUAL I32 Perl_do_msgrcv(pTHX_ SV** mark, SV** sp); -VIRTUAL I32 Perl_do_msgsnd(pTHX_ SV** mark, SV** sp); -VIRTUAL I32 Perl_do_semop(pTHX_ SV** mark, SV** sp); -VIRTUAL I32 Perl_do_shmio(pTHX_ I32 optype, SV** mark, SV** sp); -#endif -VIRTUAL void Perl_do_join(pTHX_ SV* sv, SV* del, SV** mark, SV** sp); -VIRTUAL OP* Perl_do_kv(pTHX); -VIRTUAL bool Perl_do_open(pTHX_ GV* gv, char* name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO* supplied_fp); -VIRTUAL bool Perl_do_open9(pTHX_ GV *gv, char *name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO *supplied_fp, SV *svs, I32 num); -VIRTUAL void Perl_do_pipe(pTHX_ SV* sv, GV* rgv, GV* wgv); -VIRTUAL bool Perl_do_print(pTHX_ SV* sv, PerlIO* fp); -VIRTUAL OP* Perl_do_readline(pTHX); -VIRTUAL I32 Perl_do_chomp(pTHX_ SV* sv); -VIRTUAL bool Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence); -VIRTUAL void Perl_do_sprintf(pTHX_ SV* sv, I32 len, SV** sarg); -VIRTUAL Off_t Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence); -VIRTUAL Off_t Perl_do_tell(pTHX_ GV* gv); -VIRTUAL I32 Perl_do_trans(pTHX_ SV* sv); -VIRTUAL UV Perl_do_vecget(pTHX_ SV* sv, I32 offset, I32 size); -VIRTUAL void Perl_do_vecset(pTHX_ SV* sv); -VIRTUAL void Perl_do_vop(pTHX_ I32 optype, SV* sv, SV* left, SV* right); -VIRTUAL OP* Perl_dofile(pTHX_ OP* term); -VIRTUAL I32 Perl_dowantarray(pTHX); -VIRTUAL void Perl_dump_all(pTHX); -VIRTUAL void Perl_dump_eval(pTHX); +PERL_CALLCONV I32 Perl_do_ipcctl(pTHX_ I32 optype, SV** mark, SV** sp); +PERL_CALLCONV I32 Perl_do_ipcget(pTHX_ I32 optype, SV** mark, SV** sp); +PERL_CALLCONV I32 Perl_do_msgrcv(pTHX_ SV** mark, SV** sp); +PERL_CALLCONV I32 Perl_do_msgsnd(pTHX_ SV** mark, SV** sp); +PERL_CALLCONV I32 Perl_do_semop(pTHX_ SV** mark, SV** sp); +PERL_CALLCONV I32 Perl_do_shmio(pTHX_ I32 optype, SV** mark, SV** sp); +#endif +PERL_CALLCONV void Perl_do_join(pTHX_ SV* sv, SV* del, SV** mark, SV** sp); +PERL_CALLCONV OP* Perl_do_kv(pTHX); +PERL_CALLCONV bool Perl_do_open(pTHX_ GV* gv, char* name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO* supplied_fp); +PERL_CALLCONV bool Perl_do_open9(pTHX_ GV *gv, char *name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO *supplied_fp, SV *svs, I32 num); +PERL_CALLCONV void Perl_do_pipe(pTHX_ SV* sv, GV* rgv, GV* wgv); +PERL_CALLCONV bool Perl_do_print(pTHX_ SV* sv, PerlIO* fp); +PERL_CALLCONV OP* Perl_do_readline(pTHX); +PERL_CALLCONV I32 Perl_do_chomp(pTHX_ SV* sv); +PERL_CALLCONV bool Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence); +PERL_CALLCONV void Perl_do_sprintf(pTHX_ SV* sv, I32 len, SV** sarg); +PERL_CALLCONV Off_t Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence); +PERL_CALLCONV Off_t Perl_do_tell(pTHX_ GV* gv); +PERL_CALLCONV I32 Perl_do_trans(pTHX_ SV* sv); +PERL_CALLCONV UV Perl_do_vecget(pTHX_ SV* sv, I32 offset, I32 size); +PERL_CALLCONV void Perl_do_vecset(pTHX_ SV* sv); +PERL_CALLCONV void Perl_do_vop(pTHX_ I32 optype, SV* sv, SV* left, SV* right); +PERL_CALLCONV OP* Perl_dofile(pTHX_ OP* term); +PERL_CALLCONV I32 Perl_dowantarray(pTHX); +PERL_CALLCONV void Perl_dump_all(pTHX); +PERL_CALLCONV void Perl_dump_eval(pTHX); #if defined(DUMP_FDS) -VIRTUAL void Perl_dump_fds(pTHX_ char* s); -#endif -VIRTUAL void Perl_dump_form(pTHX_ GV* gv); -VIRTUAL void Perl_gv_dump(pTHX_ GV* gv); -VIRTUAL void Perl_op_dump(pTHX_ OP* arg); -VIRTUAL void Perl_pmop_dump(pTHX_ PMOP* pm); -VIRTUAL void Perl_dump_packsubs(pTHX_ HV* stash); -VIRTUAL void Perl_dump_sub(pTHX_ GV* gv); -VIRTUAL void Perl_fbm_compile(pTHX_ SV* sv, U32 flags); -VIRTUAL char* Perl_fbm_instr(pTHX_ unsigned char* big, unsigned char* bigend, SV* littlesv, U32 flags); -VIRTUAL char* Perl_find_script(pTHX_ char *scriptname, bool dosearch, char **search_ext, I32 flags); +PERL_CALLCONV void Perl_dump_fds(pTHX_ char* s); +#endif +PERL_CALLCONV void Perl_dump_form(pTHX_ GV* gv); +PERL_CALLCONV void Perl_gv_dump(pTHX_ GV* gv); +PERL_CALLCONV void Perl_op_dump(pTHX_ OP* arg); +PERL_CALLCONV void Perl_pmop_dump(pTHX_ PMOP* pm); +PERL_CALLCONV void Perl_dump_packsubs(pTHX_ HV* stash); +PERL_CALLCONV void Perl_dump_sub(pTHX_ GV* gv); +PERL_CALLCONV void Perl_fbm_compile(pTHX_ SV* sv, U32 flags); +PERL_CALLCONV char* Perl_fbm_instr(pTHX_ unsigned char* big, unsigned char* bigend, SV* littlesv, U32 flags); +PERL_CALLCONV char* Perl_find_script(pTHX_ char *scriptname, bool dosearch, char **search_ext, I32 flags); #if defined(USE_THREADS) -VIRTUAL PADOFFSET Perl_find_threadsv(pTHX_ const char *name); -#endif -VIRTUAL OP* Perl_force_list(pTHX_ OP* arg); -VIRTUAL OP* Perl_fold_constants(pTHX_ OP* arg); -VIRTUAL char* Perl_form(pTHX_ const char* pat, ...); -VIRTUAL char* Perl_vform(pTHX_ const char* pat, va_list* args); -VIRTUAL void Perl_free_tmps(pTHX); -VIRTUAL OP* Perl_gen_constant_list(pTHX_ OP* o); +PERL_CALLCONV PADOFFSET Perl_find_threadsv(pTHX_ const char *name); +#endif +PERL_CALLCONV OP* Perl_force_list(pTHX_ OP* arg); +PERL_CALLCONV OP* Perl_fold_constants(pTHX_ OP* arg); +PERL_CALLCONV char* Perl_form(pTHX_ const char* pat, ...); +PERL_CALLCONV char* Perl_vform(pTHX_ const char* pat, va_list* args); +PERL_CALLCONV void Perl_free_tmps(pTHX); +PERL_CALLCONV OP* Perl_gen_constant_list(pTHX_ OP* o); #if !defined(HAS_GETENV_LEN) -VIRTUAL char* Perl_getenv_len(pTHX_ char* key, unsigned long *len); -#endif -VIRTUAL void Perl_gp_free(pTHX_ GV* gv); -VIRTUAL GP* Perl_gp_ref(pTHX_ GP* gp); -VIRTUAL GV* Perl_gv_AVadd(pTHX_ GV* gv); -VIRTUAL GV* Perl_gv_HVadd(pTHX_ GV* gv); -VIRTUAL GV* Perl_gv_IOadd(pTHX_ GV* gv); -VIRTUAL GV* Perl_gv_autoload4(pTHX_ HV* stash, const char* name, STRLEN len, I32 method); -VIRTUAL void Perl_gv_check(pTHX_ HV* stash); -VIRTUAL void Perl_gv_efullname(pTHX_ SV* sv, GV* gv); -VIRTUAL void Perl_gv_efullname3(pTHX_ SV* sv, GV* gv, const char* prefix); -VIRTUAL GV* Perl_gv_fetchfile(pTHX_ const char* name); -VIRTUAL GV* Perl_gv_fetchmeth(pTHX_ HV* stash, const char* name, STRLEN len, I32 level); -VIRTUAL GV* Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name); -VIRTUAL GV* Perl_gv_fetchmethod_autoload(pTHX_ HV* stash, const char* name, I32 autoload); -VIRTUAL GV* Perl_gv_fetchpv(pTHX_ const char* name, I32 add, I32 sv_type); -VIRTUAL void Perl_gv_fullname(pTHX_ SV* sv, GV* gv); -VIRTUAL void Perl_gv_fullname3(pTHX_ SV* sv, GV* gv, const char* prefix); -VIRTUAL void Perl_gv_init(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, int multi); -VIRTUAL HV* Perl_gv_stashpv(pTHX_ const char* name, I32 create); -VIRTUAL HV* Perl_gv_stashpvn(pTHX_ const char* name, U32 namelen, I32 create); -VIRTUAL HV* Perl_gv_stashsv(pTHX_ SV* sv, I32 create); -VIRTUAL void Perl_hv_clear(pTHX_ HV* tb); -VIRTUAL void Perl_hv_delayfree_ent(pTHX_ HV* hv, HE* entry); -VIRTUAL SV* Perl_hv_delete(pTHX_ HV* tb, const char* key, U32 klen, I32 flags); -VIRTUAL SV* Perl_hv_delete_ent(pTHX_ HV* tb, SV* key, I32 flags, U32 hash); -VIRTUAL bool Perl_hv_exists(pTHX_ HV* tb, const char* key, U32 klen); -VIRTUAL bool Perl_hv_exists_ent(pTHX_ HV* tb, SV* key, U32 hash); -VIRTUAL SV** Perl_hv_fetch(pTHX_ HV* tb, const char* key, U32 klen, I32 lval); -VIRTUAL HE* Perl_hv_fetch_ent(pTHX_ HV* tb, SV* key, I32 lval, U32 hash); -VIRTUAL void Perl_hv_free_ent(pTHX_ HV* hv, HE* entry); -VIRTUAL I32 Perl_hv_iterinit(pTHX_ HV* tb); -VIRTUAL char* Perl_hv_iterkey(pTHX_ HE* entry, I32* retlen); -VIRTUAL SV* Perl_hv_iterkeysv(pTHX_ HE* entry); -VIRTUAL HE* Perl_hv_iternext(pTHX_ HV* tb); -VIRTUAL SV* Perl_hv_iternextsv(pTHX_ HV* hv, char** key, I32* retlen); -VIRTUAL SV* Perl_hv_iterval(pTHX_ HV* tb, HE* entry); -VIRTUAL void Perl_hv_ksplit(pTHX_ HV* hv, IV newmax); -VIRTUAL void Perl_hv_magic(pTHX_ HV* hv, GV* gv, int how); -VIRTUAL SV** Perl_hv_store(pTHX_ HV* tb, const char* key, U32 klen, SV* val, U32 hash); -VIRTUAL HE* Perl_hv_store_ent(pTHX_ HV* tb, SV* key, SV* val, U32 hash); -VIRTUAL void Perl_hv_undef(pTHX_ HV* tb); -VIRTUAL I32 Perl_ibcmp(pTHX_ const char* a, const char* b, I32 len); -VIRTUAL I32 Perl_ibcmp_locale(pTHX_ const char* a, const char* b, I32 len); -VIRTUAL bool Perl_ingroup(pTHX_ Gid_t testgid, Uid_t effective); -VIRTUAL void Perl_init_debugger(pTHX); -VIRTUAL void Perl_init_stacks(pTHX); -VIRTUAL U32 Perl_intro_my(pTHX); -VIRTUAL char* Perl_instr(pTHX_ const char* big, const char* little); -VIRTUAL bool Perl_io_close(pTHX_ IO* io, bool not_implicit); -VIRTUAL OP* Perl_invert(pTHX_ OP* cmd); -VIRTUAL bool Perl_is_uni_alnum(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_alnumc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_idfirst(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_alpha(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_ascii(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_space(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_cntrl(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_graph(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_digit(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_upper(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_lower(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_print(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_punct(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_xdigit(pTHX_ U32 c); -VIRTUAL U32 Perl_to_uni_upper(pTHX_ U32 c); -VIRTUAL U32 Perl_to_uni_title(pTHX_ U32 c); -VIRTUAL U32 Perl_to_uni_lower(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_alnum_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_alnumc_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_idfirst_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_alpha_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_ascii_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_space_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_cntrl_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_graph_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_digit_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_upper_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_lower_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_print_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_punct_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_uni_xdigit_lc(pTHX_ U32 c); -VIRTUAL U32 Perl_to_uni_upper_lc(pTHX_ U32 c); -VIRTUAL U32 Perl_to_uni_title_lc(pTHX_ U32 c); -VIRTUAL U32 Perl_to_uni_lower_lc(pTHX_ U32 c); -VIRTUAL bool Perl_is_utf8_alnum(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_alnumc(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_idfirst(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_alpha(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_ascii(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_space(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_cntrl(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_digit(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_graph(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_upper(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_lower(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_print(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_punct(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_xdigit(pTHX_ U8 *p); -VIRTUAL bool Perl_is_utf8_mark(pTHX_ U8 *p); -VIRTUAL OP* Perl_jmaybe(pTHX_ OP* arg); -VIRTUAL I32 Perl_keyword(pTHX_ char* d, I32 len); -VIRTUAL void Perl_leave_scope(pTHX_ I32 base); -VIRTUAL void Perl_lex_end(pTHX); -VIRTUAL void Perl_lex_start(pTHX_ SV* line); -VIRTUAL OP* Perl_linklist(pTHX_ OP* o); -VIRTUAL OP* Perl_list(pTHX_ OP* o); -VIRTUAL OP* Perl_listkids(pTHX_ OP* o); -VIRTUAL OP* Perl_localize(pTHX_ OP* arg, I32 lexical); -VIRTUAL I32 Perl_looks_like_number(pTHX_ SV* sv); -VIRTUAL int Perl_magic_clearenv(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_clear_all_env(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_clearpack(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_clearsig(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_existspack(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_freeregexp(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_get(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_getarylen(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_getdefelem(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_getglob(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_getnkeys(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_getpack(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_getpos(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_getsig(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_getsubstr(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_gettaint(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_getuvar(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_getvec(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL U32 Perl_magic_len(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV char* Perl_getenv_len(pTHX_ char* key, unsigned long *len); +#endif +PERL_CALLCONV void Perl_gp_free(pTHX_ GV* gv); +PERL_CALLCONV GP* Perl_gp_ref(pTHX_ GP* gp); +PERL_CALLCONV GV* Perl_gv_AVadd(pTHX_ GV* gv); +PERL_CALLCONV GV* Perl_gv_HVadd(pTHX_ GV* gv); +PERL_CALLCONV GV* Perl_gv_IOadd(pTHX_ GV* gv); +PERL_CALLCONV GV* Perl_gv_autoload4(pTHX_ HV* stash, const char* name, STRLEN len, I32 method); +PERL_CALLCONV void Perl_gv_check(pTHX_ HV* stash); +PERL_CALLCONV void Perl_gv_efullname(pTHX_ SV* sv, GV* gv); +PERL_CALLCONV void Perl_gv_efullname3(pTHX_ SV* sv, GV* gv, const char* prefix); +PERL_CALLCONV GV* Perl_gv_fetchfile(pTHX_ const char* name); +PERL_CALLCONV GV* Perl_gv_fetchmeth(pTHX_ HV* stash, const char* name, STRLEN len, I32 level); +PERL_CALLCONV GV* Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name); +PERL_CALLCONV GV* Perl_gv_fetchmethod_autoload(pTHX_ HV* stash, const char* name, I32 autoload); +PERL_CALLCONV GV* Perl_gv_fetchpv(pTHX_ const char* name, I32 add, I32 sv_type); +PERL_CALLCONV void Perl_gv_fullname(pTHX_ SV* sv, GV* gv); +PERL_CALLCONV void Perl_gv_fullname3(pTHX_ SV* sv, GV* gv, const char* prefix); +PERL_CALLCONV void Perl_gv_init(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, int multi); +PERL_CALLCONV HV* Perl_gv_stashpv(pTHX_ const char* name, I32 create); +PERL_CALLCONV HV* Perl_gv_stashpvn(pTHX_ const char* name, U32 namelen, I32 create); +PERL_CALLCONV HV* Perl_gv_stashsv(pTHX_ SV* sv, I32 create); +PERL_CALLCONV void Perl_hv_clear(pTHX_ HV* tb); +PERL_CALLCONV void Perl_hv_delayfree_ent(pTHX_ HV* hv, HE* entry); +PERL_CALLCONV SV* Perl_hv_delete(pTHX_ HV* tb, const char* key, U32 klen, I32 flags); +PERL_CALLCONV SV* Perl_hv_delete_ent(pTHX_ HV* tb, SV* key, I32 flags, U32 hash); +PERL_CALLCONV bool Perl_hv_exists(pTHX_ HV* tb, const char* key, U32 klen); +PERL_CALLCONV bool Perl_hv_exists_ent(pTHX_ HV* tb, SV* key, U32 hash); +PERL_CALLCONV SV** Perl_hv_fetch(pTHX_ HV* tb, const char* key, U32 klen, I32 lval); +PERL_CALLCONV HE* Perl_hv_fetch_ent(pTHX_ HV* tb, SV* key, I32 lval, U32 hash); +PERL_CALLCONV void Perl_hv_free_ent(pTHX_ HV* hv, HE* entry); +PERL_CALLCONV I32 Perl_hv_iterinit(pTHX_ HV* tb); +PERL_CALLCONV char* Perl_hv_iterkey(pTHX_ HE* entry, I32* retlen); +PERL_CALLCONV SV* Perl_hv_iterkeysv(pTHX_ HE* entry); +PERL_CALLCONV HE* Perl_hv_iternext(pTHX_ HV* tb); +PERL_CALLCONV SV* Perl_hv_iternextsv(pTHX_ HV* hv, char** key, I32* retlen); +PERL_CALLCONV SV* Perl_hv_iterval(pTHX_ HV* tb, HE* entry); +PERL_CALLCONV void Perl_hv_ksplit(pTHX_ HV* hv, IV newmax); +PERL_CALLCONV void Perl_hv_magic(pTHX_ HV* hv, GV* gv, int how); +PERL_CALLCONV SV** Perl_hv_store(pTHX_ HV* tb, const char* key, U32 klen, SV* val, U32 hash); +PERL_CALLCONV HE* Perl_hv_store_ent(pTHX_ HV* tb, SV* key, SV* val, U32 hash); +PERL_CALLCONV void Perl_hv_undef(pTHX_ HV* tb); +PERL_CALLCONV I32 Perl_ibcmp(pTHX_ const char* a, const char* b, I32 len); +PERL_CALLCONV I32 Perl_ibcmp_locale(pTHX_ const char* a, const char* b, I32 len); +PERL_CALLCONV bool Perl_ingroup(pTHX_ Gid_t testgid, Uid_t effective); +PERL_CALLCONV void Perl_init_debugger(pTHX); +PERL_CALLCONV void Perl_init_stacks(pTHX); +PERL_CALLCONV U32 Perl_intro_my(pTHX); +PERL_CALLCONV char* Perl_instr(pTHX_ const char* big, const char* little); +PERL_CALLCONV bool Perl_io_close(pTHX_ IO* io, bool not_implicit); +PERL_CALLCONV OP* Perl_invert(pTHX_ OP* cmd); +PERL_CALLCONV bool Perl_is_uni_alnum(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_alnumc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_idfirst(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_alpha(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_ascii(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_space(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_cntrl(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_graph(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_digit(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_upper(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_lower(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_print(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_punct(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_xdigit(pTHX_ U32 c); +PERL_CALLCONV U32 Perl_to_uni_upper(pTHX_ U32 c); +PERL_CALLCONV U32 Perl_to_uni_title(pTHX_ U32 c); +PERL_CALLCONV U32 Perl_to_uni_lower(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_alnum_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_alnumc_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_idfirst_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_alpha_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_ascii_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_space_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_cntrl_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_graph_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_digit_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_upper_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_lower_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_print_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_punct_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_uni_xdigit_lc(pTHX_ U32 c); +PERL_CALLCONV U32 Perl_to_uni_upper_lc(pTHX_ U32 c); +PERL_CALLCONV U32 Perl_to_uni_title_lc(pTHX_ U32 c); +PERL_CALLCONV U32 Perl_to_uni_lower_lc(pTHX_ U32 c); +PERL_CALLCONV bool Perl_is_utf8_alnum(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_alnumc(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_idfirst(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_alpha(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_ascii(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_space(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_cntrl(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_digit(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_graph(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_upper(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_lower(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_print(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_punct(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_xdigit(pTHX_ U8 *p); +PERL_CALLCONV bool Perl_is_utf8_mark(pTHX_ U8 *p); +PERL_CALLCONV OP* Perl_jmaybe(pTHX_ OP* arg); +PERL_CALLCONV I32 Perl_keyword(pTHX_ char* d, I32 len); +PERL_CALLCONV void Perl_leave_scope(pTHX_ I32 base); +PERL_CALLCONV void Perl_lex_end(pTHX); +PERL_CALLCONV void Perl_lex_start(pTHX_ SV* line); +PERL_CALLCONV OP* Perl_linklist(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_list(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_listkids(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_localize(pTHX_ OP* arg, I32 lexical); +PERL_CALLCONV I32 Perl_looks_like_number(pTHX_ SV* sv); +PERL_CALLCONV int Perl_magic_clearenv(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_clear_all_env(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_clearpack(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_clearsig(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_existspack(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_freeregexp(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_get(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_getarylen(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_getdefelem(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_getglob(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_getnkeys(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_getpack(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_getpos(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_getsig(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_getsubstr(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_gettaint(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_getuvar(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_getvec(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV U32 Perl_magic_len(pTHX_ SV* sv, MAGIC* mg); #if defined(USE_THREADS) -VIRTUAL int Perl_magic_mutexfree(pTHX_ SV* sv, MAGIC* mg); -#endif -VIRTUAL int Perl_magic_nextpack(pTHX_ SV* sv, MAGIC* mg, SV* key); -VIRTUAL U32 Perl_magic_regdata_cnt(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_regdatum_get(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_set(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setamagic(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setarylen(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setbm(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setdbline(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_mutexfree(pTHX_ SV* sv, MAGIC* mg); +#endif +PERL_CALLCONV int Perl_magic_nextpack(pTHX_ SV* sv, MAGIC* mg, SV* key); +PERL_CALLCONV U32 Perl_magic_regdata_cnt(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_regdatum_get(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_set(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setamagic(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setarylen(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setbm(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setdbline(pTHX_ SV* sv, MAGIC* mg); #if defined(USE_LOCALE_COLLATE) -VIRTUAL int Perl_magic_setcollxfrm(pTHX_ SV* sv, MAGIC* mg); -#endif -VIRTUAL int Perl_magic_setdefelem(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setenv(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setfm(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setisa(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setglob(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setmglob(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setuvar(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_setvec(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_set_all_env(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL U32 Perl_magic_sizepack(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL int Perl_magic_wipepack(pTHX_ SV* sv, MAGIC* mg); -VIRTUAL void Perl_magicname(pTHX_ char* sym, char* name, I32 namlen); +PERL_CALLCONV int Perl_magic_setcollxfrm(pTHX_ SV* sv, MAGIC* mg); +#endif +PERL_CALLCONV int Perl_magic_setdefelem(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setenv(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setfm(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setisa(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setglob(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setmglob(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setuvar(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_setvec(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_set_all_env(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV U32 Perl_magic_sizepack(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV int Perl_magic_wipepack(pTHX_ SV* sv, MAGIC* mg); +PERL_CALLCONV void Perl_magicname(pTHX_ char* sym, char* name, I32 namlen); #if defined(MYMALLOC) -VIRTUAL MEM_SIZE Perl_malloced_size(void *p); +PERL_CALLCONV MEM_SIZE Perl_malloced_size(void *p); #endif -VIRTUAL void Perl_markstack_grow(pTHX); +PERL_CALLCONV void Perl_markstack_grow(pTHX); #if defined(USE_LOCALE_COLLATE) -VIRTUAL char* Perl_mem_collxfrm(pTHX_ const char* s, STRLEN len, STRLEN* xlen); -#endif -VIRTUAL SV* Perl_mess(pTHX_ const char* pat, ...); -VIRTUAL SV* Perl_vmess(pTHX_ const char* pat, va_list* args); -VIRTUAL void Perl_qerror(pTHX_ SV* err); -VIRTUAL int Perl_mg_clear(pTHX_ SV* sv); -VIRTUAL int Perl_mg_copy(pTHX_ SV* sv, SV* nsv, const char* key, I32 klen); -VIRTUAL MAGIC* Perl_mg_find(pTHX_ SV* sv, int type); -VIRTUAL int Perl_mg_free(pTHX_ SV* sv); -VIRTUAL int Perl_mg_get(pTHX_ SV* sv); -VIRTUAL U32 Perl_mg_length(pTHX_ SV* sv); -VIRTUAL void Perl_mg_magical(pTHX_ SV* sv); -VIRTUAL int Perl_mg_set(pTHX_ SV* sv); -VIRTUAL I32 Perl_mg_size(pTHX_ SV* sv); -VIRTUAL OP* Perl_mod(pTHX_ OP* o, I32 type); -VIRTUAL char* Perl_moreswitches(pTHX_ char* s); -VIRTUAL OP* Perl_my(pTHX_ OP* o); -VIRTUAL NV Perl_my_atof(pTHX_ const char *s); +PERL_CALLCONV char* Perl_mem_collxfrm(pTHX_ const char* s, STRLEN len, STRLEN* xlen); +#endif +PERL_CALLCONV SV* Perl_mess(pTHX_ const char* pat, ...); +PERL_CALLCONV SV* Perl_vmess(pTHX_ const char* pat, va_list* args); +PERL_CALLCONV void Perl_qerror(pTHX_ SV* err); +PERL_CALLCONV int Perl_mg_clear(pTHX_ SV* sv); +PERL_CALLCONV int Perl_mg_copy(pTHX_ SV* sv, SV* nsv, const char* key, I32 klen); +PERL_CALLCONV MAGIC* Perl_mg_find(pTHX_ SV* sv, int type); +PERL_CALLCONV int Perl_mg_free(pTHX_ SV* sv); +PERL_CALLCONV int Perl_mg_get(pTHX_ SV* sv); +PERL_CALLCONV U32 Perl_mg_length(pTHX_ SV* sv); +PERL_CALLCONV void Perl_mg_magical(pTHX_ SV* sv); +PERL_CALLCONV int Perl_mg_set(pTHX_ SV* sv); +PERL_CALLCONV I32 Perl_mg_size(pTHX_ SV* sv); +PERL_CALLCONV OP* Perl_mod(pTHX_ OP* o, I32 type); +PERL_CALLCONV char* Perl_moreswitches(pTHX_ char* s); +PERL_CALLCONV OP* Perl_my(pTHX_ OP* o); +PERL_CALLCONV NV Perl_my_atof(pTHX_ const char *s); #if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY) -VIRTUAL char* Perl_my_bcopy(pTHX_ const char* from, char* to, I32 len); +PERL_CALLCONV char* Perl_my_bcopy(pTHX_ const char* from, char* to, I32 len); #endif #if !defined(HAS_BZERO) && !defined(HAS_MEMSET) -VIRTUAL char* Perl_my_bzero(pTHX_ char* loc, I32 len); +PERL_CALLCONV char* Perl_my_bzero(pTHX_ char* loc, I32 len); #endif -VIRTUAL void Perl_my_exit(pTHX_ U32 status) __attribute__((noreturn)); -VIRTUAL void Perl_my_failure_exit(pTHX) __attribute__((noreturn)); -VIRTUAL I32 Perl_my_fflush_all(pTHX); -VIRTUAL I32 Perl_my_lstat(pTHX); +PERL_CALLCONV void Perl_my_exit(pTHX_ U32 status) __attribute__((noreturn)); +PERL_CALLCONV void Perl_my_failure_exit(pTHX) __attribute__((noreturn)); +PERL_CALLCONV I32 Perl_my_fflush_all(pTHX); +PERL_CALLCONV I32 Perl_my_lstat(pTHX); #if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP) -VIRTUAL I32 Perl_my_memcmp(pTHX_ const char* s1, const char* s2, I32 len); +PERL_CALLCONV I32 Perl_my_memcmp(pTHX_ const char* s1, const char* s2, I32 len); #endif #if !defined(HAS_MEMSET) -VIRTUAL void* Perl_my_memset(pTHX_ char* loc, I32 ch, I32 len); +PERL_CALLCONV void* Perl_my_memset(pTHX_ char* loc, I32 ch, I32 len); #endif #if !defined(PERL_OBJECT) -VIRTUAL I32 Perl_my_pclose(pTHX_ PerlIO* ptr); -VIRTUAL PerlIO* Perl_my_popen(pTHX_ char* cmd, char* mode); +PERL_CALLCONV I32 Perl_my_pclose(pTHX_ PerlIO* ptr); +PERL_CALLCONV PerlIO* Perl_my_popen(pTHX_ char* cmd, char* mode); #endif -VIRTUAL void Perl_my_setenv(pTHX_ char* nam, char* val); -VIRTUAL I32 Perl_my_stat(pTHX); +PERL_CALLCONV void Perl_my_setenv(pTHX_ char* nam, char* val); +PERL_CALLCONV I32 Perl_my_stat(pTHX); #if defined(MYSWAP) -VIRTUAL short Perl_my_swap(pTHX_ short s); -VIRTUAL long Perl_my_htonl(pTHX_ long l); -VIRTUAL long Perl_my_ntohl(pTHX_ long l); -#endif -VIRTUAL void Perl_my_unexec(pTHX); -VIRTUAL OP* Perl_newANONLIST(pTHX_ OP* o); -VIRTUAL OP* Perl_newANONHASH(pTHX_ OP* o); -VIRTUAL OP* Perl_newANONSUB(pTHX_ I32 floor, OP* proto, OP* block); -VIRTUAL OP* Perl_newASSIGNOP(pTHX_ I32 flags, OP* left, I32 optype, OP* right); -VIRTUAL OP* Perl_newCONDOP(pTHX_ I32 flags, OP* expr, OP* trueop, OP* falseop); -VIRTUAL void Perl_newCONSTSUB(pTHX_ HV* stash, char* name, SV* sv); -VIRTUAL void Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block); -VIRTUAL OP* Perl_newFOROP(pTHX_ I32 flags, char* label, line_t forline, OP* sclr, OP* expr, OP*block, OP*cont); -VIRTUAL OP* Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP* left, OP* right); -VIRTUAL OP* Perl_newLOOPEX(pTHX_ I32 type, OP* label); -VIRTUAL OP* Perl_newLOOPOP(pTHX_ I32 flags, I32 debuggable, OP* expr, OP* block); -VIRTUAL OP* Perl_newNULLLIST(pTHX); -VIRTUAL OP* Perl_newOP(pTHX_ I32 optype, I32 flags); -VIRTUAL void Perl_newPROG(pTHX_ OP* o); -VIRTUAL OP* Perl_newRANGE(pTHX_ I32 flags, OP* left, OP* right); -VIRTUAL OP* Perl_newSLICEOP(pTHX_ I32 flags, OP* subscript, OP* listop); -VIRTUAL OP* Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o); -VIRTUAL CV* Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block); -VIRTUAL CV* Perl_newXS(pTHX_ char* name, XSUBADDR_t f, char* filename); -VIRTUAL AV* Perl_newAV(pTHX); -VIRTUAL OP* Perl_newAVREF(pTHX_ OP* o); -VIRTUAL OP* Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last); -VIRTUAL OP* Perl_newCVREF(pTHX_ I32 flags, OP* o); -VIRTUAL OP* Perl_newGVOP(pTHX_ I32 type, I32 flags, GV* gv); -VIRTUAL GV* Perl_newGVgen(pTHX_ char* pack); -VIRTUAL OP* Perl_newGVREF(pTHX_ I32 type, OP* o); -VIRTUAL OP* Perl_newHVREF(pTHX_ OP* o); -VIRTUAL HV* Perl_newHV(pTHX); -VIRTUAL HV* Perl_newHVhv(pTHX_ HV* hv); -VIRTUAL IO* Perl_newIO(pTHX); -VIRTUAL OP* Perl_newLISTOP(pTHX_ I32 type, I32 flags, OP* first, OP* last); -VIRTUAL OP* Perl_newPMOP(pTHX_ I32 type, I32 flags); -VIRTUAL OP* Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv); -VIRTUAL SV* Perl_newRV(pTHX_ SV* pref); -VIRTUAL SV* Perl_newRV_noinc(pTHX_ SV *sv); -VIRTUAL SV* Perl_newSV(pTHX_ STRLEN len); -VIRTUAL OP* Perl_newSVREF(pTHX_ OP* o); -VIRTUAL OP* Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv); -VIRTUAL SV* Perl_newSViv(pTHX_ IV i); -VIRTUAL SV* Perl_newSVnv(pTHX_ NV n); -VIRTUAL SV* Perl_newSVpv(pTHX_ const char* s, STRLEN len); -VIRTUAL SV* Perl_newSVpvn(pTHX_ const char* s, STRLEN len); -VIRTUAL SV* Perl_newSVpvf(pTHX_ const char* pat, ...); -VIRTUAL SV* Perl_vnewSVpvf(pTHX_ const char* pat, va_list* args); -VIRTUAL SV* Perl_newSVrv(pTHX_ SV* rv, const char* classname); -VIRTUAL SV* Perl_newSVsv(pTHX_ SV* old); -VIRTUAL OP* Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first); -VIRTUAL OP* Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, I32 whileline, OP* expr, OP* block, OP* cont); -VIRTUAL PERL_SI* Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems); -VIRTUAL PerlIO* Perl_nextargv(pTHX_ GV* gv); -VIRTUAL char* Perl_ninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend); -VIRTUAL OP* Perl_oopsCV(pTHX_ OP* o); -VIRTUAL void Perl_op_free(pTHX_ OP* arg); -VIRTUAL void Perl_package(pTHX_ OP* o); -VIRTUAL PADOFFSET Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype); -VIRTUAL PADOFFSET Perl_pad_allocmy(pTHX_ char* name); -VIRTUAL PADOFFSET Perl_pad_findmy(pTHX_ char* name); -VIRTUAL OP* Perl_oopsAV(pTHX_ OP* o); -VIRTUAL OP* Perl_oopsHV(pTHX_ OP* o); -VIRTUAL void Perl_pad_leavemy(pTHX_ I32 fill); -VIRTUAL SV* Perl_pad_sv(pTHX_ PADOFFSET po); -VIRTUAL void Perl_pad_free(pTHX_ PADOFFSET po); -VIRTUAL void Perl_pad_reset(pTHX); -VIRTUAL void Perl_pad_swipe(pTHX_ PADOFFSET po); -VIRTUAL void Perl_peep(pTHX_ OP* o); +PERL_CALLCONV short Perl_my_swap(pTHX_ short s); +PERL_CALLCONV long Perl_my_htonl(pTHX_ long l); +PERL_CALLCONV long Perl_my_ntohl(pTHX_ long l); +#endif +PERL_CALLCONV void Perl_my_unexec(pTHX); +PERL_CALLCONV OP* Perl_newANONLIST(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_newANONHASH(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_newANONSUB(pTHX_ I32 floor, OP* proto, OP* block); +PERL_CALLCONV OP* Perl_newASSIGNOP(pTHX_ I32 flags, OP* left, I32 optype, OP* right); +PERL_CALLCONV OP* Perl_newCONDOP(pTHX_ I32 flags, OP* expr, OP* trueop, OP* falseop); +PERL_CALLCONV void Perl_newCONSTSUB(pTHX_ HV* stash, char* name, SV* sv); +PERL_CALLCONV void Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block); +PERL_CALLCONV OP* Perl_newFOROP(pTHX_ I32 flags, char* label, line_t forline, OP* sclr, OP* expr, OP*block, OP*cont); +PERL_CALLCONV OP* Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP* left, OP* right); +PERL_CALLCONV OP* Perl_newLOOPEX(pTHX_ I32 type, OP* label); +PERL_CALLCONV OP* Perl_newLOOPOP(pTHX_ I32 flags, I32 debuggable, OP* expr, OP* block); +PERL_CALLCONV OP* Perl_newNULLLIST(pTHX); +PERL_CALLCONV OP* Perl_newOP(pTHX_ I32 optype, I32 flags); +PERL_CALLCONV void Perl_newPROG(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_newRANGE(pTHX_ I32 flags, OP* left, OP* right); +PERL_CALLCONV OP* Perl_newSLICEOP(pTHX_ I32 flags, OP* subscript, OP* listop); +PERL_CALLCONV OP* Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o); +PERL_CALLCONV CV* Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block); +PERL_CALLCONV CV* Perl_newXS(pTHX_ char* name, XSUBADDR_t f, char* filename); +PERL_CALLCONV AV* Perl_newAV(pTHX); +PERL_CALLCONV OP* Perl_newAVREF(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last); +PERL_CALLCONV OP* Perl_newCVREF(pTHX_ I32 flags, OP* o); +PERL_CALLCONV OP* Perl_newGVOP(pTHX_ I32 type, I32 flags, GV* gv); +PERL_CALLCONV GV* Perl_newGVgen(pTHX_ char* pack); +PERL_CALLCONV OP* Perl_newGVREF(pTHX_ I32 type, OP* o); +PERL_CALLCONV OP* Perl_newHVREF(pTHX_ OP* o); +PERL_CALLCONV HV* Perl_newHV(pTHX); +PERL_CALLCONV HV* Perl_newHVhv(pTHX_ HV* hv); +PERL_CALLCONV IO* Perl_newIO(pTHX); +PERL_CALLCONV OP* Perl_newLISTOP(pTHX_ I32 type, I32 flags, OP* first, OP* last); +PERL_CALLCONV OP* Perl_newPMOP(pTHX_ I32 type, I32 flags); +PERL_CALLCONV OP* Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv); +PERL_CALLCONV SV* Perl_newRV(pTHX_ SV* pref); +PERL_CALLCONV SV* Perl_newRV_noinc(pTHX_ SV *sv); +PERL_CALLCONV SV* Perl_newSV(pTHX_ STRLEN len); +PERL_CALLCONV OP* Perl_newSVREF(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv); +PERL_CALLCONV SV* Perl_newSViv(pTHX_ IV i); +PERL_CALLCONV SV* Perl_newSVnv(pTHX_ NV n); +PERL_CALLCONV SV* Perl_newSVpv(pTHX_ const char* s, STRLEN len); +PERL_CALLCONV SV* Perl_newSVpvn(pTHX_ const char* s, STRLEN len); +PERL_CALLCONV SV* Perl_newSVpvf(pTHX_ const char* pat, ...); +PERL_CALLCONV SV* Perl_vnewSVpvf(pTHX_ const char* pat, va_list* args); +PERL_CALLCONV SV* Perl_newSVrv(pTHX_ SV* rv, const char* classname); +PERL_CALLCONV SV* Perl_newSVsv(pTHX_ SV* old); +PERL_CALLCONV OP* Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first); +PERL_CALLCONV OP* Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, I32 whileline, OP* expr, OP* block, OP* cont); +PERL_CALLCONV PERL_SI* Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems); +PERL_CALLCONV PerlIO* Perl_nextargv(pTHX_ GV* gv); +PERL_CALLCONV char* Perl_ninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend); +PERL_CALLCONV OP* Perl_oopsCV(pTHX_ OP* o); +PERL_CALLCONV void Perl_op_free(pTHX_ OP* arg); +PERL_CALLCONV void Perl_package(pTHX_ OP* o); +PERL_CALLCONV PADOFFSET Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype); +PERL_CALLCONV PADOFFSET Perl_pad_allocmy(pTHX_ char* name); +PERL_CALLCONV PADOFFSET Perl_pad_findmy(pTHX_ char* name); +PERL_CALLCONV OP* Perl_oopsAV(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_oopsHV(pTHX_ OP* o); +PERL_CALLCONV void Perl_pad_leavemy(pTHX_ I32 fill); +PERL_CALLCONV SV* Perl_pad_sv(pTHX_ PADOFFSET po); +PERL_CALLCONV void Perl_pad_free(pTHX_ PADOFFSET po); +PERL_CALLCONV void Perl_pad_reset(pTHX); +PERL_CALLCONV void Perl_pad_swipe(pTHX_ PADOFFSET po); +PERL_CALLCONV void Perl_peep(pTHX_ OP* o); #if defined(PERL_OBJECT) -VIRTUAL void perl_construct(void); -VIRTUAL void perl_destruct(void); -VIRTUAL void perl_free(void); -VIRTUAL int perl_run(void); -VIRTUAL int perl_parse(XSINIT_t xsinit, int argc, char** argv, char** env); +PERL_CALLCONV void perl_construct(void); +PERL_CALLCONV void perl_destruct(void); +PERL_CALLCONV void perl_free(void); +PERL_CALLCONV int perl_run(void); +PERL_CALLCONV int perl_parse(XSINIT_t xsinit, int argc, char** argv, char** env); #else -VIRTUAL PerlInterpreter* perl_alloc(void); -VIRTUAL void perl_construct(PerlInterpreter* sv_interp); -VIRTUAL void perl_destruct(PerlInterpreter* sv_interp); -VIRTUAL void perl_free(PerlInterpreter* sv_interp); -VIRTUAL int perl_run(PerlInterpreter* sv_interp); -VIRTUAL int perl_parse(PerlInterpreter* sv_interp, XSINIT_t xsinit, int argc, char** argv, char** env); +PERL_CALLCONV PerlInterpreter* perl_alloc(void); +PERL_CALLCONV void perl_construct(PerlInterpreter* sv_interp); +PERL_CALLCONV void perl_destruct(PerlInterpreter* sv_interp); +PERL_CALLCONV void perl_free(PerlInterpreter* sv_interp); +PERL_CALLCONV int perl_run(PerlInterpreter* sv_interp); +PERL_CALLCONV int perl_parse(PerlInterpreter* sv_interp, XSINIT_t xsinit, int argc, char** argv, char** env); #if defined(USE_THREADS) -VIRTUAL struct perl_thread* Perl_new_struct_thread(pTHX_ struct perl_thread *t); -#endif -#endif -VIRTUAL void Perl_call_atexit(pTHX_ ATEXIT_t fn, void *ptr); -VIRTUAL I32 Perl_call_argv(pTHX_ const char* sub_name, I32 flags, char** argv); -VIRTUAL I32 Perl_call_method(pTHX_ const char* methname, I32 flags); -VIRTUAL I32 Perl_call_pv(pTHX_ const char* sub_name, I32 flags); -VIRTUAL I32 Perl_call_sv(pTHX_ SV* sv, I32 flags); -VIRTUAL SV* Perl_eval_pv(pTHX_ const char* p, I32 croak_on_error); -VIRTUAL I32 Perl_eval_sv(pTHX_ SV* sv, I32 flags); -VIRTUAL SV* Perl_get_sv(pTHX_ const char* name, I32 create); -VIRTUAL AV* Perl_get_av(pTHX_ const char* name, I32 create); -VIRTUAL HV* Perl_get_hv(pTHX_ const char* name, I32 create); -VIRTUAL CV* Perl_get_cv(pTHX_ const char* name, I32 create); -VIRTUAL int Perl_init_i18nl10n(pTHX_ int printwarn); -VIRTUAL int Perl_init_i18nl14n(pTHX_ int printwarn); -VIRTUAL void Perl_new_collate(pTHX_ const char* newcoll); -VIRTUAL void Perl_new_ctype(pTHX_ const char* newctype); -VIRTUAL void Perl_new_numeric(pTHX_ const char* newcoll); -VIRTUAL void Perl_set_numeric_local(pTHX); -VIRTUAL void Perl_set_numeric_radix(pTHX); -VIRTUAL void Perl_set_numeric_standard(pTHX); -VIRTUAL void Perl_require_pv(pTHX_ const char* pv); -VIRTUAL void Perl_pidgone(pTHX_ Pid_t pid, int status); -VIRTUAL void Perl_pmflag(pTHX_ U16* pmfl, int ch); -VIRTUAL OP* Perl_pmruntime(pTHX_ OP* pm, OP* expr, OP* repl); -VIRTUAL OP* Perl_pmtrans(pTHX_ OP* o, OP* expr, OP* repl); -VIRTUAL OP* Perl_pop_return(pTHX); -VIRTUAL void Perl_pop_scope(pTHX); -VIRTUAL OP* Perl_prepend_elem(pTHX_ I32 optype, OP* head, OP* tail); -VIRTUAL void Perl_push_return(pTHX_ OP* o); -VIRTUAL void Perl_push_scope(pTHX); -VIRTUAL OP* Perl_ref(pTHX_ OP* o, I32 type); -VIRTUAL OP* Perl_refkids(pTHX_ OP* o, I32 type); -VIRTUAL void Perl_regdump(pTHX_ regexp* r); -VIRTUAL I32 Perl_pregexec(pTHX_ regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave); -VIRTUAL void Perl_pregfree(pTHX_ struct regexp* r); -VIRTUAL regexp* Perl_pregcomp(pTHX_ char* exp, char* xend, PMOP* pm); -VIRTUAL char* Perl_re_intuit_start(pTHX_ regexp* prog, SV* sv, char* strpos, char* strend, U32 flags, struct re_scream_pos_data_s *data); -VIRTUAL SV* Perl_re_intuit_string(pTHX_ regexp* prog); -VIRTUAL I32 Perl_regexec_flags(pTHX_ regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, void* data, U32 flags); -VIRTUAL regnode* Perl_regnext(pTHX_ regnode* p); -VIRTUAL void Perl_regprop(pTHX_ SV* sv, regnode* o); -VIRTUAL void Perl_repeatcpy(pTHX_ char* to, const char* from, I32 len, I32 count); -VIRTUAL char* Perl_rninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend); -VIRTUAL Sighandler_t Perl_rsignal(pTHX_ int i, Sighandler_t t); -VIRTUAL int Perl_rsignal_restore(pTHX_ int i, Sigsave_t* t); -VIRTUAL int Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* t2); -VIRTUAL Sighandler_t Perl_rsignal_state(pTHX_ int i); -VIRTUAL void Perl_rxres_free(pTHX_ void** rsp); -VIRTUAL void Perl_rxres_restore(pTHX_ void** rsp, REGEXP* prx); -VIRTUAL void Perl_rxres_save(pTHX_ void** rsp, REGEXP* prx); +PERL_CALLCONV struct perl_thread* Perl_new_struct_thread(pTHX_ struct perl_thread *t); +#endif +#endif +PERL_CALLCONV void Perl_call_atexit(pTHX_ ATEXIT_t fn, void *ptr); +PERL_CALLCONV I32 Perl_call_argv(pTHX_ const char* sub_name, I32 flags, char** argv); +PERL_CALLCONV I32 Perl_call_method(pTHX_ const char* methname, I32 flags); +PERL_CALLCONV I32 Perl_call_pv(pTHX_ const char* sub_name, I32 flags); +PERL_CALLCONV I32 Perl_call_sv(pTHX_ SV* sv, I32 flags); +PERL_CALLCONV SV* Perl_eval_pv(pTHX_ const char* p, I32 croak_on_error); +PERL_CALLCONV I32 Perl_eval_sv(pTHX_ SV* sv, I32 flags); +PERL_CALLCONV SV* Perl_get_sv(pTHX_ const char* name, I32 create); +PERL_CALLCONV AV* Perl_get_av(pTHX_ const char* name, I32 create); +PERL_CALLCONV HV* Perl_get_hv(pTHX_ const char* name, I32 create); +PERL_CALLCONV CV* Perl_get_cv(pTHX_ const char* name, I32 create); +PERL_CALLCONV int Perl_init_i18nl10n(pTHX_ int printwarn); +PERL_CALLCONV int Perl_init_i18nl14n(pTHX_ int printwarn); +PERL_CALLCONV void Perl_new_collate(pTHX_ const char* newcoll); +PERL_CALLCONV void Perl_new_ctype(pTHX_ const char* newctype); +PERL_CALLCONV void Perl_new_numeric(pTHX_ const char* newcoll); +PERL_CALLCONV void Perl_set_numeric_local(pTHX); +PERL_CALLCONV void Perl_set_numeric_radix(pTHX); +PERL_CALLCONV void Perl_set_numeric_standard(pTHX); +PERL_CALLCONV void Perl_require_pv(pTHX_ const char* pv); +PERL_CALLCONV void Perl_pidgone(pTHX_ Pid_t pid, int status); +PERL_CALLCONV void Perl_pmflag(pTHX_ U16* pmfl, int ch); +PERL_CALLCONV OP* Perl_pmruntime(pTHX_ OP* pm, OP* expr, OP* repl); +PERL_CALLCONV OP* Perl_pmtrans(pTHX_ OP* o, OP* expr, OP* repl); +PERL_CALLCONV OP* Perl_pop_return(pTHX); +PERL_CALLCONV void Perl_pop_scope(pTHX); +PERL_CALLCONV OP* Perl_prepend_elem(pTHX_ I32 optype, OP* head, OP* tail); +PERL_CALLCONV void Perl_push_return(pTHX_ OP* o); +PERL_CALLCONV void Perl_push_scope(pTHX); +PERL_CALLCONV OP* Perl_ref(pTHX_ OP* o, I32 type); +PERL_CALLCONV OP* Perl_refkids(pTHX_ OP* o, I32 type); +PERL_CALLCONV void Perl_regdump(pTHX_ regexp* r); +PERL_CALLCONV I32 Perl_pregexec(pTHX_ regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave); +PERL_CALLCONV void Perl_pregfree(pTHX_ struct regexp* r); +PERL_CALLCONV regexp* Perl_pregcomp(pTHX_ char* exp, char* xend, PMOP* pm); +PERL_CALLCONV char* Perl_re_intuit_start(pTHX_ regexp* prog, SV* sv, char* strpos, char* strend, U32 flags, struct re_scream_pos_data_s *data); +PERL_CALLCONV SV* Perl_re_intuit_string(pTHX_ regexp* prog); +PERL_CALLCONV I32 Perl_regexec_flags(pTHX_ regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, void* data, U32 flags); +PERL_CALLCONV regnode* Perl_regnext(pTHX_ regnode* p); +PERL_CALLCONV void Perl_regprop(pTHX_ SV* sv, regnode* o); +PERL_CALLCONV void Perl_repeatcpy(pTHX_ char* to, const char* from, I32 len, I32 count); +PERL_CALLCONV char* Perl_rninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend); +PERL_CALLCONV Sighandler_t Perl_rsignal(pTHX_ int i, Sighandler_t t); +PERL_CALLCONV int Perl_rsignal_restore(pTHX_ int i, Sigsave_t* t); +PERL_CALLCONV int Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* t2); +PERL_CALLCONV Sighandler_t Perl_rsignal_state(pTHX_ int i); +PERL_CALLCONV void Perl_rxres_free(pTHX_ void** rsp); +PERL_CALLCONV void Perl_rxres_restore(pTHX_ void** rsp, REGEXP* prx); +PERL_CALLCONV void Perl_rxres_save(pTHX_ void** rsp, REGEXP* prx); #if !defined(HAS_RENAME) -VIRTUAL I32 Perl_same_dirent(pTHX_ char* a, char* b); -#endif -VIRTUAL char* Perl_savepv(pTHX_ const char* sv); -VIRTUAL char* Perl_savepvn(pTHX_ const char* sv, I32 len); -VIRTUAL void Perl_savestack_grow(pTHX); -VIRTUAL void Perl_save_aelem(pTHX_ AV* av, I32 idx, SV **sptr); -VIRTUAL I32 Perl_save_alloc(pTHX_ I32 size, I32 pad); -VIRTUAL void Perl_save_aptr(pTHX_ AV** aptr); -VIRTUAL AV* Perl_save_ary(pTHX_ GV* gv); -VIRTUAL void Perl_save_clearsv(pTHX_ SV** svp); -VIRTUAL void Perl_save_delete(pTHX_ HV* hv, char* key, I32 klen); -VIRTUAL void Perl_save_destructor(pTHX_ DESTRUCTORFUNC_NOCONTEXT_t f, void* p); -VIRTUAL void Perl_save_destructor_x(pTHX_ DESTRUCTORFUNC_t f, void* p); -VIRTUAL void Perl_save_freesv(pTHX_ SV* sv); -VIRTUAL void Perl_save_freeop(pTHX_ OP* o); -VIRTUAL void Perl_save_freepv(pTHX_ char* pv); -VIRTUAL void Perl_save_generic_svref(pTHX_ SV** sptr); -VIRTUAL void Perl_save_gp(pTHX_ GV* gv, I32 empty); -VIRTUAL HV* Perl_save_hash(pTHX_ GV* gv); -VIRTUAL void Perl_save_helem(pTHX_ HV* hv, SV *key, SV **sptr); -VIRTUAL void Perl_save_hints(pTHX); -VIRTUAL void Perl_save_hptr(pTHX_ HV** hptr); -VIRTUAL void Perl_save_I16(pTHX_ I16* intp); -VIRTUAL void Perl_save_I32(pTHX_ I32* intp); -VIRTUAL void Perl_save_int(pTHX_ int* intp); -VIRTUAL void Perl_save_item(pTHX_ SV* item); -VIRTUAL void Perl_save_iv(pTHX_ IV* iv); -VIRTUAL void Perl_save_list(pTHX_ SV** sarg, I32 maxsarg); -VIRTUAL void Perl_save_long(pTHX_ long* longp); -VIRTUAL void Perl_save_nogv(pTHX_ GV* gv); -VIRTUAL void Perl_save_op(pTHX); -VIRTUAL SV* Perl_save_scalar(pTHX_ GV* gv); -VIRTUAL void Perl_save_pptr(pTHX_ char** pptr); -VIRTUAL void Perl_save_re_context(pTHX); -VIRTUAL void Perl_save_sptr(pTHX_ SV** sptr); -VIRTUAL SV* Perl_save_svref(pTHX_ SV** sptr); -VIRTUAL SV** Perl_save_threadsv(pTHX_ PADOFFSET i); -VIRTUAL OP* Perl_sawparens(pTHX_ OP* o); -VIRTUAL OP* Perl_scalar(pTHX_ OP* o); -VIRTUAL OP* Perl_scalarkids(pTHX_ OP* o); -VIRTUAL OP* Perl_scalarseq(pTHX_ OP* o); -VIRTUAL OP* Perl_scalarvoid(pTHX_ OP* o); -VIRTUAL NV Perl_scan_bin(pTHX_ char* start, I32 len, I32* retlen); -VIRTUAL NV Perl_scan_hex(pTHX_ char* start, I32 len, I32* retlen); -VIRTUAL char* Perl_scan_num(pTHX_ char* s); -VIRTUAL NV Perl_scan_oct(pTHX_ char* start, I32 len, I32* retlen); -VIRTUAL OP* Perl_scope(pTHX_ OP* o); -VIRTUAL char* Perl_screaminstr(pTHX_ SV* bigsv, SV* littlesv, I32 start_shift, I32 end_shift, I32 *state, I32 last); +PERL_CALLCONV I32 Perl_same_dirent(pTHX_ char* a, char* b); +#endif +PERL_CALLCONV char* Perl_savepv(pTHX_ const char* sv); +PERL_CALLCONV char* Perl_savepvn(pTHX_ const char* sv, I32 len); +PERL_CALLCONV void Perl_savestack_grow(pTHX); +PERL_CALLCONV void Perl_save_aelem(pTHX_ AV* av, I32 idx, SV **sptr); +PERL_CALLCONV I32 Perl_save_alloc(pTHX_ I32 size, I32 pad); +PERL_CALLCONV void Perl_save_aptr(pTHX_ AV** aptr); +PERL_CALLCONV AV* Perl_save_ary(pTHX_ GV* gv); +PERL_CALLCONV void Perl_save_clearsv(pTHX_ SV** svp); +PERL_CALLCONV void Perl_save_delete(pTHX_ HV* hv, char* key, I32 klen); +PERL_CALLCONV void Perl_save_destructor(pTHX_ DESTRUCTORFUNC_NOCONTEXT_t f, void* p); +PERL_CALLCONV void Perl_save_destructor_x(pTHX_ DESTRUCTORFUNC_t f, void* p); +PERL_CALLCONV void Perl_save_freesv(pTHX_ SV* sv); +PERL_CALLCONV void Perl_save_freeop(pTHX_ OP* o); +PERL_CALLCONV void Perl_save_freepv(pTHX_ char* pv); +PERL_CALLCONV void Perl_save_generic_svref(pTHX_ SV** sptr); +PERL_CALLCONV void Perl_save_gp(pTHX_ GV* gv, I32 empty); +PERL_CALLCONV HV* Perl_save_hash(pTHX_ GV* gv); +PERL_CALLCONV void Perl_save_helem(pTHX_ HV* hv, SV *key, SV **sptr); +PERL_CALLCONV void Perl_save_hints(pTHX); +PERL_CALLCONV void Perl_save_hptr(pTHX_ HV** hptr); +PERL_CALLCONV void Perl_save_I16(pTHX_ I16* intp); +PERL_CALLCONV void Perl_save_I32(pTHX_ I32* intp); +PERL_CALLCONV void Perl_save_int(pTHX_ int* intp); +PERL_CALLCONV void Perl_save_item(pTHX_ SV* item); +PERL_CALLCONV void Perl_save_iv(pTHX_ IV* iv); +PERL_CALLCONV void Perl_save_list(pTHX_ SV** sarg, I32 maxsarg); +PERL_CALLCONV void Perl_save_long(pTHX_ long* longp); +PERL_CALLCONV void Perl_save_nogv(pTHX_ GV* gv); +PERL_CALLCONV void Perl_save_op(pTHX); +PERL_CALLCONV SV* Perl_save_scalar(pTHX_ GV* gv); +PERL_CALLCONV void Perl_save_pptr(pTHX_ char** pptr); +PERL_CALLCONV void Perl_save_re_context(pTHX); +PERL_CALLCONV void Perl_save_sptr(pTHX_ SV** sptr); +PERL_CALLCONV SV* Perl_save_svref(pTHX_ SV** sptr); +PERL_CALLCONV SV** Perl_save_threadsv(pTHX_ PADOFFSET i); +PERL_CALLCONV OP* Perl_sawparens(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_scalar(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_scalarkids(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_scalarseq(pTHX_ OP* o); +PERL_CALLCONV OP* Perl_scalarvoid(pTHX_ OP* o); +PERL_CALLCONV NV Perl_scan_bin(pTHX_ char* start, I32 len, I32* retlen); +PERL_CALLCONV NV Perl_scan_hex(pTHX_ char* start, I32 len, I32* retlen); +PERL_CALLCONV char* Perl_scan_num(pTHX_ char* s); +PERL_CALLCONV NV Perl_scan_oct(pTHX_ char* start, I32 len, I32* retlen); +PERL_CALLCONV OP* Perl_scope(pTHX_ OP* o); +PERL_CALLCONV char* Perl_screaminstr(pTHX_ SV* bigsv, SV* littlesv, I32 start_shift, I32 end_shift, I32 *state, I32 last); #if !defined(VMS) -VIRTUAL I32 Perl_setenv_getix(pTHX_ char* nam); -#endif -VIRTUAL void Perl_setdefout(pTHX_ GV* gv); -VIRTUAL char* Perl_sharepvn(pTHX_ const char* sv, I32 len, U32 hash); -VIRTUAL HEK* Perl_share_hek(pTHX_ const char* sv, I32 len, U32 hash); -VIRTUAL Signal_t Perl_sighandler(int sig); -VIRTUAL SV** Perl_stack_grow(pTHX_ SV** sp, SV**p, int n); -VIRTUAL I32 Perl_start_subparse(pTHX_ I32 is_format, U32 flags); -VIRTUAL void Perl_sub_crush_depth(pTHX_ CV* cv); -VIRTUAL bool Perl_sv_2bool(pTHX_ SV* sv); -VIRTUAL CV* Perl_sv_2cv(pTHX_ SV* sv, HV** st, GV** gvp, I32 lref); -VIRTUAL IO* Perl_sv_2io(pTHX_ SV* sv); -VIRTUAL IV Perl_sv_2iv(pTHX_ SV* sv); -VIRTUAL SV* Perl_sv_2mortal(pTHX_ SV* sv); -VIRTUAL NV Perl_sv_2nv(pTHX_ SV* sv); -VIRTUAL char* Perl_sv_2pv(pTHX_ SV* sv, STRLEN* lp); -VIRTUAL UV Perl_sv_2uv(pTHX_ SV* sv); -VIRTUAL IV Perl_sv_iv(pTHX_ SV* sv); -VIRTUAL UV Perl_sv_uv(pTHX_ SV* sv); -VIRTUAL NV Perl_sv_nv(pTHX_ SV* sv); -VIRTUAL char* Perl_sv_pvn(pTHX_ SV *sv, STRLEN *len); -VIRTUAL I32 Perl_sv_true(pTHX_ SV *sv); -VIRTUAL void Perl_sv_add_arena(pTHX_ char* ptr, U32 size, U32 flags); -VIRTUAL int Perl_sv_backoff(pTHX_ SV* sv); -VIRTUAL SV* Perl_sv_bless(pTHX_ SV* sv, HV* stash); -VIRTUAL void Perl_sv_catpvf(pTHX_ SV* sv, const char* pat, ...); -VIRTUAL void Perl_sv_vcatpvf(pTHX_ SV* sv, const char* pat, va_list* args); -VIRTUAL void Perl_sv_catpv(pTHX_ SV* sv, const char* ptr); -VIRTUAL void Perl_sv_catpvn(pTHX_ SV* sv, const char* ptr, STRLEN len); -VIRTUAL void Perl_sv_catsv(pTHX_ SV* dsv, SV* ssv); -VIRTUAL void Perl_sv_chop(pTHX_ SV* sv, char* ptr); -VIRTUAL void Perl_sv_clean_all(pTHX); -VIRTUAL void Perl_sv_clean_objs(pTHX); -VIRTUAL void Perl_sv_clear(pTHX_ SV* sv); -VIRTUAL I32 Perl_sv_cmp(pTHX_ SV* sv1, SV* sv2); -VIRTUAL I32 Perl_sv_cmp_locale(pTHX_ SV* sv1, SV* sv2); +PERL_CALLCONV I32 Perl_setenv_getix(pTHX_ char* nam); +#endif +PERL_CALLCONV void Perl_setdefout(pTHX_ GV* gv); +PERL_CALLCONV char* Perl_sharepvn(pTHX_ const char* sv, I32 len, U32 hash); +PERL_CALLCONV HEK* Perl_share_hek(pTHX_ const char* sv, I32 len, U32 hash); +PERL_CALLCONV Signal_t Perl_sighandler(int sig); +PERL_CALLCONV SV** Perl_stack_grow(pTHX_ SV** sp, SV**p, int n); +PERL_CALLCONV I32 Perl_start_subparse(pTHX_ I32 is_format, U32 flags); +PERL_CALLCONV void Perl_sub_crush_depth(pTHX_ CV* cv); +PERL_CALLCONV bool Perl_sv_2bool(pTHX_ SV* sv); +PERL_CALLCONV CV* Perl_sv_2cv(pTHX_ SV* sv, HV** st, GV** gvp, I32 lref); +PERL_CALLCONV IO* Perl_sv_2io(pTHX_ SV* sv); +PERL_CALLCONV IV Perl_sv_2iv(pTHX_ SV* sv); +PERL_CALLCONV SV* Perl_sv_2mortal(pTHX_ SV* sv); +PERL_CALLCONV NV Perl_sv_2nv(pTHX_ SV* sv); +PERL_CALLCONV char* Perl_sv_2pv(pTHX_ SV* sv, STRLEN* lp); +PERL_CALLCONV UV Perl_sv_2uv(pTHX_ SV* sv); +PERL_CALLCONV IV Perl_sv_iv(pTHX_ SV* sv); +PERL_CALLCONV UV Perl_sv_uv(pTHX_ SV* sv); +PERL_CALLCONV NV Perl_sv_nv(pTHX_ SV* sv); +PERL_CALLCONV char* Perl_sv_pvn(pTHX_ SV *sv, STRLEN *len); +PERL_CALLCONV I32 Perl_sv_true(pTHX_ SV *sv); +PERL_CALLCONV void Perl_sv_add_arena(pTHX_ char* ptr, U32 size, U32 flags); +PERL_CALLCONV int Perl_sv_backoff(pTHX_ SV* sv); +PERL_CALLCONV SV* Perl_sv_bless(pTHX_ SV* sv, HV* stash); +PERL_CALLCONV void Perl_sv_catpvf(pTHX_ SV* sv, const char* pat, ...); +PERL_CALLCONV void Perl_sv_vcatpvf(pTHX_ SV* sv, const char* pat, va_list* args); +PERL_CALLCONV void Perl_sv_catpv(pTHX_ SV* sv, const char* ptr); +PERL_CALLCONV void Perl_sv_catpvn(pTHX_ SV* sv, const char* ptr, STRLEN len); +PERL_CALLCONV void Perl_sv_catsv(pTHX_ SV* dsv, SV* ssv); +PERL_CALLCONV void Perl_sv_chop(pTHX_ SV* sv, char* ptr); +PERL_CALLCONV void Perl_sv_clean_all(pTHX); +PERL_CALLCONV void Perl_sv_clean_objs(pTHX); +PERL_CALLCONV void Perl_sv_clear(pTHX_ SV* sv); +PERL_CALLCONV I32 Perl_sv_cmp(pTHX_ SV* sv1, SV* sv2); +PERL_CALLCONV I32 Perl_sv_cmp_locale(pTHX_ SV* sv1, SV* sv2); #if defined(USE_LOCALE_COLLATE) -VIRTUAL char* Perl_sv_collxfrm(pTHX_ SV* sv, STRLEN* nxp); -#endif -VIRTUAL OP* Perl_sv_compile_2op(pTHX_ SV* sv, OP** startp, char* code, AV** avp); -VIRTUAL void Perl_sv_dec(pTHX_ SV* sv); -VIRTUAL void Perl_sv_dump(pTHX_ SV* sv); -VIRTUAL bool Perl_sv_derived_from(pTHX_ SV* sv, const char* name); -VIRTUAL I32 Perl_sv_eq(pTHX_ SV* sv1, SV* sv2); -VIRTUAL void Perl_sv_free(pTHX_ SV* sv); -VIRTUAL void Perl_sv_free_arenas(pTHX); -VIRTUAL char* Perl_sv_gets(pTHX_ SV* sv, PerlIO* fp, I32 append); -VIRTUAL char* Perl_sv_grow(pTHX_ SV* sv, STRLEN newlen); -VIRTUAL void Perl_sv_inc(pTHX_ SV* sv); -VIRTUAL void Perl_sv_insert(pTHX_ SV* bigsv, STRLEN offset, STRLEN len, char* little, STRLEN littlelen); -VIRTUAL int Perl_sv_isa(pTHX_ SV* sv, const char* name); -VIRTUAL int Perl_sv_isobject(pTHX_ SV* sv); -VIRTUAL STRLEN Perl_sv_len(pTHX_ SV* sv); -VIRTUAL STRLEN Perl_sv_len_utf8(pTHX_ SV* sv); -VIRTUAL void Perl_sv_magic(pTHX_ SV* sv, SV* obj, int how, const char* name, I32 namlen); -VIRTUAL SV* Perl_sv_mortalcopy(pTHX_ SV* oldsv); -VIRTUAL SV* Perl_sv_newmortal(pTHX); -VIRTUAL SV* Perl_sv_newref(pTHX_ SV* sv); -VIRTUAL char* Perl_sv_peek(pTHX_ SV* sv); -VIRTUAL void Perl_sv_pos_u2b(pTHX_ SV* sv, I32* offsetp, I32* lenp); -VIRTUAL void Perl_sv_pos_b2u(pTHX_ SV* sv, I32* offsetp); -VIRTUAL char* Perl_sv_pvn_force(pTHX_ SV* sv, STRLEN* lp); -VIRTUAL char* Perl_sv_reftype(pTHX_ SV* sv, int ob); -VIRTUAL void Perl_sv_replace(pTHX_ SV* sv, SV* nsv); -VIRTUAL void Perl_sv_report_used(pTHX); -VIRTUAL void Perl_sv_reset(pTHX_ char* s, HV* stash); -VIRTUAL void Perl_sv_setpvf(pTHX_ SV* sv, const char* pat, ...); -VIRTUAL void Perl_sv_vsetpvf(pTHX_ SV* sv, const char* pat, va_list* args); -VIRTUAL void Perl_sv_setiv(pTHX_ SV* sv, IV num); -VIRTUAL void Perl_sv_setpviv(pTHX_ SV* sv, IV num); -VIRTUAL void Perl_sv_setuv(pTHX_ SV* sv, UV num); -VIRTUAL void Perl_sv_setnv(pTHX_ SV* sv, NV num); -VIRTUAL SV* Perl_sv_setref_iv(pTHX_ SV* rv, const char* classname, IV iv); -VIRTUAL SV* Perl_sv_setref_nv(pTHX_ SV* rv, const char* classname, NV nv); -VIRTUAL SV* Perl_sv_setref_pv(pTHX_ SV* rv, const char* classname, void* pv); -VIRTUAL SV* Perl_sv_setref_pvn(pTHX_ SV* rv, const char* classname, char* pv, STRLEN n); -VIRTUAL void Perl_sv_setpv(pTHX_ SV* sv, const char* ptr); -VIRTUAL void Perl_sv_setpvn(pTHX_ SV* sv, const char* ptr, STRLEN len); -VIRTUAL void Perl_sv_setsv(pTHX_ SV* dsv, SV* ssv); -VIRTUAL void Perl_sv_taint(pTHX_ SV* sv); -VIRTUAL bool Perl_sv_tainted(pTHX_ SV* sv); -VIRTUAL int Perl_sv_unmagic(pTHX_ SV* sv, int type); -VIRTUAL void Perl_sv_unref(pTHX_ SV* sv); -VIRTUAL void Perl_sv_untaint(pTHX_ SV* sv); -VIRTUAL bool Perl_sv_upgrade(pTHX_ SV* sv, U32 mt); -VIRTUAL void Perl_sv_usepvn(pTHX_ SV* sv, char* ptr, STRLEN len); -VIRTUAL void Perl_sv_vcatpvfn(pTHX_ SV* sv, const char* pat, STRLEN patlen, va_list* args, SV** svargs, I32 svmax, bool *maybe_tainted); -VIRTUAL void Perl_sv_vsetpvfn(pTHX_ SV* sv, const char* pat, STRLEN patlen, va_list* args, SV** svargs, I32 svmax, bool *maybe_tainted); -VIRTUAL SV* Perl_swash_init(pTHX_ char* pkg, char* name, SV* listsv, I32 minbits, I32 none); -VIRTUAL UV Perl_swash_fetch(pTHX_ SV *sv, U8 *ptr); -VIRTUAL void Perl_taint_env(pTHX); -VIRTUAL void Perl_taint_proper(pTHX_ const char* f, const char* s); -VIRTUAL UV Perl_to_utf8_lower(pTHX_ U8 *p); -VIRTUAL UV Perl_to_utf8_upper(pTHX_ U8 *p); -VIRTUAL UV Perl_to_utf8_title(pTHX_ U8 *p); +PERL_CALLCONV char* Perl_sv_collxfrm(pTHX_ SV* sv, STRLEN* nxp); +#endif +PERL_CALLCONV OP* Perl_sv_compile_2op(pTHX_ SV* sv, OP** startp, char* code, AV** avp); +PERL_CALLCONV void Perl_sv_dec(pTHX_ SV* sv); +PERL_CALLCONV void Perl_sv_dump(pTHX_ SV* sv); +PERL_CALLCONV bool Perl_sv_derived_from(pTHX_ SV* sv, const char* name); +PERL_CALLCONV I32 Perl_sv_eq(pTHX_ SV* sv1, SV* sv2); +PERL_CALLCONV void Perl_sv_free(pTHX_ SV* sv); +PERL_CALLCONV void Perl_sv_free_arenas(pTHX); +PERL_CALLCONV char* Perl_sv_gets(pTHX_ SV* sv, PerlIO* fp, I32 append); +PERL_CALLCONV char* Perl_sv_grow(pTHX_ SV* sv, STRLEN newlen); +PERL_CALLCONV void Perl_sv_inc(pTHX_ SV* sv); +PERL_CALLCONV void Perl_sv_insert(pTHX_ SV* bigsv, STRLEN offset, STRLEN len, char* little, STRLEN littlelen); +PERL_CALLCONV int Perl_sv_isa(pTHX_ SV* sv, const char* name); +PERL_CALLCONV int Perl_sv_isobject(pTHX_ SV* sv); +PERL_CALLCONV STRLEN Perl_sv_len(pTHX_ SV* sv); +PERL_CALLCONV STRLEN Perl_sv_len_utf8(pTHX_ SV* sv); +PERL_CALLCONV void Perl_sv_magic(pTHX_ SV* sv, SV* obj, int how, const char* name, I32 namlen); +PERL_CALLCONV SV* Perl_sv_mortalcopy(pTHX_ SV* oldsv); +PERL_CALLCONV SV* Perl_sv_newmortal(pTHX); +PERL_CALLCONV SV* Perl_sv_newref(pTHX_ SV* sv); +PERL_CALLCONV char* Perl_sv_peek(pTHX_ SV* sv); +PERL_CALLCONV void Perl_sv_pos_u2b(pTHX_ SV* sv, I32* offsetp, I32* lenp); +PERL_CALLCONV void Perl_sv_pos_b2u(pTHX_ SV* sv, I32* offsetp); +PERL_CALLCONV char* Perl_sv_pvn_force(pTHX_ SV* sv, STRLEN* lp); +PERL_CALLCONV char* Perl_sv_reftype(pTHX_ SV* sv, int ob); +PERL_CALLCONV void Perl_sv_replace(pTHX_ SV* sv, SV* nsv); +PERL_CALLCONV void Perl_sv_report_used(pTHX); +PERL_CALLCONV void Perl_sv_reset(pTHX_ char* s, HV* stash); +PERL_CALLCONV void Perl_sv_setpvf(pTHX_ SV* sv, const char* pat, ...); +PERL_CALLCONV void Perl_sv_vsetpvf(pTHX_ SV* sv, const char* pat, va_list* args); +PERL_CALLCONV void Perl_sv_setiv(pTHX_ SV* sv, IV num); +PERL_CALLCONV void Perl_sv_setpviv(pTHX_ SV* sv, IV num); +PERL_CALLCONV void Perl_sv_setuv(pTHX_ SV* sv, UV num); +PERL_CALLCONV void Perl_sv_setnv(pTHX_ SV* sv, NV num); +PERL_CALLCONV SV* Perl_sv_setref_iv(pTHX_ SV* rv, const char* classname, IV iv); +PERL_CALLCONV SV* Perl_sv_setref_nv(pTHX_ SV* rv, const char* classname, NV nv); +PERL_CALLCONV SV* Perl_sv_setref_pv(pTHX_ SV* rv, const char* classname, void* pv); +PERL_CALLCONV SV* Perl_sv_setref_pvn(pTHX_ SV* rv, const char* classname, char* pv, STRLEN n); +PERL_CALLCONV void Perl_sv_setpv(pTHX_ SV* sv, const char* ptr); +PERL_CALLCONV void Perl_sv_setpvn(pTHX_ SV* sv, const char* ptr, STRLEN len); +PERL_CALLCONV void Perl_sv_setsv(pTHX_ SV* dsv, SV* ssv); +PERL_CALLCONV void Perl_sv_taint(pTHX_ SV* sv); +PERL_CALLCONV bool Perl_sv_tainted(pTHX_ SV* sv); +PERL_CALLCONV int Perl_sv_unmagic(pTHX_ SV* sv, int type); +PERL_CALLCONV void Perl_sv_unref(pTHX_ SV* sv); +PERL_CALLCONV void Perl_sv_untaint(pTHX_ SV* sv); +PERL_CALLCONV bool Perl_sv_upgrade(pTHX_ SV* sv, U32 mt); +PERL_CALLCONV void Perl_sv_usepvn(pTHX_ SV* sv, char* ptr, STRLEN len); +PERL_CALLCONV void Perl_sv_vcatpvfn(pTHX_ SV* sv, const char* pat, STRLEN patlen, va_list* args, SV** svargs, I32 svmax, bool *maybe_tainted); +PERL_CALLCONV void Perl_sv_vsetpvfn(pTHX_ SV* sv, const char* pat, STRLEN patlen, va_list* args, SV** svargs, I32 svmax, bool *maybe_tainted); +PERL_CALLCONV SV* Perl_swash_init(pTHX_ char* pkg, char* name, SV* listsv, I32 minbits, I32 none); +PERL_CALLCONV UV Perl_swash_fetch(pTHX_ SV *sv, U8 *ptr); +PERL_CALLCONV void Perl_taint_env(pTHX); +PERL_CALLCONV void Perl_taint_proper(pTHX_ const char* f, const char* s); +PERL_CALLCONV UV Perl_to_utf8_lower(pTHX_ U8 *p); +PERL_CALLCONV UV Perl_to_utf8_upper(pTHX_ U8 *p); +PERL_CALLCONV UV Perl_to_utf8_title(pTHX_ U8 *p); #if defined(UNLINK_ALL_VERSIONS) -VIRTUAL I32 Perl_unlnk(pTHX_ char* f); +PERL_CALLCONV I32 Perl_unlnk(pTHX_ char* f); #endif #if defined(USE_THREADS) -VIRTUAL void Perl_unlock_condpair(pTHX_ void* svv); -#endif -VIRTUAL void Perl_unsharepvn(pTHX_ const char* sv, I32 len, U32 hash); -VIRTUAL void Perl_unshare_hek(pTHX_ HEK* hek); -VIRTUAL void Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* id, OP* arg); -VIRTUAL U8* Perl_utf16_to_utf8(pTHX_ U16* p, U8 *d, I32 bytelen); -VIRTUAL U8* Perl_utf16_to_utf8_reversed(pTHX_ U16* p, U8 *d, I32 bytelen); -VIRTUAL I32 Perl_utf8_distance(pTHX_ U8 *a, U8 *b); -VIRTUAL U8* Perl_utf8_hop(pTHX_ U8 *s, I32 off); -VIRTUAL UV Perl_utf8_to_uv(pTHX_ U8 *s, I32* retlen); -VIRTUAL U8* Perl_uv_to_utf8(pTHX_ U8 *d, UV uv); -VIRTUAL void Perl_vivify_defelem(pTHX_ SV* sv); -VIRTUAL void Perl_vivify_ref(pTHX_ SV* sv, U32 to_what); -VIRTUAL I32 Perl_wait4pid(pTHX_ Pid_t pid, int* statusp, int flags); -VIRTUAL void Perl_warn(pTHX_ const char* pat, ...); -VIRTUAL void Perl_vwarn(pTHX_ const char* pat, va_list* args); -VIRTUAL void Perl_warner(pTHX_ U32 err, const char* pat, ...); -VIRTUAL void Perl_vwarner(pTHX_ U32 err, const char* pat, va_list* args); -VIRTUAL void Perl_watch(pTHX_ char** addr); -VIRTUAL I32 Perl_whichsig(pTHX_ char* sig); -VIRTUAL int Perl_yyerror(pTHX_ char* s); +PERL_CALLCONV void Perl_unlock_condpair(pTHX_ void* svv); +#endif +PERL_CALLCONV void Perl_unsharepvn(pTHX_ const char* sv, I32 len, U32 hash); +PERL_CALLCONV void Perl_unshare_hek(pTHX_ HEK* hek); +PERL_CALLCONV void Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* id, OP* arg); +PERL_CALLCONV U8* Perl_utf16_to_utf8(pTHX_ U16* p, U8 *d, I32 bytelen); +PERL_CALLCONV U8* Perl_utf16_to_utf8_reversed(pTHX_ U16* p, U8 *d, I32 bytelen); +PERL_CALLCONV I32 Perl_utf8_distance(pTHX_ U8 *a, U8 *b); +PERL_CALLCONV U8* Perl_utf8_hop(pTHX_ U8 *s, I32 off); +PERL_CALLCONV UV Perl_utf8_to_uv(pTHX_ U8 *s, I32* retlen); +PERL_CALLCONV U8* Perl_uv_to_utf8(pTHX_ U8 *d, UV uv); +PERL_CALLCONV void Perl_vivify_defelem(pTHX_ SV* sv); +PERL_CALLCONV void Perl_vivify_ref(pTHX_ SV* sv, U32 to_what); +PERL_CALLCONV I32 Perl_wait4pid(pTHX_ Pid_t pid, int* statusp, int flags); +PERL_CALLCONV void Perl_warn(pTHX_ const char* pat, ...); +PERL_CALLCONV void Perl_vwarn(pTHX_ const char* pat, va_list* args); +PERL_CALLCONV void Perl_warner(pTHX_ U32 err, const char* pat, ...); +PERL_CALLCONV void Perl_vwarner(pTHX_ U32 err, const char* pat, va_list* args); +PERL_CALLCONV void Perl_watch(pTHX_ char** addr); +PERL_CALLCONV I32 Perl_whichsig(pTHX_ char* sig); +PERL_CALLCONV int Perl_yyerror(pTHX_ char* s); #if defined(USE_PURE_BISON) -VIRTUAL int Perl_yylex(pTHX_ YYSTYPE *lvalp, int *lcharp); +PERL_CALLCONV int Perl_yylex(pTHX_ YYSTYPE *lvalp, int *lcharp); #else -VIRTUAL int Perl_yylex(pTHX); +PERL_CALLCONV int Perl_yylex(pTHX); #endif -VIRTUAL int Perl_yyparse(pTHX); -VIRTUAL int Perl_yywarn(pTHX_ char* s); +PERL_CALLCONV int Perl_yyparse(pTHX); +PERL_CALLCONV int Perl_yywarn(pTHX_ char* s); #if defined(MYMALLOC) -VIRTUAL void Perl_dump_mstats(pTHX_ char* s); -VIRTUAL Malloc_t Perl_malloc(MEM_SIZE nbytes); -VIRTUAL Malloc_t Perl_calloc(MEM_SIZE elements, MEM_SIZE size); -VIRTUAL Malloc_t Perl_realloc(Malloc_t where, MEM_SIZE nbytes); -VIRTUAL Free_t Perl_mfree(Malloc_t where); -#endif -VIRTUAL Malloc_t Perl_safesysmalloc(MEM_SIZE nbytes); -VIRTUAL Malloc_t Perl_safesyscalloc(MEM_SIZE elements, MEM_SIZE size); -VIRTUAL Malloc_t Perl_safesysrealloc(Malloc_t where, MEM_SIZE nbytes); -VIRTUAL Free_t Perl_safesysfree(Malloc_t where); +PERL_CALLCONV void Perl_dump_mstats(pTHX_ char* s); +PERL_CALLCONV Malloc_t Perl_malloc(MEM_SIZE nbytes); +PERL_CALLCONV Malloc_t Perl_calloc(MEM_SIZE elements, MEM_SIZE size); +PERL_CALLCONV Malloc_t Perl_realloc(Malloc_t where, MEM_SIZE nbytes); +PERL_CALLCONV Free_t Perl_mfree(Malloc_t where); +#endif +PERL_CALLCONV Malloc_t Perl_safesysmalloc(MEM_SIZE nbytes); +PERL_CALLCONV Malloc_t Perl_safesyscalloc(MEM_SIZE elements, MEM_SIZE size); +PERL_CALLCONV Malloc_t Perl_safesysrealloc(Malloc_t where, MEM_SIZE nbytes); +PERL_CALLCONV Free_t Perl_safesysfree(Malloc_t where); #if defined(LEAKTEST) -VIRTUAL Malloc_t Perl_safexmalloc(I32 x, MEM_SIZE size); -VIRTUAL Malloc_t Perl_safexcalloc(I32 x, MEM_SIZE elements, MEM_SIZE size); -VIRTUAL Malloc_t Perl_safexrealloc(Malloc_t where, MEM_SIZE size); -VIRTUAL void Perl_safexfree(Malloc_t where); +PERL_CALLCONV Malloc_t Perl_safexmalloc(I32 x, MEM_SIZE size); +PERL_CALLCONV Malloc_t Perl_safexcalloc(I32 x, MEM_SIZE elements, MEM_SIZE size); +PERL_CALLCONV Malloc_t Perl_safexrealloc(Malloc_t where, MEM_SIZE size); +PERL_CALLCONV void Perl_safexfree(Malloc_t where); #endif #if defined(PERL_GLOBAL_STRUCT) -VIRTUAL struct perl_vars * Perl_GetVars(pTHX); -#endif -VIRTUAL int Perl_runops_standard(pTHX); -VIRTUAL int Perl_runops_debug(pTHX); -VIRTUAL void Perl_sv_catpvf_mg(pTHX_ SV *sv, const char* pat, ...); -VIRTUAL void Perl_sv_vcatpvf_mg(pTHX_ SV* sv, const char* pat, va_list* args); -VIRTUAL void Perl_sv_catpv_mg(pTHX_ SV *sv, const char *ptr); -VIRTUAL void Perl_sv_catpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len); -VIRTUAL void Perl_sv_catsv_mg(pTHX_ SV *dstr, SV *sstr); -VIRTUAL void Perl_sv_setpvf_mg(pTHX_ SV *sv, const char* pat, ...); -VIRTUAL void Perl_sv_vsetpvf_mg(pTHX_ SV* sv, const char* pat, va_list* args); -VIRTUAL void Perl_sv_setiv_mg(pTHX_ SV *sv, IV i); -VIRTUAL void Perl_sv_setpviv_mg(pTHX_ SV *sv, IV iv); -VIRTUAL void Perl_sv_setuv_mg(pTHX_ SV *sv, UV u); -VIRTUAL void Perl_sv_setnv_mg(pTHX_ SV *sv, NV num); -VIRTUAL void Perl_sv_setpv_mg(pTHX_ SV *sv, const char *ptr); -VIRTUAL void Perl_sv_setpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len); -VIRTUAL void Perl_sv_setsv_mg(pTHX_ SV *dstr, SV *sstr); -VIRTUAL void Perl_sv_usepvn_mg(pTHX_ SV *sv, char *ptr, STRLEN len); -VIRTUAL MGVTBL* Perl_get_vtbl(pTHX_ int vtbl_id); -VIRTUAL char* Perl_pv_display(pTHX_ SV *sv, char *pv, STRLEN cur, STRLEN len, STRLEN pvlim); -VIRTUAL void Perl_dump_indent(pTHX_ I32 level, PerlIO *file, const char* pat, ...); -VIRTUAL void Perl_dump_vindent(pTHX_ I32 level, PerlIO *file, const char* pat, va_list *args); -VIRTUAL void Perl_do_gv_dump(pTHX_ I32 level, PerlIO *file, char *name, GV *sv); -VIRTUAL void Perl_do_gvgv_dump(pTHX_ I32 level, PerlIO *file, char *name, GV *sv); -VIRTUAL void Perl_do_hv_dump(pTHX_ I32 level, PerlIO *file, char *name, HV *sv); -VIRTUAL void Perl_do_magic_dump(pTHX_ I32 level, PerlIO *file, MAGIC *mg, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim); -VIRTUAL void Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, OP *o); -VIRTUAL void Perl_do_pmop_dump(pTHX_ I32 level, PerlIO *file, PMOP *pm); -VIRTUAL void Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim); -VIRTUAL void Perl_magic_dump(pTHX_ MAGIC *mg); -VIRTUAL void* Perl_default_protect(pTHX_ volatile JMPENV *je, int *excpt, protect_body_t body, ...); -VIRTUAL void* Perl_vdefault_protect(pTHX_ volatile JMPENV *je, int *excpt, protect_body_t body, va_list *args); -VIRTUAL void Perl_reginitcolors(pTHX); -VIRTUAL char* Perl_sv_2pv_nolen(pTHX_ SV* sv); -VIRTUAL char* Perl_sv_pv(pTHX_ SV *sv); -VIRTUAL void Perl_sv_force_normal(pTHX_ SV *sv); -VIRTUAL void Perl_tmps_grow(pTHX_ I32 n); -VIRTUAL SV* Perl_sv_rvweaken(pTHX_ SV *sv); -VIRTUAL int Perl_magic_killbackrefs(pTHX_ SV *sv, MAGIC *mg); -VIRTUAL OP* Perl_newANONATTRSUB(pTHX_ I32 floor, OP *proto, OP *attrs, OP *block); -VIRTUAL CV* Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block); -VIRTUAL void Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block); -VIRTUAL OP * Perl_my_attrs(pTHX_ OP *o, OP *attrs); -VIRTUAL void Perl_boot_core_xsutils(pTHX); +PERL_CALLCONV struct perl_vars * Perl_GetVars(pTHX); +#endif +PERL_CALLCONV int Perl_runops_standard(pTHX); +PERL_CALLCONV int Perl_runops_debug(pTHX); +PERL_CALLCONV void Perl_sv_catpvf_mg(pTHX_ SV *sv, const char* pat, ...); +PERL_CALLCONV void Perl_sv_vcatpvf_mg(pTHX_ SV* sv, const char* pat, va_list* args); +PERL_CALLCONV void Perl_sv_catpv_mg(pTHX_ SV *sv, const char *ptr); +PERL_CALLCONV void Perl_sv_catpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len); +PERL_CALLCONV void Perl_sv_catsv_mg(pTHX_ SV *dstr, SV *sstr); +PERL_CALLCONV void Perl_sv_setpvf_mg(pTHX_ SV *sv, const char* pat, ...); +PERL_CALLCONV void Perl_sv_vsetpvf_mg(pTHX_ SV* sv, const char* pat, va_list* args); +PERL_CALLCONV void Perl_sv_setiv_mg(pTHX_ SV *sv, IV i); +PERL_CALLCONV void Perl_sv_setpviv_mg(pTHX_ SV *sv, IV iv); +PERL_CALLCONV void Perl_sv_setuv_mg(pTHX_ SV *sv, UV u); +PERL_CALLCONV void Perl_sv_setnv_mg(pTHX_ SV *sv, NV num); +PERL_CALLCONV void Perl_sv_setpv_mg(pTHX_ SV *sv, const char *ptr); +PERL_CALLCONV void Perl_sv_setpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len); +PERL_CALLCONV void Perl_sv_setsv_mg(pTHX_ SV *dstr, SV *sstr); +PERL_CALLCONV void Perl_sv_usepvn_mg(pTHX_ SV *sv, char *ptr, STRLEN len); +PERL_CALLCONV MGVTBL* Perl_get_vtbl(pTHX_ int vtbl_id); +PERL_CALLCONV char* Perl_pv_display(pTHX_ SV *sv, char *pv, STRLEN cur, STRLEN len, STRLEN pvlim); +PERL_CALLCONV void Perl_dump_indent(pTHX_ I32 level, PerlIO *file, const char* pat, ...); +PERL_CALLCONV void Perl_dump_vindent(pTHX_ I32 level, PerlIO *file, const char* pat, va_list *args); +PERL_CALLCONV void Perl_do_gv_dump(pTHX_ I32 level, PerlIO *file, char *name, GV *sv); +PERL_CALLCONV void Perl_do_gvgv_dump(pTHX_ I32 level, PerlIO *file, char *name, GV *sv); +PERL_CALLCONV void Perl_do_hv_dump(pTHX_ I32 level, PerlIO *file, char *name, HV *sv); +PERL_CALLCONV void Perl_do_magic_dump(pTHX_ I32 level, PerlIO *file, MAGIC *mg, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim); +PERL_CALLCONV void Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, OP *o); +PERL_CALLCONV void Perl_do_pmop_dump(pTHX_ I32 level, PerlIO *file, PMOP *pm); +PERL_CALLCONV void Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim); +PERL_CALLCONV void Perl_magic_dump(pTHX_ MAGIC *mg); +PERL_CALLCONV void* Perl_default_protect(pTHX_ volatile JMPENV *je, int *excpt, protect_body_t body, ...); +PERL_CALLCONV void* Perl_vdefault_protect(pTHX_ volatile JMPENV *je, int *excpt, protect_body_t body, va_list *args); +PERL_CALLCONV void Perl_reginitcolors(pTHX); +PERL_CALLCONV char* Perl_sv_2pv_nolen(pTHX_ SV* sv); +PERL_CALLCONV char* Perl_sv_pv(pTHX_ SV *sv); +PERL_CALLCONV void Perl_sv_force_normal(pTHX_ SV *sv); +PERL_CALLCONV void Perl_tmps_grow(pTHX_ I32 n); +PERL_CALLCONV SV* Perl_sv_rvweaken(pTHX_ SV *sv); +PERL_CALLCONV int Perl_magic_killbackrefs(pTHX_ SV *sv, MAGIC *mg); +PERL_CALLCONV OP* Perl_newANONATTRSUB(pTHX_ I32 floor, OP *proto, OP *attrs, OP *block); +PERL_CALLCONV CV* Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block); +PERL_CALLCONV void Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block); +PERL_CALLCONV OP * Perl_my_attrs(pTHX_ OP *o, OP *attrs); +PERL_CALLCONV void Perl_boot_core_xsutils(pTHX); #if defined(PERL_OBJECT) protected: #endif @@ -3541,7 +3541,6 @@ Perl_save_re_context(pTHX) } #ifdef PERL_OBJECT -#define NO_XSLOCKS #include "XSUB.h" #undef this #define this pPerl @@ -3556,7 +3556,6 @@ S_reghopmaybe(pTHX_ U8* s, I32 off) } #ifdef PERL_OBJECT -#define NO_XSLOCKS #include "XSUB.h" #endif @@ -279,9 +279,14 @@ Perl_save_gp(pTHX_ GV *gv, I32 empty) if (empty) { register GP *gp; + Newz(602, gp, 1, GP); + if (GvCVu(gv)) PL_sub_generation++; /* taking a method out of circulation */ - Newz(602, gp, 1, GP); + if (GvIOp(gv) && (IoFLAGS(GvIOp(gv)) & IOf_ARGV)) { + gp->gp_io = newIO(); + IoFLAGS(gp->gp_io) |= IOf_ARGV|IOf_START; + } GvGP(gv) = gp_ref(gp); GvSV(gv) = NEWSV(72,0); GvLINE(gv) = PL_curcop->cop_line; @@ -5588,7 +5588,6 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV #ifdef PERL_OBJECT -#define NO_XSLOCKS #include "XSUB.h" #endif diff --git a/t/io/nargv.t b/t/io/nargv.t new file mode 100755 index 0000000000..f32e40d6ee --- /dev/null +++ b/t/io/nargv.t @@ -0,0 +1,63 @@ +#!./perl + +print "1..5\n"; + +my $j = 1; +for $i ( 1,2,5,4,3 ) { + $file = mkfiles($i); + open(FH, "> $file") || die "can't create $file: $!"; + print FH "not ok " . $j++ . "\n"; + close(FH) || die "Can't close $file: $!"; +} + + +{ + local *ARGV; + local $^I = '.bak'; + local $_; + @ARGV = mkfiles(1..3); + $n = 0; + while (<>) { + print STDOUT "# initial \@ARGV: [@ARGV]\n"; + if ($n++ == 2) { + other(); + } + show(); + } +} + +$^I = undef; +@ARGV = mkfiles(1..3); +$n = 0; +while (<>) { + print STDOUT "#final \@ARGV: [@ARGV]\n"; + if ($n++ == 2) { + other(); + } + show(); +} + +sub show { + #warn "$ARGV: $_"; + s/^not //; + print; +} + +sub other { + print STDOUT "# Calling other\n"; + local *ARGV; + local *ARGVOUT; + local $_; + @ARGV = mkfiles(5, 4); + while (<>) { + print STDOUT "# inner \@ARGV: [@ARGV]\n"; + show(); + } +} + +sub mkfiles { + my @files = map { "scratch.$_" } @_; + return wantarray ? @files : $files[-1]; +} + +END { unlink map { ($_, "$_.bak") } mkfiles(1..5) } @@ -482,9 +482,9 @@ S_incline(pTHX_ char *s) ch = *t; *t = '\0'; if (t - s > 0) - PL_curcop->cop_filegv = gv_fetchfile(s); + CopFILEGV_set(PL_curcop, gv_fetchfile(s)); else - PL_curcop->cop_filegv = gv_fetchfile(PL_origfilename); + CopFILEGV_set(PL_curcop, gv_fetchfile(PL_origfilename)); *t = ch; PL_curcop->cop_line = atoi(n)-1; } @@ -598,7 +598,7 @@ S_skipspace(pTHX_ register char *s) sv_upgrade(sv, SVt_PVMG); sv_setpvn(sv,PL_bufptr,PL_bufend-PL_bufptr); - av_store(GvAV(PL_curcop->cop_filegv),(I32)PL_curcop->cop_line,sv); + av_store(CopFILEAV(PL_curcop),(I32)PL_curcop->cop_line,sv); } } } @@ -2338,7 +2338,7 @@ Perl_yylex(pTHX) sv_upgrade(sv, SVt_PVMG); sv_setsv(sv,PL_linestr); - av_store(GvAV(PL_curcop->cop_filegv),(I32)PL_curcop->cop_line,sv); + av_store(CopFILEAV(PL_curcop),(I32)PL_curcop->cop_line,sv); } goto retry; } @@ -2387,7 +2387,7 @@ Perl_yylex(pTHX) sv_upgrade(sv, SVt_PVMG); sv_setsv(sv,PL_linestr); - av_store(GvAV(PL_curcop->cop_filegv),(I32)PL_curcop->cop_line,sv); + av_store(CopFILEAV(PL_curcop),(I32)PL_curcop->cop_line,sv); } PL_bufend = SvPVX(PL_linestr) + SvCUR(PL_linestr); if (PL_curcop->cop_line == 1) { @@ -2428,7 +2428,7 @@ Perl_yylex(pTHX) */ SV *x = GvSV(gv_fetchpv("\030", TRUE, SVt_PV)); assert(SvPOK(x) || SvGMAGICAL(x)); - if (sv_eq(x, GvSV(PL_curcop->cop_filegv))) { + if (sv_eq(x, CopFILESV(PL_curcop))) { sv_setpvn(x, ipath, ipathend - ipath); SvSETMAGIC(x); } @@ -3737,7 +3737,7 @@ Perl_yylex(pTHX) case KEY___FILE__: yylval.opval = (OP*)newSVOP(OP_CONST, 0, - newSVsv(GvSV(PL_curcop->cop_filegv))); + newSVsv(CopFILESV(PL_curcop))); TERM(THING); case KEY___LINE__: @@ -6128,8 +6128,7 @@ S_scan_heredoc(pTHX_ register char *s) sv_upgrade(sv, SVt_PVMG); sv_setsv(sv,PL_linestr); - av_store(GvAV(PL_curcop->cop_filegv), - (I32)PL_curcop->cop_line,sv); + av_store(CopFILEAV(PL_curcop), (I32)PL_curcop->cop_line,sv); } if (*s == term && memEQ(s,PL_tokenbuf,len)) { s = PL_bufend - 1; @@ -6452,8 +6451,7 @@ S_scan_str(pTHX_ char *start, int keep_quoted, int keep_delims) sv_upgrade(sv, SVt_PVMG); sv_setsv(sv,PL_linestr); - av_store(GvAV(PL_curcop->cop_filegv), - (I32)PL_curcop->cop_line, sv); + av_store(CopFILEAV(PL_curcop), (I32)PL_curcop->cop_line, sv); } /* having changed the buffer, we must update PL_bufend */ @@ -6996,7 +6994,7 @@ Perl_yyerror(pTHX_ char *s) } msg = sv_2mortal(newSVpv(s, 0)); Perl_sv_catpvf(aTHX_ msg, " at %_ line %"IVdf", ", - GvSV(PL_curcop->cop_filegv), (IV)PL_curcop->cop_line); + CopFILESV(PL_curcop), (IV)PL_curcop->cop_line); if (context) Perl_sv_catpvf(aTHX_ msg, "near \"%.*s\"\n", contlen, context); else @@ -7013,7 +7011,7 @@ Perl_yyerror(pTHX_ char *s) else qerror(msg); if (PL_error_count >= 10) - Perl_croak(aTHX_ "%_ has too many errors.\n", GvSV(PL_curcop->cop_filegv)); + Perl_croak(aTHX_ "%_ has too many errors.\n", CopFILESV(PL_curcop)); PL_in_my = 0; PL_in_my_stash = Nullhv; return 0; @@ -7021,7 +7019,6 @@ Perl_yyerror(pTHX_ char *s) #ifdef PERL_OBJECT -#define NO_XSLOCKS #include "XSUB.h" #endif diff --git a/universal.c b/universal.c index f7d794218f..aa5487ff0e 100644 --- a/universal.c +++ b/universal.c @@ -117,10 +117,6 @@ Perl_boot_core_UNIVERSAL(pTHX) newXS("UNIVERSAL::VERSION", XS_UNIVERSAL_VERSION, file); } -#ifdef PERL_OBJECT -#define NO_XSLOCKS -#endif /* PERL_OBJECT */ - #include "XSUB.h" XS(XS_UNIVERSAL_isa) @@ -1421,7 +1421,7 @@ Perl_vmess(pTHX_ const char *pat, va_list *args) dTHR; if (PL_curcop->cop_line) Perl_sv_catpvf(aTHX_ sv, " at %_ line %"IVdf, - GvSV(PL_curcop->cop_filegv), (IV)PL_curcop->cop_line); + CopFILESV(PL_curcop), (IV)PL_curcop->cop_line); if (GvIO(PL_last_in_gv) && IoLINES(GvIOp(PL_last_in_gv))) { bool line_mode = (RsSIMPLE(PL_rs) && SvCUR(PL_rs) == 1 && *SvPVX(PL_rs) == '\n'); diff --git a/vms/perly_c.vms b/vms/perly_c.vms index acecce7554..4787247429 100644 --- a/vms/perly_c.vms +++ b/vms/perly_c.vms @@ -2483,7 +2483,6 @@ yyaccept: } #ifdef PERL_OBJECT -#define NO_XSLOCKS #include "XSUB.h" #endif diff --git a/vms/vmsish.h b/vms/vmsish.h index 261a506987..68ac8b9305 100644 --- a/vms/vmsish.h +++ b/vms/vmsish.h @@ -681,6 +681,4 @@ typedef char __VMS_SEPYTOTORP__; #undef HAS_NTOHL #endif -#define TMPPATH "sys$scratch:perl-eXXXXXX" - #endif /* __vmsish_h_included */ diff --git a/win32/win32.c b/win32/win32.c index 52692d797f..3f56f600f3 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -16,18 +16,6 @@ #endif #include <windows.h> -#ifndef __MINGW32__ -#include <lmcons.h> -#include <lmerr.h> -/* ugliness to work around a buggy struct definition in lmwksta.h */ -#undef LPTSTR -#define LPTSTR LPWSTR -#include <lmwksta.h> -#undef LPTSTR -#define LPTSTR LPSTR -#include <lmapibuf.h> -#endif /* __MINGW32__ */ - /* #include "config.h" */ #define PERLIO_NOT_STDIO 0 @@ -3014,43 +3002,63 @@ static XS(w32_DomainName) { dXSARGS; -#ifndef HAS_NETWKSTAGETINFO - /* mingw32 (and Win95) don't have NetWksta*(), so do it the old way */ - char name[256]; - DWORD size = sizeof(name); + HINSTANCE hNetApi32 = LoadLibrary("netapi32.dll"); + DWORD (__stdcall *pfnNetApiBufferFree)(LPVOID Buffer); + DWORD (__stdcall *pfnNetWkstaGetInfo)(LPWSTR servername, DWORD level, + void *bufptr); + + if (hNetApi32) { + pfnNetApiBufferFree = (DWORD (__stdcall *)(void *)) + GetProcAddress(hNetApi32, "NetApiBufferFree"); + pfnNetWkstaGetInfo = (DWORD (__stdcall *)(LPWSTR, DWORD, void *)) + GetProcAddress(hNetApi32, "NetWkstaGetInfo"); + } EXTEND(SP,1); - if (GetUserName(name,&size)) { - char sid[1024]; - DWORD sidlen = sizeof(sid); + if (hNetApi32 && pfnNetWkstaGetInfo && pfnNetApiBufferFree) { + /* this way is more reliable, in case user has a local account. */ char dname[256]; DWORD dnamelen = sizeof(dname); - SID_NAME_USE snu; - if (LookupAccountName(NULL, name, (PSID)&sid, &sidlen, - dname, &dnamelen, &snu)) { - XSRETURN_PV(dname); /* all that for this */ + struct { + DWORD wki100_platform_id; + LPWSTR wki100_computername; + LPWSTR wki100_langroup; + DWORD wki100_ver_major; + DWORD wki100_ver_minor; + } *pwi; + /* NERR_Success *is* 0*/ + if (0 == pfnNetWkstaGetInfo(NULL, 100, &pwi)) { + if (pwi->wki100_langroup && *(pwi->wki100_langroup)) { + WideCharToMultiByte(CP_ACP, NULL, pwi->wki100_langroup, + -1, (LPSTR)dname, dnamelen, NULL, NULL); + } + else { + WideCharToMultiByte(CP_ACP, NULL, pwi->wki100_computername, + -1, (LPSTR)dname, dnamelen, NULL, NULL); + } + pfnNetApiBufferFree(pwi); + FreeLibrary(hNetApi32); + XSRETURN_PV(dname); } + FreeLibrary(hNetApi32); } -#else - /* this way is more reliable, in case user has a local account. - * XXX need dynamic binding of netapi32.dll symbols or this will fail on - * Win95. Probably makes more sense to move it into libwin32. */ - char dname[256]; - DWORD dnamelen = sizeof(dname); - PWKSTA_INFO_100 pwi; - EXTEND(SP,1); - if (NERR_Success == NetWkstaGetInfo(NULL, 100, (LPBYTE*)&pwi)) { - if (pwi->wki100_langroup && *(pwi->wki100_langroup)) { - WideCharToMultiByte(CP_ACP, NULL, pwi->wki100_langroup, - -1, (LPSTR)dname, dnamelen, NULL, NULL); - } - else { - WideCharToMultiByte(CP_ACP, NULL, pwi->wki100_computername, - -1, (LPSTR)dname, dnamelen, NULL, NULL); + else { + /* Win95 doesn't have NetWksta*(), so do it the old way */ + char name[256]; + DWORD size = sizeof(name); + if (hNetApi32) + FreeLibrary(hNetApi32); + if (GetUserName(name,&size)) { + char sid[1024]; + DWORD sidlen = sizeof(sid); + char dname[256]; + DWORD dnamelen = sizeof(dname); + SID_NAME_USE snu; + if (LookupAccountName(NULL, name, (PSID)&sid, &sidlen, + dname, &dnamelen, &snu)) { + XSRETURN_PV(dname); /* all that for this */ + } } - NetApiBufferFree(pwi); - XSRETURN_PV(dname); } -#endif XSRETURN_UNDEF; } @@ -35,10 +35,6 @@ Perl_boot_core_xsutils(pTHX) newXS("attributes::bootstrap", XS_attributes_bootstrap, file); } -#ifdef PERL_OBJECT -#define NO_XSLOCKS -#endif /* PERL_OBJECT */ - #include "XSUB.h" static int |