Manifest of check-in
[14abdb946c]
- * 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.
by
dgp on
2009-02-15 22:32:19.
B ac61ee395893ab793e426d97e8fa37554b4f8ed7
C \s\s\s\s\s\s\s\s*\sgeneric/tclStringObj.c:\s\s\s\s\s\s\sReplace\sthe\s'size_t\suallocated'\sfield\n\s\s\s\s\s\s\s\sof\sthe\sString\sstruct,\sstoring\sthe\snumber\sof\sbytes\sallocated\sto\sstore\n\s\s\s\s\s\s\s\sthe\sTcl_UniChar\sarray,\swith\san\s'int\smaxChars'\sfield,\sstoring\sthe\n\s\s\s\s\s\s\s\snumber\sof\sTcl_UniChars\sthat\smay\sbe\sstored\sin\sthe\sallocated\sspace.\n\s\s\s\s\s\s\s\sThis\sreduces\smemory\srequirement\sa\ssmall\sbit,\sand\smakes\ssome\srange\n\s\s\s\s\s\s\s\schecks\ssimpler\sto\scode.\n
D 2009-02-15T22:32:19
F ChangeLog dda5afefe753172b7450eed98c07082dd985f5b8
F generic/tclExecute.c 3f51ca59b805e18cecb03e586fcb917386f357cc
F generic/tclInt.h 8e6d3eeb7fc8d312b5c6c9091adbbc5706b4fc59
F generic/tclStringObj.c 92b676a3adc4411c717e24fa6b1100c1c510a6b2
F generic/tclTestObj.c 14c0c5eaaec7d46c59c737eb849cafe91da93bf9
P 24a9c9e7b5f9a8a50d53708f644153b980b0aa98
U dgp
Z 288a4ab4f64103e1ff83ac26db650f61