Checkout
Ivan Zhakov
committed
on 10 Dec 15
[Reverted in 1719196]

Use existing APR function in implementation of svn_io_file_readline() for
peeking char after we found '\r' instead of… Show more
[Reverted in 1719196]

Use existing APR function in implementation of svn_io_file_readline() for

peeking char after we found '\r' instead of save position and seek back.

* subversion/include/svn_io.h

 (svn_io_file_ungetc): New.

* subversion/libsvn_subr/io.c

 (svn_io_file_ungetc): New. Wrapper around apr_file_ungetc().

 (svn_io_file_readline): Use svn_io_file_ungetc() for peeking char after we

  found '\r' instead of save position and seek back.

* subversion/tests/libsvn_subr/io-test.c

 (test_file_readline): New test for svn_io_file_readline().

 (test_file_ungetc): New test for svn_io_file_ungetc().

 (svn_test_descriptor_t): Add test_file_readline and test_file_ungetc.

Show less