From: Nicholas Clark Date: Sat, 29 Oct 2005 15:07:42 +0000 (+0000) Subject: sv_utf8_upgrade declares itself to be a mathom, so off it goes. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=205c02c281b9644211954268839d5b6d0c3f15fd;p=p5sagit%2Fp5-mst-13.2.git 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 --- 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