diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-06-29 09:28:58 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-06-29 09:28:58 +0000 |
commit | 1199dd43248b0956628341f2a63939a8378c8016 (patch) | |
tree | 57ca33b5b1f2b53e78bef1deb208fbccb0860308 /perl.h | |
parent | 24130e51d52fd22992dd62e432895a9115f3a585 (diff) | |
download | perl-1199dd43248b0956628341f2a63939a8378c8016.tar.gz |
Move the PL_earlytaint initialization to the PERL_SYS_INIT()
as per suggestion from Sarathy.
p4raw-id: //depot/perl@19878
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |