input/TextInputStream: return char*

Revert to the old API before commit e9e55b08, removing unnecessary
bloat.
This commit is contained in:
Max Kellermann
2014-08-07 00:06:02 +02:00
parent 08fee9a284
commit 69ae879c58
6 changed files with 27 additions and 34 deletions

View File

@@ -43,9 +43,9 @@
static void
dump_text_file(TextInputStream &is)
{
std::string line;
while (is.ReadLine(line))
printf("'%s'\n", line.c_str());
const char *line;
while ((line = is.ReadLine()) != nullptr)
printf("'%s'\n", line);
}
static int