Overview
| Artifact ID: | 1b89fa6e45481c3cd76e1dc32a0722a6b9dace05 |
|---|---|
| Ticket: | 1246897fffffffffffffffffffffffffffffffff
Minor optimsations for Tcl_DStringAppend usage. |
| User & Date: | dgp on 2005-07-29 05:04:06 |
Changes
- icomment:
Logged In: YES user_id=80530 The docs aren't explicit about it (perhaps because they are so old), but I don't believe the Tcl_DString* routines were ever intended to support embedded NUL bytes within the dynamic strings. The comment on the "length" field of the Tcl_DString struct (in tcl.h) reads: Number of non-NULL characters in the string That said, it's clear that callers of Tcl_DStringAppend() and Tcl_DStringSetLength() could leave NUL bytes within the "length" of the string. Wise or not, the Tcl_DString* routines are fairly low level and have a long history of exposing that capability. If it gets too troubling, just make use of Tcl_Obj's for your dynamically sized string values.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "3 Low"
- username: "dgp"