summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-02-15 22:32:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-02-15 22:32:19 (GMT)
commit6c361fffabf21b1adb6113a86da85c4dc64a9f9d (patch)
tree111d23e254fa891d22c829ce3c92a8b9e988bda7 /ChangeLog
parentcf9a0cad9436ae952feb777e2e5e5c931e37d73e (diff)
downloadtcl-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--ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c546174..969da70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.