From 205c02c281b9644211954268839d5b6d0c3f15fd Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sat, 29 Oct 2005 15:07:42 +0000 Subject: [PATCH] sv_utf8_upgrade declares itself to be a mathom, so off it goes. Remove duplicate declaration of Perl_sv_2uv p4raw-id: //depot/perl@25880 --- mathoms.c | 10 ++++++++++ sv.c | 21 --------------------- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/mathoms.c b/mathoms.c index c70d63d..4f35282 100644 --- 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 --- 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 -- 2.7.4