Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
vcs-svn: allow character-oriented input
[gitweb.git]
/
vcs-svn
/
line_buffer.c
diff --git
a/vcs-svn/line_buffer.c
b/vcs-svn/line_buffer.c
index 661b007092247add3d7d5121345a999b8af53f7b..37ec56e5be46e88bcd9a2f41d70170a642297b9f 100644
(file)
--- a/
vcs-svn/line_buffer.c
+++ b/
vcs-svn/line_buffer.c
@@
-27,6
+27,11
@@
int buffer_deinit(struct line_buffer *buf)
return err;
}
+int buffer_read_char(struct line_buffer *buf)
+{
+ return fgetc(buf->infile);
+}
+
/* Read a line without trailing newline. */
char *buffer_read_line(struct line_buffer *buf)
{