Request for Tcl_DStringRewind()
Closed / Fixed218016ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:52:13
OriginalBugID: 1049 RFE Version: 8.1a2 SubmitDate: '1999-01-15' LastModified: '1999-11-02' Severity: LOW Status: Closed Submitter: pat ChangedBy: hobbs OS: Solaris OSVersion: 2.6 Machine: Other FixedDate: '2000-10-25' ClosedDate: '1999-11-02' Name: Jordan Hayes DesiredBehavior: I often find it useful to use a Tcl_DString and, after potentially growing it after adding many strings to it, reusing it without going through the overhead of Tcl_DStringFree(). The idiom I use is just to set dStr.string[0] to '\0' and dStr.length to 0. I think it might be useful to have either a real API to do this, or even just a macro. Patch: generic/tclUtil.c is where it would go, I suppose. There is a Tcl_DStringSetLength which essentially does this. -- 11/02/1999 hobbs
welch Closed ticket [218016ffff].
[History diff]2000-10-26 08:12:12
dgp Open ticket [218016ffff].
[History diff]2001-04-17 04:32:11
dgp Closed ticket [218016ffff].
[History diff]2001-04-17 04:33:25
Log in (anonymous is fine) to add a comment.