vcs-svn: Allow character-oriented input
commit9e16231af1ef889f333e8572a4032e35e8bd50e4
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 11 Oct 2010 02:52:17 +0000 (10 21:52 -0500)
committerDavid Barr <david.barr@cordelta.com>
Sat, 23 Oct 2010 01:25:25 +0000 (23 12:25 +1100)
tree88161233c626b3e6986cb4e884f6a660051d1de4
parentcbc0d47f1d61bab1616e828933b8c2e8289e7e48
vcs-svn: Allow character-oriented input

buffer_read_char() can be used in place of buffer_read_string(1)
to avoid consuming valuable static buffer space.  The delta applier
will use this to read variable-length integers one byte at a time.

Underneath, it is fgetc(), wrapped so the line_buffer library can
maintain its role as gatekeeper of input.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
line_buffer.c
line_buffer.h