This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use UV instead of Size_t.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 23 Jul 2014 14:38:50 +0000 (10:38 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 24 Jul 2014 13:08:14 +0000 (09:08 -0400)
commit75feedba47600d94d18d49dbcbdf46393b6c6cc5
treefafed80ec3d9e71aaeadaacff83099aad527e77f
parent4ba3adde25c4edf2e470f13677632b6d2f9e2fcd
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.
embed.fnc
ext/XS-APItest/numeric.xs
ext/XS-APItest/t/grok.t
numeric.c
proto.h