Index: src/string-stream.cc |
=================================================================== |
--- src/string-stream.cc (revision 6074) |
+++ src/string-stream.cc (working copy) |
@@ -264,7 +264,7 @@ |
} |
-void StringStream::OutputToStdOut() { |
+void StringStream::OutputToFile(FILE* out) { |
// Dump the output to stdout, but make sure to break it up into |
// manageable chunks to avoid losing parts of the output in the OS |
// printing code. This is a problem on Windows in particular; see |
@@ -273,10 +273,10 @@ |
for (unsigned next; (next = position + 2048) < length_; position = next) { |
char save = buffer_[next]; |
buffer_[next] = '\0'; |
- internal::PrintF("%s", &buffer_[position]); |
+ internal::PrintF(out, "%s", &buffer_[position]); |
buffer_[next] = save; |
} |
- internal::PrintF("%s", &buffer_[position]); |
+ internal::PrintF(out, "%s", &buffer_[position]); |
} |