From db22e55f4280ceaf3181e5b17aacd0ba4075e85f Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 10 Jan 2006 18:52:33 +0000 Subject: 2006-01-10 Frank Ch. Eigler PR 2060. * buildrun.cxx (compile_pass): Add "V=1" to kbuild if verbose. * translate.cxx (translator_output): For output-file constructor, set an explicit output buffer. (emit_module_init, emit_module_exit): Reorganize output, to spit each individual probe registration/deregistration blurb into a separate function. * translate.h: Corresponding changes; set default buffer size to 8K. * translate.cxx, tapsets.cxx: Replace "endl" by buffer-friendly "\n" throughout code generation routines. --- translate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'translate.h') diff --git a/translate.h b/translate.h index 39e56dd7..1c6dc9f6 100644 --- a/translate.h +++ b/translate.h @@ -21,13 +21,14 @@ // pretty-printing. class translator_output { + char *buf; std::ofstream* o2; std::ostream& o; unsigned tablevel; public: translator_output (std::ostream& file); - translator_output (const std::string& filename); + translator_output (const std::string& filename, size_t bufsize = 8192); ~translator_output (); std::ostream& newline (int indent = 0); -- cgit