summaryrefslogtreecommitdiff
path: root/taint.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-07-22 05:59:12 -0600
committerKarl Williamson <khw@cpan.org>2022-06-04 20:59:10 -0600
commitf50027fcb684960e3b6877fb6c53de1ce76e82de (patch)
treed2e491517c57b90efaa5730dd2b521adaef8c821 /taint.c
parentcc98b54eb7901b2dc0bfbbc81c885b562c0d575f (diff)
downloadperl-f50027fcb684960e3b6877fb6c53de1ce76e82de.tar.gz
Add comments to taint_env, taint_proper
One is supposed to access this functionality only through the documented uppercase-named macros.
Diffstat (limited to 'taint.c')
-rw-r--r--taint.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/taint.c b/taint.c
index 77a2351696..d7dfb7debd 100644
--- a/taint.c
+++ b/taint.c
@@ -34,7 +34,9 @@ Implements the L</TAINT_PROPER> macro, which you should generally use instead.
void
Perl_taint_proper(pTHX_ const char *f, const char *const s)
{
- /* Output a tainting violation, croaking unless we're just to warn.
+ /* Don't use directly; instead use TAINT_PROPER
+ *
+ * Output a tainting violation, croaking unless we're just to warn.
* '_proper' is just to throw you off the scent */
#if defined(HAS_SETEUID) && defined(DEBUGGING)
@@ -95,6 +97,8 @@ Implements the L</TAINT_ENV> macro, which you should generally use instead.
void
Perl_taint_env(pTHX)
{
+ /* Don't use directly; instead use TAINT_ENV */
+
SV** svp;
const char* const *e;
static const char* const misc_env[] = {