musl/src/stdlib
Rich Felker 2162541f38 add "scan helper getc" and rework strtod, etc. to use it
the immediate benefit is a significant debloating of the float parsing
code by moving the responsibility for keeping track of the number of
characters read to a different module.

by linking shgetc with the stdio buffer logic, counting logic is
defered to buffer refill time, keeping the calls to shgetc fast and
light.

in the future, shgetc will also be useful for integrating the new
float code with scanf, which needs to not only count the characters
consumed, but also limit the number of characters read based on field
width specifiers.

shgetc may also become a useful tool for simplifying the integer
parsing code.
2012-04-10 21:47:37 -04:00
..
abs.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
atof.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
atoi.c fix signed overflows at most-negative values in ato(i|l|ll) 2011-11-10 20:44:44 -05:00
atol.c fix signed overflows at most-negative values in ato(i|l|ll) 2011-11-10 20:44:44 -05:00
atoll.c fix signed overflows at most-negative values in ato(i|l|ll) 2011-11-10 20:44:44 -05:00
bsearch.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
div.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
ecvt.c add deprecated (removed from posix) [efg]cvt() functions 2012-02-06 01:14:23 -05:00
fcvt.c add deprecated (removed from posix) [efg]cvt() functions 2012-02-06 01:14:23 -05:00
gcvt.c add deprecated (removed from posix) [efg]cvt() functions 2012-02-06 01:14:23 -05:00
imaxabs.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
imaxdiv.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
labs.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
ldiv.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
llabs.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
lldiv.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
qsort.c avoid crashing when nel==0 is passed to qsort 2011-04-29 11:14:55 -04:00
strtod.c add "scan helper getc" and rework strtod, etc. to use it 2012-04-10 21:47:37 -04:00
strtoimax.c fix various bugs in new integer parser framework 2011-07-14 22:11:00 -04:00
strtol.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
strtoll.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
strtoul.c fix incorrect overflow errors on strtoul, etc. 2011-09-05 22:23:06 -04:00
strtoull.c fix incorrect overflow errors on strtoul, etc. 2011-09-05 22:23:06 -04:00
strtoumax.c fix various bugs in new integer parser framework 2011-07-14 22:11:00 -04:00
wcstoimax.c fix various bugs in new integer parser framework 2011-07-14 22:11:00 -04:00
wcstol.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
wcstoll.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
wcstoul.c fix incorrect overflow errors on strtoul, etc. 2011-09-05 22:23:06 -04:00
wcstoull.c fix incorrect overflow errors on strtoul, etc. 2011-09-05 22:23:06 -04:00
wcstoumax.c fix various bugs in new integer parser framework 2011-07-14 22:11:00 -04:00