From 1ecb433c37e275de5c25ded47dff83781103a095 Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Wed, 13 Apr 2005 09:39:30 +0000 Subject: * generic/tclCompile.c:Commented out the functions TclPrintInstruction(), TclPrintObject() and TclPrintSource() when not debugging the compiler, as they are never called in that case. --- ChangeLog | 6 ++++++ generic/tclCompile.c | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f062bba..b1d5594 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-04-13 Miguel Sofer + + * generic/tclCompile.c:Commented out the functions + TclPrintInstruction(), TclPrintObject() and TclPrintSource() when + not debugging the compiler, as they are never called in that case. + 2005-04-12 Don Porter * generic/tclInterp.c: Corrected bad syntax of Tcl_Panic() call. diff --git a/generic/tclCompile.c b/generic/tclCompile.c index 6dbc1e2..259e42f 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.82 2005/03/14 17:17:24 msofer Exp $ + * RCS: @(#) $Id: tclCompile.c,v 1.83 2005/04/13 09:39:30 msofer Exp $ */ #include "tclInt.h" @@ -3108,6 +3108,7 @@ TclPrintByteCodeObj(interp, objPtr) } #endif /* TCL_COMPILE_DEBUG */ +#ifdef TCL_COMPILE_DEBUG /* *---------------------------------------------------------------------- * @@ -3238,7 +3239,9 @@ TclPrintInstruction(codePtr, pc) fprintf(stdout, "\n"); return numBytes; } +#endif /* TCL_COMPILE_DEBUG */ +#ifdef TCL_COMPILE_DEBUG /* *---------------------------------------------------------------------- * @@ -3269,7 +3272,9 @@ TclPrintObject(outFile, objPtr, maxChars) bytes = Tcl_GetStringFromObj(objPtr, &length); TclPrintSource(outFile, bytes, TclMin(length, maxChars)); } +#endif /* TCL_COMPILE_DEBUG */ +#ifdef TCL_COMPILE_DEBUG /* *---------------------------------------------------------------------- * @@ -3331,6 +3336,7 @@ TclPrintSource(outFile, stringPtr, maxChars) } fprintf(outFile, "\""); } +#endif /* TCL_COMPILE_DEBUG */ #ifdef TCL_COMPILE_STATS /* -- cgit v0.12