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: |
59f23bd2a8b38b4723eedf7861b9a32e |
| 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
Modified ChangeLog
from [4c100ff6c5]
to [9b0ff9f1be].
[diff]
Modified generic/tclStringObj.c
from [6ede3307d4]
to [370f521fd2].
[diff]