diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-10 18:37:57 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-10 18:37:57 +0000 |
commit | dd5dc04f542db5aa619bf5c0cc2e371a87aef44b (patch) | |
tree | 295eb7bb6a0e0c5829d18b025c0ddd3ca807019b /perlapi.c | |
parent | 7b57b0ead8ab6b3f08be8b4ded2364d260db25a1 (diff) | |
download | perl-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.c | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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); |