summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-22 13:48:40 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-22 13:48:40 (GMT)
commit6b698fdbdeb2c71d4e27829e834036824d3cd5bd (patch)
tree61a8bec7ef0f2af23551560436d8292a83f0e87e /generic/tclProc.c
parent37d7c1ccf17d7e32d084c88f510f7639514a7676 (diff)
downloadtcl-6b698fdbdeb2c71d4e27829e834036824d3cd5bd.zip
tcl-6b698fdbdeb2c71d4e27829e834036824d3cd5bd.tar.gz
tcl-6b698fdbdeb2c71d4e27829e834036824d3cd5bd.tar.bz2
Standardize way of calling object freeIntRepProcs...
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index 9ce8706..d35ba32 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.
*
- * RCS: @(#) $Id: tclProc.c,v 1.62 2004/10/18 21:15:42 dgp Exp $
+ * RCS: @(#) $Id: tclProc.c,v 1.63 2004/10/22 13:48:58 dkf Exp $
*/
#include "tclInt.h"
@@ -1182,20 +1182,20 @@ TclProcCompileProc(interp, procPtr, bodyPtr, nsPtr, description, procName)
if (bodyPtr->typePtr == &tclByteCodeType) {
if (((Interp *) *codePtr->interpHandle != iPtr)
- || (codePtr->compileEpoch != iPtr->compileEpoch)
- || (codePtr->nsPtr != nsPtr)) {
- if (codePtr->flags & TCL_BYTECODE_PRECOMPILED) {
- if ((Interp *) *codePtr->interpHandle != iPtr) {
- Tcl_AppendResult(interp,
- "a precompiled script jumped interps", NULL);
- return TCL_ERROR;
- }
- codePtr->compileEpoch = iPtr->compileEpoch;
- codePtr->nsPtr = nsPtr;
- } else {
- (*tclByteCodeType.freeIntRepProc)(bodyPtr);
- bodyPtr->typePtr = (Tcl_ObjType *) NULL;
- }
+ || (codePtr->compileEpoch != iPtr->compileEpoch)
+ || (codePtr->nsPtr != nsPtr)) {
+ if (codePtr->flags & TCL_BYTECODE_PRECOMPILED) {
+ if ((Interp *) *codePtr->interpHandle != iPtr) {
+ Tcl_AppendResult(interp,
+ "a precompiled script jumped interps", NULL);
+ return TCL_ERROR;
+ }
+ codePtr->compileEpoch = iPtr->compileEpoch;
+ codePtr->nsPtr = nsPtr;
+ } else {
+ bodyPtr->typePtr->freeIntRepProc(bodyPtr);
+ bodyPtr->typePtr = (Tcl_ObjType *) NULL;
+ }
}
}
if (bodyPtr->typePtr != &tclByteCodeType) {