X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl.h;h=49bdb0a73df98c00af345ab0eeb0995ae74aa01d;hb=1199dd43248b0956628341f2a63939a8378c8016;hp=cfe9fe877aa37a58cbc68375368f8651017062ec;hpb=24130e51d52fd22992dd62e432895a9115f3a585;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perl.h b/perl.h index cfe9fe8..49bdb0a 100644 --- a/perl.h +++ b/perl.h @@ -1942,6 +1942,23 @@ typedef struct clone_params CLONE_PARAMS; # endif #endif +/* The PL_earlytaint is to be used instead PL_tainting before + * perl_parse() has had the chance to set up PL_tainting. */ + +#ifndef EARLY_INIT3 +# define EARLY_INIT3(argvp,argcp,envp) \ + STMT_START { \ + PL_earlytaint = doing_taint(argcp, argvp, envp); \ + } STMT_END; +#endif + +#ifndef EARLY_INIT2 +# define EARLY_INIT2(argvp,argcp) \ + STMT_START { \ + PL_earlytaint = doing_taint(argcp, argvp, 0); \ + } STMT_END; +#endif + #ifndef PERL_SYS_INIT3 # define PERL_SYS_INIT3(argvp,argcp,envp) PERL_SYS_INIT(argvp,argcp) #endif