diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-07-23 10:38:50 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-07-24 09:08:14 -0400 |
commit | 75feedba47600d94d18d49dbcbdf46393b6c6cc5 (patch) | |
tree | fafed80ec3d9e71aaeadaacff83099aad527e77f /embed.fnc | |
parent | 4ba3adde25c4edf2e470f13677632b6d2f9e2fcd (diff) | |
download | perl-75feedba47600d94d18d49dbcbdf46393b6c6cc5.tar.gz |
Use UV instead of Size_t.
A strong reason for using UV are the promised custom codepoints,
they go beyond 32-bit.
The overflow logic didn't work if Size_t was 32-bit but the UV was 64-bit.
Steal the battle-proven logic from grok_number_flags().
The numeric.xs or grok.t were not right in 32-bit, either.
Add comments.
Diffstat (limited to 'embed.fnc')
-rw-r--r-- | embed.fnc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -807,7 +807,7 @@ Apd |int |grok_number |NN const char *pv|STRLEN len|NULLOK UV *valuep Apd |int |grok_number_flags|NN const char *pv|STRLEN len|NULLOK UV *valuep|U32 flags ApdR |bool |grok_numeric_radix|NN const char **sp|NN const char *send Apd |UV |grok_oct |NN const char* start|NN STRLEN* len_p|NN I32* flags|NULLOK NV *result -Apdn |Size_t |grok_atou |NN const char* pv|NULLOK const char** endptr +Apdn |UV |grok_atou |NN const char* pv|NULLOK const char** endptr : These are all indirectly referenced by globals.c. This is somewhat annoying. p |int |magic_clearenv |NN SV* sv|NN MAGIC* mg p |int |magic_clear_all_env|NN SV* sv|NN MAGIC* mg |