diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-14 19:23:13 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-14 19:23:13 (GMT) |
commit | 831e40a351cc05df4e170c4606d090020bd80b3a (patch) | |
tree | 27cd02ad56bf9110c7e8075924870c7a10451345 /generic | |
parent | c9376306301e578615cfee52d2121f78cb31a225 (diff) | |
download | tcl-831e40a351cc05df4e170c4606d090020bd80b3a.zip tcl-831e40a351cc05df4e170c4606d090020bd80b3a.tar.gz tcl-831e40a351cc05df4e170c4606d090020bd80b3a.tar.bz2 |
Minor simplification in test-suite: Because "teststringobj maxchars" has the effect that the value is converted to Unicode for, we don't need a separate function "teststringobj getunicode" for that. So, merge the two functions to one.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclTestObj.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c index c9e4a6f..3f2aecd 100644 --- a/generic/tclTestObj.c +++ b/generic/tclTestObj.c @@ -1178,8 +1178,8 @@ TeststringobjCmd( Tcl_Obj **varPtr; static const char *const options[] = { "append", "appendstrings", "get", "get2", "length", "length2", - "set", "set2", "setlength", "maxchars", "getunicode", - "appendself", "appendself2", NULL + "set", "set2", "setlength", "maxchars", "appendself", + "appendself2", NULL }; if (objc < 3) { @@ -1344,13 +1344,7 @@ TeststringobjCmd( } Tcl_SetIntObj(Tcl_GetObjResult(interp), length); break; - case 10: /* getunicode */ - if (objc != 3) { - goto wrongNumArgs; - } - Tcl_GetUnicode(varPtr[varIndex]); - break; - case 11: /* appendself */ + case 10: /* appendself */ if (objc != 4) { goto wrongNumArgs; } @@ -1381,7 +1375,7 @@ TeststringobjCmd( Tcl_AppendToObj(varPtr[varIndex], string + i, length - i); Tcl_SetObjResult(interp, varPtr[varIndex]); break; - case 12: /* appendself2 */ + case 11: /* appendself2 */ if (objc != 4) { goto wrongNumArgs; } |