summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-12-10 13:43:32 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-12-10 13:43:32 +0000
commitc6ee37c52f2ca9e544af4866d4237b0404bcddb7 (patch)
treed695d1ef9ec0dfb5446fa9908cbe5b8d130af4b5 /sv.h
parent02128f118302118e0f22c5a676a0b7040065fcd1 (diff)
downloadperl-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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sv.h b/sv.h
index 1adaffe719..ffcc4aa22d 100644
--- a/sv.h
+++ b/sv.h
@@ -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)