diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-08-23 22:49:04 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-08-24 22:31:49 -0400 |
commit | 8c12dc63d1f47b22b69bbcfe5c21dcadb14c5397 (patch) | |
tree | 49a27c8473749b45b7f71b3f4b4f2264b15772f6 /keywords.c | |
parent | b2bea0a9cc3975a6d0df1ebfa82cd24df518b9b0 (diff) | |
download | perl-8c12dc63d1f47b22b69bbcfe5c21dcadb14c5397.tar.gz |
More robust inf/nan recognition and generation.
Drop INFNAN_PEEK, premature optimization and hard to get right (it
basically imitates unrolled first half of grok_infnan). Just keep
grok_infan fast. (There is one spot in grok_number_flags() where we
peek at the next byte to avoid wasted work.)
If falling back (from not having NV_INF/NV_NAN) to the native strtod
(or similar), fake the input based on the grok_infnan result.
Add last-resort ways to generate inf/nan.
Recognize explicit unary plus, like "+Inf", and "INFINITE".
In tests use cmp_ok(), fix typos, add tests.
Diffstat (limited to 'keywords.c')
0 files changed, 0 insertions, 0 deletions