diff options
author | dgp <dgp@users.sourceforge.net> | 2009-02-15 22:32:19 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2009-02-15 22:32:19 (GMT) |
commit | 6c361fffabf21b1adb6113a86da85c4dc64a9f9d (patch) | |
tree | 111d23e254fa891d22c829ce3c92a8b9e988bda7 /ChangeLog | |
parent | cf9a0cad9436ae952feb777e2e5e5c931e37d73e (diff) | |
download | tcl-6c361fffabf21b1adb6113a86da85c4dc64a9f9d.zip tcl-6c361fffabf21b1adb6113a86da85c4dc64a9f9d.tar.gz tcl-6c361fffabf21b1adb6113a86da85c4dc64a9f9d.tar.bz2 |
* generic/tclStringObj.c: Replace the 'size_t uallocated' field
of the String struct, storing the number of bytes allocated to store
the Tcl_UniChar array, with an 'int maxChars' field, storing the
number of Tcl_UniChars that may be stored in the allocated space.
This reduces memory requirement a small bit, and makes some range
checks simpler to code.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2009-02-15 Don Porter <dgp@users.sourceforge.net> + * generic/tclStringObj.c: Replace the 'size_t uallocated' field + of the String struct, storing the number of bytes allocated to store + the Tcl_UniChar array, with an 'int maxChars' field, storing the + number of Tcl_UniChars that may be stored in the allocated space. + This reduces memory requirement a small bit, and makes some range + checks simpler to code. + * generic/tclStringObj.c: Removed limitation in Tcl_AppendObjToObj where the char length of the result was only computed if the appended string was all single byte characters. |