From: Don P. <dg...@us...> - 2009-02-14 23:07:21
|
Update of /cvsroot/tcl/tcl In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22227 Modified Files: ChangeLog Log Message: * generic/tclStringObj.c: Revisions so that we avoid creating the strange representation of an empty string with objPtr->bytes == NULL and stringPtr->hasUnicode == 0. Instead in the situations where that was being created, create a traditional two-legged stork representation (objPtr->bytes = tclEmptyStringRep and stringPtr->hasUnicode = 1). In the situations where the strange rep was treated differently, continue to do so by testing stringPtr->numChars == 0 to detect it. These changes make the code more conventional so easier for new maintainers to pick up. Also sets up further simplifications. |