input/TextInputStream: return char*
Revert to the old API before commit e9e55b08, removing unnecessary
bloat.
			
			
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann