summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-31 09:42:20 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-31 09:42:20 (GMT)
commitabc1ba4c1cfe287f7f51dcb9ad436dae39d9953a (patch)
tree2be8d4d05d8f21d613366b08b11fd4acff5fde4b /generic/tclObj.c
parent8f86b72df715b305799f51b5dda64dbe1ddd183a (diff)
downloadtcl-abc1ba4c1cfe287f7f51dcb9ad436dae39d9953a.zip
tcl-abc1ba4c1cfe287f7f51dcb9ad436dae39d9953a.tar.gz
tcl-abc1ba4c1cfe287f7f51dcb9ad436dae39d9953a.tar.bz2
Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index 5c17df2..e14c740 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -1243,7 +1243,7 @@ Tcl_DbNewObj(
* Side effects:
* tclFreeObjList, the head of the list of free Tcl_Objs, is set to the
* first of a number of free Tcl_Obj's linked together by their
- * internalRep.otherValuePtrs.
+ * internalRep.twoPtrValue.ptr1's.
*
*----------------------------------------------------------------------
*/
@@ -1272,7 +1272,7 @@ TclAllocateFreeObjects(void)
prevPtr = NULL;
objPtr = (Tcl_Obj *) basePtr;
for (i = 0; i < OBJS_TO_ALLOC_EACH_TIME; i++) {
- objPtr->internalRep.otherValuePtr = (void *) prevPtr;
+ objPtr->internalRep.twoPtrValue.ptr1 = (void *) prevPtr;
prevPtr = objPtr;
objPtr++;
}
@@ -4288,7 +4288,7 @@ SetCmdNameFromAny(
if (cmdPtr) {
cmdPtr->refCount++;
- resPtr = (ResolvedCmdName *) objPtr->internalRep.otherValuePtr;
+ resPtr = (ResolvedCmdName *) objPtr->internalRep.twoPtrValue.ptr1;
if ((objPtr->typePtr == &tclCmdNameType)
&& resPtr && (resPtr->refCount == 1)) {
/*