summaryrefslogtreecommitdiffstats
path: root/generic/tclOOBasic.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-04-01 13:36:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-04-01 13:36:46 (GMT)
commitbbfcd52f865c1fe426d2a3b54b3d79ed39606af1 (patch)
treecfc02cf61fc3528110aeb751f04ef536ebcdc4e6 /generic/tclOOBasic.c
parentd0fec7532c33f0b3da8057e2e0fda10524f22905 (diff)
parent6dc1f8021ed597b13289a02c41c2e9660525a81a (diff)
downloadtcl-bbfcd52f865c1fe426d2a3b54b3d79ed39606af1.zip
tcl-bbfcd52f865c1fe426d2a3b54b3d79ed39606af1.tar.gz
tcl-bbfcd52f865c1fe426d2a3b54b3d79ed39606af1.tar.bz2
Rebase to Tcl 9.0
Diffstat (limited to 'generic/tclOOBasic.c')
-rw-r--r--generic/tclOOBasic.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclOOBasic.c b/generic/tclOOBasic.c
index 41ce034..83c2dc0 100644
--- a/generic/tclOOBasic.c
+++ b/generic/tclOOBasic.c
@@ -1045,12 +1045,11 @@ TclOOSelfObjCmd(
enum SelfCmds {
SELF_CALL, SELF_CALLER, SELF_CLASS, SELF_FILTER, SELF_METHOD, SELF_NS,
SELF_NEXT, SELF_OBJECT, SELF_TARGET
- };
+ } index;
Interp *iPtr = (Interp *) interp;
CallFrame *framePtr = iPtr->varFramePtr;
CallContext *contextPtr;
Tcl_Obj *result[3];
- int index;
#define CurrentlyInvoked(contextPtr) \
((contextPtr)->callPtr->chain[(contextPtr)->index])
@@ -1084,7 +1083,7 @@ TclOOSelfObjCmd(
return TCL_ERROR;
}
- switch ((enum SelfCmds) index) {
+ switch (index) {
case SELF_OBJECT:
Tcl_SetObjResult(interp, TclOOObjectName(interp, contextPtr->oPtr));
return TCL_OK;