summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authorescoffon <escoffon>1998-08-06 12:15:50 (GMT)
committerescoffon <escoffon>1998-08-06 12:15:50 (GMT)
commitac3239faeb48726aed29709434712308e2ba7f05 (patch)
treec8e4bb4c3fda7fb8e9c6e255fe54fb8924f8ac38 /generic/tclProc.c
parent1db919d7dc99946566c67b1222a01a084d1864cb (diff)
downloadtcl-ac3239faeb48726aed29709434712308e2ba7f05.zip
tcl-ac3239faeb48726aed29709434712308e2ba7f05.tar.gz
tcl-ac3239faeb48726aed29709434712308e2ba7f05.tar.bz2
changed the panic in TclProcCompileProc when a precompiled script jumps
interps to an error instead.
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index ea36243..8bd19d3 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * SCCS: %Z% $Id: tclProc.c,v 1.12 1998/07/28 13:55:21 escoffon Exp $
+ * SCCS: %Z% $Id: tclProc.c,v 1.13 1998/08/06 12:15:50 escoffon Exp $
*/
#include "tclInt.h"
@@ -1023,7 +1023,9 @@ TclProcCompileProc(interp, procPtr, bodyPtr, nsPtr, description, procName)
|| (codePtr->nsEpoch != nsPtr->resolverEpoch)) {
if (codePtr->flags & TCL_BYTECODE_PRECOMPILED) {
if (codePtr->iPtr != iPtr) {
- panic("TclProcCompileProc: compiled body jumped interps");
+ Tcl_AppendResult(interp,
+ "a precompiled script jumped interps", NULL);
+ return TCL_ERROR;
}
codePtr->compileEpoch = iPtr->compileEpoch;
codePtr->nsEpoch = nsPtr->resolverEpoch;