summaryrefslogtreecommitdiffstats
path: root/generic
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
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')
-rw-r--r--generic/tclCompile.c3
-rw-r--r--generic/tclExecute.c3
2 files changed, 4 insertions, 2 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 */
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 2647723..db95212 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclExecute.c,v 1.326 2007/08/27 19:56:51 dgp Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.327 2007/08/30 19:24:33 dgp Exp $
*/
#include "tclInt.h"
@@ -1174,6 +1174,7 @@ Tcl_ExprObj(
#ifdef TCL_COMPILE_DEBUG
if (tclTraceCompile == 2) {
TclPrintByteCodeObj(interp, objPtr);
+ fflush(stdout);
}
#endif /* TCL_COMPILE_DEBUG */
}