vcs-svn: teach line_buffer to handle multiple input files
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 11 Oct 2010 02:41:06 +0000 (21:41 -0500)
committerJonathan Nieder <jrnieder@gmail.com>
Sat, 26 Feb 2011 10:57:59 +0000 (04:57 -0600)
commite5e45ca1e35482d120a7ce776cf208369edcc459
treebb050fff933928d0d54a66a2afeebab568ee636a
parentd350822fa7d14052713bea0ec62ff1246d8a2f7a
vcs-svn: teach line_buffer to handle multiple input files

Collect the line_buffer state in a newly public line_buffer struct.
Callers can use multiple line_buffers to manage input from multiple
files at a time.

svn-fe's delta applier will use this to stream a delta from svnrdump
and the preimage it applies to from fast-import at the same time.

The tests don't take advantage of the new features, but I think that's
okay.  It is easier to find lingering examples of nonreentrant code by
searching for "static" in line_buffer.c.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
test-line-buffer.c
vcs-svn/fast_export.c
vcs-svn/fast_export.h
vcs-svn/line_buffer.c
vcs-svn/line_buffer.h
vcs-svn/line_buffer.txt
vcs-svn/svndump.c