diff options
author | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-12-10 13:43:32 +0000 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1997-12-10 13:43:32 +0000 |
commit | c6ee37c52f2ca9e544af4866d4237b0404bcddb7 (patch) | |
tree | d695d1ef9ec0dfb5446fa9908cbe5b8d130af4b5 /sv.h | |
parent | 02128f118302118e0f22c5a676a0b7040065fcd1 (diff) | |
download | perl-c6ee37c52f2ca9e544af4866d4237b0404bcddb7.tar.gz |
Fix perl_os_thread typedef for pthreads. Tweak SvTAINT so that
sv_setfoo functions go back to not needing dTHR. Fix Configure
to check for already-existing -thread on archname and to check
better for d_pthread_created_joinable.
p4raw-id: //depot/perl@356
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -490,7 +490,14 @@ struct xpvio { #define SvTAINTED_on(sv) STMT_START{ if(tainting){sv_taint(sv);} }STMT_END #define SvTAINTED_off(sv) STMT_START{ if(tainting){sv_untaint(sv);} }STMT_END -#define SvTAINT(sv) STMT_START{ if(tainted){SvTAINTED_on(sv);} }STMT_END +#define SvTAINT(sv) \ + STMT_START { \ + if (tainting) { \ + dTHR; \ + if (tainted) \ + SvTAINTED_on(sv); \ + } \ + } STMT_END #define SvPV_force(sv, lp) sv_pvn_force(sv, &lp) #define SvPV(sv, lp) sv_pvn(sv, &lp) |