Tcl Source Code

Check-in [a61fef8429]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add bytearray checking to TclCheckEmptyString(), and then use TclCheckEmptyString() in Tcl_AppendObjToObj and TclStringCat() to reduce string generation. jn: See discussion on mailing list "On the changing the sourcing of scripts to using strict profiles by default" for explanation why this commit is wrong, just as [e6fe76ae6b] and [4a7b807856] (which are similar commits, disguised as different ones).
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | pyk-whatever
Files: files | file ages | folders
SHA3-256: a61fef8429dfff4bc0489759384a53fac5e0b4d8ffc0f62c59d22dc8f4b9e144
User & Date: pooryorick 2023-04-23 11:28:19.902
Original Comment: Add bytearray checking to TclCheckEmptyString(), and then use TclCheckEmptyString() in Tcl_AppendObjToObj and TclStringCat() to reduce string generation.
References
2023-04-26
02:36 • Ticket [f5eadcbf9a] passing pointer to uninitialized memory leads Tcl_UniCharToU... artifact: e3104d5d36 user: pooryorick
Context
2023-04-23
23:57
Add bytearray checking to TclCheckEmptyString(), and then use TclCheckEmptyString() in Tcl_AppendObj... closed check-in: 0b684db687 user: pooryorick tags: pyk-Tcl_AppendObjToObj
11:39
Set the encoding profile to strict in Tcl_FSEvalFileEx(). This is independent of TIP 657: A scrip... closed check-in: f867f44c9c user: pooryorick tags: pyk-whatever
11:28
Add bytearray checking to TclCheckEmptyString(), and then use TclCheckEmptyString() in Tcl_AppendOb... check-in: a61fef8429 user: pooryorick tags: pyk-whatever
10:41
Support combination TCL_UTF_MAX=3 with TCL_NO_DEPRECATED=1 check-in: 4ba40baf3f user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to doc/StringObj.3.
Changes to generic/tclStringObj.c.
Changes to tests/string.test.