diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-10-29 14:25:55 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-10-29 14:25:55 +0000 |
commit | aae9cea0a2be05abb857e6b2b32773d3d5fae6d8 (patch) | |
tree | 4ea5b941a8cdaf6c5bff5598320a28439b36dd5a /sv.h | |
parent | 9a265e59ce486ba81d4c53a5dd1e167baf7e65e7 (diff) | |
download | perl-aae9cea0a2be05abb857e6b2b32773d3d5fae6d8.tar.gz |
sv_taint() can easily be replaced by a macro.
p4raw-id: //depot/perl@25876
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1034,6 +1034,8 @@ Taints an SV if tainting is enabled. =cut */ +#define sv_taint(sv) sv_magic((sv), Nullsv, PERL_MAGIC_taint, Nullch, 0) + #define SvTAINTED(sv) (SvMAGICAL(sv) && sv_tainted(sv)) #define SvTAINTED_on(sv) STMT_START{ if(PL_tainting){sv_taint(sv);} }STMT_END #define SvTAINTED_off(sv) STMT_START{ if(PL_tainting){sv_untaint(sv);} }STMT_END |