diff options
author | seandeelywoods <seandeelywoods> | 2013-03-18 12:38:37 (GMT) |
---|---|---|
committer | seandeelywoods <seandeelywoods> | 2013-03-18 12:38:37 (GMT) |
commit | 4e4e1c664b353f64c7a9ca59746bec7b5befd8d5 (patch) | |
tree | 4d3c38f64ccfdaa10bae3a01f5ccaea8a88e56af /generic/tclOOCall.c | |
parent | 24814481a81d3316432846ff13a30456736df625 (diff) | |
parent | 3fda4f0df6f0fdabe84372aee281ffb4ca7108e1 (diff) | |
download | tcl-4e4e1c664b353f64c7a9ca59746bec7b5befd8d5.zip tcl-4e4e1c664b353f64c7a9ca59746bec7b5befd8d5.tar.gz tcl-4e4e1c664b353f64c7a9ca59746bec7b5befd8d5.tar.bz2 |
Merging with updates from trunk
Diffstat (limited to 'generic/tclOOCall.c')
-rw-r--r-- | generic/tclOOCall.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/generic/tclOOCall.c b/generic/tclOOCall.c index a79e4fa..26fd09f 100644 --- a/generic/tclOOCall.c +++ b/generic/tclOOCall.c @@ -178,7 +178,7 @@ StashCallChain( callPtr->refCount++; TclFreeIntRep(objPtr); objPtr->typePtr = &methodNameType; - objPtr->internalRep.otherValuePtr = callPtr; + objPtr->internalRep.twoPtrValue.ptr1 = callPtr; } void @@ -205,10 +205,10 @@ DupMethodNameRep( Tcl_Obj *srcPtr, Tcl_Obj *dstPtr) { - register CallChain *callPtr = srcPtr->internalRep.otherValuePtr; + register CallChain *callPtr = srcPtr->internalRep.twoPtrValue.ptr1; dstPtr->typePtr = &methodNameType; - dstPtr->internalRep.otherValuePtr = callPtr; + dstPtr->internalRep.twoPtrValue.ptr1 = callPtr; callPtr->refCount++; } @@ -216,10 +216,9 @@ static void FreeMethodNameRep( Tcl_Obj *objPtr) { - register CallChain *callPtr = objPtr->internalRep.otherValuePtr; + register CallChain *callPtr = objPtr->internalRep.twoPtrValue.ptr1; TclOODeleteChain(callPtr); - objPtr->internalRep.otherValuePtr = NULL; objPtr->typePtr = NULL; } @@ -952,7 +951,7 @@ TclOOGetCallContext( const int reuseMask = ((flags & PUBLIC_METHOD) ? ~0 : ~PUBLIC_METHOD); if (cacheInThisObj->typePtr == &methodNameType) { - callPtr = cacheInThisObj->internalRep.otherValuePtr; + callPtr = cacheInThisObj->internalRep.twoPtrValue.ptr1; if (IsStillValid(callPtr, oPtr, flags, reuseMask)) { callPtr->refCount++; goto returnContext; |