summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdMZ.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-02-25 14:55:43 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-02-25 14:55:43 (GMT)
commit57ca69ee1a85fea74e73766265b67cc85d74081d (patch)
tree5efdf0ade44a52ff2cec1001265f6be0c578e345 /generic/tclCmdMZ.c
parentd24c35f276199a428012749034360a0ab17c00da (diff)
downloadtcl-57ca69ee1a85fea74e73766265b67cc85d74081d.zip
tcl-57ca69ee1a85fea74e73766265b67cc85d74081d.tar.gz
tcl-57ca69ee1a85fea74e73766265b67cc85d74081d.tar.bz2
* generic/tclCmdMZ.c: Since Tcl_GetCharLength() has its own
* generic/tclExecute.c: optimizations for the tclByteArrayType, stop having the callers do them.
Diffstat (limited to 'generic/tclCmdMZ.c')
-rw-r--r--generic/tclCmdMZ.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c
index 15895c1..5a6f947 100644
--- a/generic/tclCmdMZ.c
+++ b/generic/tclCmdMZ.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCmdMZ.c,v 1.179 2009/02/05 22:12:44 dkf Exp $
+ * RCS: @(#) $Id: tclCmdMZ.c,v 1.180 2009/02/25 14:56:05 dgp Exp $
*/
#include "tclInt.h"
@@ -1345,7 +1345,7 @@ StringIndexCmd(
}
/*
- * Get Unicode or byte-array char length to calulate what 'end' means.
+ * Get the char length to calulate what 'end' means.
*/
length = Tcl_GetCharLength(objv[1]);
@@ -2047,9 +2047,8 @@ StringRangeCmd(
}
/*
- * Get the length in actual characters; this uses the unicode string rep
- * or the byte-array rep. We then reduce it by one because 'end' refers to
- * the last character, not one past it.
+ * Get the length in actual characters; Then reduce it by one because
+ * 'end' refers to the last character, not one past it.
*/
length = Tcl_GetCharLength(objv[1]) - 1;