summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-05-08 17:06:45 +0100
committerDavid Mitchell <davem@iabyn.com>2010-05-08 21:28:27 +0100
commit39d5de13bc6d138baf12ad5224e3af8834356929 (patch)
treea45e57710f0568e93061c913c18aa08adaace5fb /mathoms.c
parent279018d8f7ee0701721a840ba1e85752012463bf (diff)
downloadperl-39d5de13bc6d138baf12ad5224e3af8834356929.tar.gz
add flags arg to sv_2nv (as sv_2nv_flags)
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mathoms.c b/mathoms.c
index aaae227c4c..4322f6675b 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -42,6 +42,7 @@ PERL_CALLCONV void Perl_sv_unref(pTHX_ SV *sv);
PERL_CALLCONV void Perl_sv_taint(pTHX_ SV *sv);
PERL_CALLCONV IV Perl_sv_2iv(pTHX_ register SV *sv);
PERL_CALLCONV UV Perl_sv_2uv(pTHX_ register SV *sv);
+PERL_CALLCONV NV Perl_sv_2nv(pTHX_ register SV *sv);
PERL_CALLCONV char * Perl_sv_2pv(pTHX_ register SV *sv, STRLEN *lp);
PERL_CALLCONV char * Perl_sv_2pv_nolen(pTHX_ register SV *sv);
PERL_CALLCONV char * Perl_sv_2pvbyte_nolen(pTHX_ register SV *sv);
@@ -141,6 +142,17 @@ Perl_sv_2uv(pTHX_ register SV *sv)
return sv_2uv_flags(sv, SV_GMAGIC);
}
+/* sv_2nv() is now a macro using Perl_sv_2nv_flags();
+ * this function provided for binary compatibility only
+ */
+
+NV
+Perl_sv_2nv(pTHX_ register SV *sv)
+{
+ return sv_2nv_flags(sv, SV_GMAGIC);
+}
+
+
/* sv_2pv() is now a macro using Perl_sv_2pv_flags();
* this function provided for binary compatibility only
*/