Blame SOURCES/perl-5.33.0-Update-pod-for-SvTRUE-to-indicate-single-param-evalu.patch
|
|
b2938d |
From b26a606d84ae1a6da560c7cd71d1a33c0dc7178e Mon Sep 17 00:00:00 2001
|
|
|
b2938d |
From: Karl Williamson <khw@cpan.org>
|
|
|
b2938d |
Date: Sun, 14 Jun 2020 12:26:02 -0600
|
|
|
b2938d |
Subject: [PATCH] Update pod for SvTRUE, to indicate single param evaluation
|
|
|
b2938d |
MIME-Version: 1.0
|
|
|
b2938d |
Content-Type: text/plain; charset=UTF-8
|
|
|
b2938d |
Content-Transfer-Encoding: 8bit
|
|
|
b2938d |
|
|
|
b2938d |
5.32 changed this macro into an inline function so that 'sv' only gets
|
|
|
b2938d |
evaluated once, but didn't update the documentation to reflect that.
|
|
|
b2938d |
|
|
|
b2938d |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
b2938d |
---
|
|
|
b2938d |
sv.h | 3 ++-
|
|
|
b2938d |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
b2938d |
|
|
|
b2938d |
diff --git a/sv.h b/sv.h
|
|
|
b2938d |
index 3721b2fb1b..ad8accbf1a 100644
|
|
|
b2938d |
--- a/sv.h
|
|
|
b2938d |
+++ b/sv.h
|
|
|
b2938d |
@@ -1607,7 +1607,8 @@ false. See C<L</SvOK>> for a defined/undefined test. Handles 'get' magic
|
|
|
b2938d |
unless the scalar is already C<SvPOK>, C<SvIOK> or C<SvNOK> (the public, not the
|
|
|
b2938d |
private flags).
|
|
|
b2938d |
|
|
|
b2938d |
-See C<L</SvTRUEx>> for a version which guarantees to evaluate C<sv> only once.
|
|
|
b2938d |
+As of Perl 5.32, this is guaranteed to evaluate C<sv> only once. Prior to that
|
|
|
b2938d |
+release, use C<L</SvTRUEx>> for single evaluation.
|
|
|
b2938d |
|
|
|
b2938d |
=for apidoc Am|bool|SvTRUE_nomg|SV* sv
|
|
|
b2938d |
Returns a boolean indicating whether Perl would evaluate the SV as true or
|
|
|
b2938d |
--
|
|
|
b2938d |
2.25.4
|
|
|
b2938d |
|