summaryrefslogtreecommitdiff
path: root/cpan/IO-Compress/private
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-08-18 12:41:41 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-08-20 09:33:11 -0400
commitff4eb3984da9fdf3cec4f01cf752e4e7da44139f (patch)
tree9474354cb882578cd450a6b74a9f4d4eff6ee0bd /cpan/IO-Compress/private
parent8b7fad815cf65ab870e666844e22045c74803f64 (diff)
downloadperl-ff4eb3984da9fdf3cec4f01cf752e4e7da44139f.tar.gz
Separate grok_infnan() from grok_number().
Remaining issues: (1) would need tests, but there are two problems: [a] generating inf/nan reliably and testing for it from Perl level is hard (see items (2) and (3) below), and [b] the behavior of various systems with especially NaN differs (some platforms might throw SIGFPEs). (2) toke.c:scan_number() will not call this code (via grok_number) because "NaN" or "Inf" do not look at all like floats to it. (3) Even as we now recognize these forms, the native strtod() might not (problem of cross-portability of these exceptional forms: Win32 outputs e.g. "1.#INF", what Linux reading this should do, or conversely Linux outputs "Inf", what should Win32 do?)
Diffstat (limited to 'cpan/IO-Compress/private')
0 files changed, 0 insertions, 0 deletions