about summary refs log tree commit diff
path: root/src/internal/shgetc.c
Commit message (Collapse)AuthorAgeFilesLines
* fix buggy limiter handling in shgetcRich Felker2012-04-161-4/+3
| | | | this is needed for upcoming new scanf
* fix broken shgetc limiter logic (wasn't working)Rich Felker2012-04-161-1/+4
|
* fix incorrect initial count in shgetc when data is already bufferedRich Felker2012-04-111-1/+1
|
* add "scan helper getc" and rework strtod, etc. to use itRich Felker2012-04-101-0/+24
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.