diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-07-01 13:32:19 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-07-01 13:32:19 (GMT) |
commit | cb26a29db0b87479d3d6ff6b60448c60f029e547 (patch) | |
tree | e73e09d79bb22ded791b192ae5b77df2f010a032 /generic/tclTestObj.c | |
parent | e0b5fcdb1f044670d0a010d38b4b88fedf16ab0d (diff) | |
download | tcl-cb26a29db0b87479d3d6ff6b60448c60f029e547.zip tcl-cb26a29db0b87479d3d6ff6b60448c60f029e547.tar.gz tcl-cb26a29db0b87479d3d6ff6b60448c60f029e547.tar.bz2 |
Use same internal representation for unicode strings in test-cases than in reality, in order to prevent surprises.
Diffstat (limited to 'generic/tclTestObj.c')
-rw-r--r-- | generic/tclTestObj.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c index f36b07f..a637498 100644 --- a/generic/tclTestObj.c +++ b/generic/tclTestObj.c @@ -19,6 +19,7 @@ #endif #include "tclInt.h" #include "tommath.h" +#include "tclStringRep.h" /* @@ -46,13 +47,6 @@ static int TestobjCmd(ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); static int TeststringobjCmd(ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); - -typedef struct TestString { - int numChars; - int allocated; - int maxChars; - Tcl_UniChar unicode[2]; -} TestString; #define VARPTR_KEY "TCLOBJTEST_VARPTR" #define NUMBER_OF_OBJECT_VARS 20 @@ -1141,7 +1135,7 @@ TeststringobjCmd( int varIndex, option, i, length; #define MAX_STRINGS 11 const char *index, *string, *strings[MAX_STRINGS+1]; - TestString *strPtr; + String *strPtr; Tcl_Obj **varPtr; static const char *const options[] = { "append", "appendstrings", "get", "get2", "length", "length2", |