summaryrefslogtreecommitdiffstats
path: root/generic/tclTestObj.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2002-12-04 13:09:22 (GMT)
committervincentdarley <vincentdarley@noemail.net>2002-12-04 13:09:22 (GMT)
commitcabe117fad94ca9f74926ff76888f5951bf08cd9 (patch)
treeece8c5fb3e39618118a34fe0c86c472597b8cf16 /generic/tclTestObj.c
parentfbbc72899e3f18c85e2f92c58662b90c3c8cfa32 (diff)
downloadtcl-cabe117fad94ca9f74926ff76888f5951bf08cd9.zip
tcl-cabe117fad94ca9f74926ff76888f5951bf08cd9.tar.gz
tcl-cabe117fad94ca9f74926ff76888f5951bf08cd9.tar.bz2
filesystem cleanup fix, virtual filesystem load fix
FossilOrigin-Name: 7eeb4a7a690043cdbd826c0e9baf88e051da2b19
Diffstat (limited to 'generic/tclTestObj.c')
-rw-r--r--generic/tclTestObj.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c
index ec489d6..5c45d70 100644
--- a/generic/tclTestObj.c
+++ b/generic/tclTestObj.c
@@ -12,7 +12,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.11 2002/02/15 23:42:12 kennykb Exp $
+ * RCS: @(#) $Id: tclTestObj.c,v 1.12 2002/12/04 13:09:24 vincentdarley Exp $
*/
#include "tclInt.h"
@@ -911,7 +911,8 @@ TeststringobjCmd(clientData, interp, objc, objv)
TestString *strPtr;
static CONST char *options[] = {
"append", "appendstrings", "get", "get2", "length", "length2",
- "set", "set2", "setlength", "ualloc", (char *) NULL
+ "set", "set2", "setlength", "ualloc", "getunicode",
+ (char *) NULL
};
if (objc < 3) {
@@ -1073,6 +1074,12 @@ TeststringobjCmd(clientData, interp, objc, objv)
}
Tcl_SetIntObj(Tcl_GetObjResult(interp), length);
break;
+ case 10: /* getunicode */
+ if (objc != 3) {
+ goto wrongNumArgs;
+ }
+ Tcl_GetUnicodeFromObj(varPtr[varIndex], NULL);
+ break;
}
return TCL_OK;