diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-01-31 09:42:20 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-01-31 09:42:20 (GMT) |
commit | 36366e4583a297270cb0ea383a7adaf4c2d03352 (patch) | |
tree | 2be8d4d05d8f21d613366b08b11fd4acff5fde4b /generic/tclStringObj.c | |
parent | db05df5153f423e80e5508fe7e956ab8846f8653 (diff) | |
download | tcl-36366e4583a297270cb0ea383a7adaf4c2d03352.zip tcl-36366e4583a297270cb0ea383a7adaf4c2d03352.tar.gz tcl-36366e4583a297270cb0ea383a7adaf4c2d03352.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.
FossilOrigin-Name: 17354de1e8bc0e45bed1021af07fb27ca6325337
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r-- | generic/tclStringObj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c index 3f243a6..ee434c3 100644 --- a/generic/tclStringObj.c +++ b/generic/tclStringObj.c @@ -128,9 +128,9 @@ typedef struct String { (String *) attemptckrealloc((char *) ptr, \ (unsigned) STRING_SIZE(STRING_UALLOC(numChars)) ) #define GET_STRING(objPtr) \ - ((String *) (objPtr)->internalRep.otherValuePtr) + ((String *) (objPtr)->internalRep.twoPtrValue.ptr1) #define SET_STRING(objPtr, stringPtr) \ - ((objPtr)->internalRep.otherValuePtr = (void *) (stringPtr)) + ((objPtr)->internalRep.twoPtrValue.ptr1 = (void *) (stringPtr)) /* * TCL STRING GROWTH ALGORITHM |