Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-17
04:33 • Closed ticket [218016ffff]: Request for Tcl_DStringRewind() plus 3 other cha... artifact: 71cd5c5cc4 user: dgp
04:32 • Open ticket [218016ffff]. artifact: 46187421d1 user: dgp
2000-10-26
08:12 • Closed ticket [218016ffff]. artifact: 833e94b8b7 user: welch
00:52 • New ticket [218016ffff]. artifact: 4303d61516 user: nobody

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.