summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-09-24 20:33:03 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-09-24 20:33:03 -0700
commit06c841cf64c10f912e4cb0d12dbfc0add671bb81 (patch)
treeb02e773cef0db952bb77579942f1334d3183b9d8 /mathoms.c
parent078504b2d0c069e5cefbe4670341aa18838d452d (diff)
downloadperl-06c841cf64c10f912e4cb0d12dbfc0add671bb81.tar.gz
[perl #76814] FETCH called twice - !
This fixes ! by changing sv_2bool to sv_2bool_flags (with a macro wrapper) and adding SvTRUE_nomg. It also corrects the docs that state incorrectly that SvTRUE does not handle magic.
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mathoms.c b/mathoms.c
index 44d8e8f339..78516b3d4b 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -82,6 +82,7 @@ PERL_CALLCONV I32 Perl_my_stat(pTHX);
PERL_CALLCONV I32 Perl_my_lstat(pTHX);
PERL_CALLCONV I32 Perl_sv_eq(pTHX_ register SV *sv1, register SV *sv2);
PERL_CALLCONV char * Perl_sv_collxfrm(pTHX_ SV *const sv, STRLEN *const nxp);
+PERL_CALLCONV bool Perl_sv_2bool(pTHX_ register SV *const sv);
/* ref() is now a macro using Perl_doref;
* this version provided for binary compatibility only.
@@ -1547,6 +1548,12 @@ Perl_sv_collxfrm(pTHX_ SV *const sv, STRLEN *const nxp)
return sv_collxfrm_flags(sv, nxp, SV_GMAGIC);
}
+bool
+Perl_sv_2bool(pTHX_ register SV *const sv)
+{
+ return sv_2bool_flags(sv, SV_GMAGIC);
+}
+
#endif /* NO_MATHOMS */
/*