summaryrefslogtreecommitdiff
path: root/perlapi.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-10 18:37:57 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-10 18:37:57 +0000
commitdd5dc04f542db5aa619bf5c0cc2e371a87aef44b (patch)
tree295eb7bb6a0e0c5829d18b025c0ddd3ca807019b /perlapi.c
parent7b57b0ead8ab6b3f08be8b4ded2364d260db25a1 (diff)
downloadperl-dd5dc04f542db5aa619bf5c0cc2e371a87aef44b.tar.gz
Move the grok_number and its lieutenant grok_numeric_radix
from sv.c statics to util.c and public. p4raw-id: //depot/perl@10505
Diffstat (limited to 'perlapi.c')
-rw-r--r--perlapi.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/perlapi.c b/perlapi.c
index 5cb3c44104..64582f6ba3 100644
--- a/perlapi.c
+++ b/perlapi.c
@@ -1505,6 +1505,20 @@ Perl_looks_like_number(pTHXo_ SV* sv)
{
return ((CPerlObj*)pPerl)->Perl_looks_like_number(sv);
}
+
+#undef Perl_grok_number
+int
+Perl_grok_number(pTHXo_ const char *pv, STRLEN len, UV *valuep)
+{
+ return ((CPerlObj*)pPerl)->Perl_grok_number(pv, len, valuep);
+}
+
+#undef Perl_grok_numeric_radix
+bool
+Perl_grok_numeric_radix(pTHXo_ const char **sp, const char *send)
+{
+ return ((CPerlObj*)pPerl)->Perl_grok_numeric_radix(sp, send);
+}
#if defined(USE_THREADS)
#endif
#if defined(USE_LOCALE_COLLATE)
@@ -1596,7 +1610,7 @@ Perl_mg_set(pTHXo_ SV* sv)
}
#undef Perl_mg_size
-I32
+IV
Perl_mg_size(pTHXo_ SV* sv)
{
return ((CPerlObj*)pPerl)->Perl_mg_size(sv);