summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-09-24 20:31:28 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-09-24 20:31:28 -0700
commit078504b2d0c069e5cefbe4670341aa18838d452d (patch)
tree82ea75dc3a93df1feb46a1a1b97a774ab28f6b20 /mathoms.c
parent582ac935ddba404ce00c7eda1a75e8a2c0412eee (diff)
downloadperl-078504b2d0c069e5cefbe4670341aa18838d452d.tar.gz
[perl #76814] FETCH called twice - string comparison ops
This patch changes sv_eq, sv_cmp, sv_cmp_locale and sv_collxfrm to _flags forms, with macros under the old names for sv_eq and sv_collxfrm, but functions for sv_cmp* since pp_sort.c needs them.
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/mathoms.c b/mathoms.c
index 1bb33d395b..44d8e8f339 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -80,6 +80,8 @@ PERL_CALLCONV HV * Perl_newHV(pTHX);
PERL_CALLCONV IO * Perl_newIO(pTHX);
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);
/* ref() is now a macro using Perl_doref;
* this version provided for binary compatibility only.
@@ -1533,6 +1535,18 @@ Perl_my_lstat(pTHX)
return my_lstat_flags(SV_GMAGIC);
}
+I32
+Perl_sv_eq(pTHX_ register SV *sv1, register SV *sv2)
+{
+ return sv_eq_flags(sv1, sv2, SV_GMAGIC);
+}
+
+char *
+Perl_sv_collxfrm(pTHX_ SV *const sv, STRLEN *const nxp)
+{
+ return sv_collxfrm_flags(sv, nxp, SV_GMAGIC);
+}
+
#endif /* NO_MATHOMS */
/*