Skip to content
Tcl Source Code Check-in [59f23bd2a8]
Login

Check-in [59f23bd2a8]

Overview
Comment: * 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.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 59f23bd2a8b38b4723eedf7861b9a32ead1d623c
User & Date: dgp on 2009-02-14 23:07:17.000
Other Links: manifest | tags
Context
2009-02-15
16:49
* generic/tclStringObj.c: Removed limitation in Tcl_AppendObjToObj where the c... check-in: 24a9c9e7b5 user: dgp tags: trunk
2009-02-14
23:07
* generic/tclStringObj.c: Revisions so that we avoid creating the strange repr... check-in: 59f23bd2a8 user: dgp tags: trunk
22:54
* generic/tclTestObj.c: Revise updates to [teststringobj] so we don't get blocked by... check-in: 701671c72e user: dgp tags: trunk
Changes