This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
sv_utf8_upgrade declares itself to be a mathom, so off it goes.
authorNicholas Clark <nick@ccl4.org>
Sat, 29 Oct 2005 15:07:42 +0000 (15:07 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 29 Oct 2005 15:07:42 +0000 (15:07 +0000)
Remove duplicate declaration of Perl_sv_2uv

p4raw-id: //depot/perl@25880

mathoms.c
sv.c

index c70d63d..4f35282 100644 (file)
--- a/mathoms.c
+++ b/mathoms.c
@@ -187,6 +187,16 @@ Perl_sv_pvutf8(pTHX_ SV *sv)
     return sv_pv(sv);
 }
 
+/* sv_utf8_upgrade() is now a macro using sv_utf8_upgrade_flags();
+ * this function provided for binary compatibility only
+ */
+
+STRLEN
+Perl_sv_utf8_upgrade(pTHX_ register SV *sv)
+{
+    return sv_utf8_upgrade_flags(sv, SV_GMAGIC);
+}
+
 /*
 =for apidoc A|U8 *|uvchr_to_utf8|U8 *d|UV uv
 
diff --git a/sv.c b/sv.c
index e0d9786..238c56f 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -2362,16 +2362,6 @@ Perl_sv_2iv_flags(pTHX_ register SV *sv, I32 flags)
     return SvIsUV(sv) ? (IV)SvUVX(sv) : SvIVX(sv);
 }
 
-/* sv_2uv() is now a macro using Perl_sv_2uv_flags();
- * this function provided for binary compatibility only
- */
-
-UV
-Perl_sv_2uv(pTHX_ register SV *sv)
-{
-    return sv_2uv_flags(sv, SV_GMAGIC);
-}
-
 /*
 =for apidoc sv_2uv_flags
 
@@ -3444,17 +3434,6 @@ Perl_sv_2bool(pTHX_ register SV *sv)
     }
 }
 
-/* sv_utf8_upgrade() is now a macro using sv_utf8_upgrade_flags();
- * this function provided for binary compatibility only
- */
-
-
-STRLEN
-Perl_sv_utf8_upgrade(pTHX_ register SV *sv)
-{
-    return sv_utf8_upgrade_flags(sv, SV_GMAGIC);
-}
-
 /*
 =for apidoc sv_utf8_upgrade