summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-08-30 19:24:31 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-08-30 19:24:31 (GMT)
commit78f4f529a75a1cdb5c5ad4d2694f3712e8dd9f7b (patch)
treec5378e6cd0836d31030f9d3d2023b572235d66db /generic/tclCompile.c
parent7e86582642385bcca3dc26abaf937f7973c71428 (diff)
downloadtcl-78f4f529a75a1cdb5c5ad4d2694f3712e8dd9f7b.zip
tcl-78f4f529a75a1cdb5c5ad4d2694f3712e8dd9f7b.tar.gz
tcl-78f4f529a75a1cdb5c5ad4d2694f3712e8dd9f7b.tar.bz2
* generic/tclCompile.c: Added fflush() calls following all callers of
* generic/tclExecute.c: TclPrintByteCodeObj() so that tcl_traceCompile output is less likely to get mangled when writes to stdout interleave with other code.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index c3ff82a..fda8e9c 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompile.c,v 1.128 2007/08/27 19:56:51 dgp Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.129 2007/08/30 19:24:32 dgp Exp $
*/
#include "tclInt.h"
@@ -517,6 +517,7 @@ TclSetByteCodeFromAny(
#ifdef TCL_COMPILE_DEBUG
if (tclTraceCompile >= 2) {
TclPrintByteCodeObj(interp, objPtr);
+ fflush(stdout);
}
#endif /* TCL_COMPILE_DEBUG */