diff options
author | dgp <dgp@users.sourceforge.net> | 2009-02-17 21:40:48 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2009-02-17 21:40:48 (GMT) |
commit | 72ccff69bc0257f9100758149d569b6299654067 (patch) | |
tree | 8e603cd497ab3874a9afa85dedd7ab1c8ce90b68 /ChangeLog | |
parent | 2a06ac14dadfef67de933e930cfec32263642fef (diff) | |
download | tcl-72ccff69bc0257f9100758149d569b6299654067.zip tcl-72ccff69bc0257f9100758149d569b6299654067.tar.gz tcl-72ccff69bc0257f9100758149d569b6299654067.tar.bz2 |
* generic/tclStringObj.c: Pare back the length of the unicode
array in a non-extended String struct to one Tcl_UniChar, meant to
hold the terminating NUL character. Non-empty unicode strings are
then stored by extending the String struct by stringPtr->maxChars
additional slots in that array with sizeof(Tcl_UniChar) bytes per slot.
This revision makes the allocation macros much simpler.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -6,6 +6,13 @@ 2009-02-17 Don Porter <dgp@users.sourceforge.net> + * generic/tclStringObj.c: Pare back the length of the unicode + array in a non-extended String struct to one Tcl_UniChar, meant to + hold the terminating NUL character. Non-empty unicode strings are + then stored by extending the String struct by stringPtr->maxChars + additional slots in that array with sizeof(Tcl_UniChar) bytes per slot. + This revision makes the allocation macros much simpler. + * generic/tclStringObj.c: Factor out common GrowUnicodeBuffer() and solve overflow and growth algorithm fallbacks in it. |