new restartable integer parsing framework.
authorRich Felker <dalias@aerifal.cx>
Thu, 14 Jul 2011 04:51:45 +0000 (00:51 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 14 Jul 2011 04:51:45 +0000 (00:51 -0400)
commitecc9c5fcfa4831b290cc1a63c0346cbb0c1fcf42
tree2fb20d623af9622cb8ac9f461e542ca23fc6d791
parent0e2331c9b6e0c0b4f24019d4062f4c655d28cbaf
new restartable integer parsing framework.

this fixes a number of bugs in integer parsing due to lazy haphazard
wrapping, as well as some misinterpretations of the standard. the new
parser is able to work character-at-a-time or on whole strings, making
it easy to support the wide functions without unbounded space for
conversion. it will also be possible to update scanf to use the new
parser.
src/internal/intparse.c [new file with mode: 0644]
src/internal/intparse.h [new file with mode: 0644]
src/stdlib/strtoimax.c
src/stdlib/strtoumax.c
src/stdlib/wcstoimax.c
src/stdlib/wcstoumax.c