diff options
| author | dgp@users.sourceforge.net <dgp> | 2009-02-25 14:55:43 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2009-02-25 14:55:43 (GMT) |
| commit | 3f23b200effbbbd9e9d346efe7f23ce364960ac1 (patch) | |
| tree | 5efdf0ade44a52ff2cec1001265f6be0c578e345 /generic/tclCmdMZ.c | |
| parent | 50f7d5f6d84c0b6c25d863851bd279c96d95192b (diff) | |
| download | tcl-3f23b200effbbbd9e9d346efe7f23ce364960ac1.zip tcl-3f23b200effbbbd9e9d346efe7f23ce364960ac1.tar.gz tcl-3f23b200effbbbd9e9d346efe7f23ce364960ac1.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.c | 9 |
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; |
