summaryrefslogtreecommitdiffstats
path: root/generic/tclTestObj.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-02-16 04:33:10 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-02-16 04:33:10 (GMT)
commitda4f0d06bf46a3ce2f768e602066d711bb8b5ba7 (patch)
treeaafbfe754871d6e90e971521aaf164a0b8274665 /generic/tclTestObj.c
parent83b89e4cb82d0744ad11a21b568e43fc6398f605 (diff)
downloadtcl-da4f0d06bf46a3ce2f768e602066d711bb8b5ba7.zip
tcl-da4f0d06bf46a3ce2f768e602066d711bb8b5ba7.tar.gz
tcl-da4f0d06bf46a3ce2f768e602066d711bb8b5ba7.tar.bz2
* generic/tclTestObj.c: Replace the [teststringobj ualloc] testing
* tests/stringObj.test: command with [teststringobj maxchars] and update the tests.
Diffstat (limited to 'generic/tclTestObj.c')
-rw-r--r--generic/tclTestObj.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c
index 55aec66..dba06f9 100644
--- a/generic/tclTestObj.c
+++ b/generic/tclTestObj.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclTestObj.c,v 1.33 2009/02/16 04:06:08 dgp Exp $
+ * RCS: @(#) $Id: tclTestObj.c,v 1.34 2009/02/16 04:33:10 dgp Exp $
*/
#include "tclInt.h"
@@ -56,7 +56,7 @@ static int TeststringobjCmd(ClientData dummy, Tcl_Interp *interp,
typedef struct TestString {
int numChars;
int allocated;
- size_t uallocated;
+ int maxChars;
Tcl_UniChar unicode[2];
} TestString;
@@ -996,7 +996,7 @@ TeststringobjCmd(
TestString *strPtr;
static const char *const options[] = {
"append", "appendstrings", "get", "get2", "length", "length2",
- "set", "set2", "setlength", "ualloc", "getunicode",
+ "set", "set2", "setlength", "maxchars", "getunicode",
"appendself", "appendself2", NULL
};
@@ -1148,7 +1148,7 @@ TeststringobjCmd(
Tcl_SetObjLength(varPtr[varIndex], length);
}
break;
- case 9: /* ualloc */
+ case 9: /* maxchars */
if (objc != 3) {
goto wrongNumArgs;
}
@@ -1157,7 +1157,7 @@ TeststringobjCmd(
Tcl_GetObjType("string"));
strPtr = (TestString *)
(varPtr[varIndex])->internalRep.otherValuePtr;
- length = (int) strPtr->uallocated;
+ length = strPtr->maxChars;
} else {
length = -1;
}