Overview
| Artifact ID: | bfe2d58d228d23de0cd360ac3f02b3f3e7e9ca6a |
|---|---|
| Ticket: | 2251175fffffffffffffffffffffffffffffffff
Expand ({*}), constants, and list syntax |
| User & Date: | ferrieux on 2008-11-10 16:42:28 |
Changes
- icomment:
Hmm, maybe the reason is that it is not easy to tie any new allocations to the result of the parsing. Indeed the rest of tclParse.c arranges for token cells to be allocated/reallocated in a contiguous array, with their member strings pointing into the original source. So, if we (correctly) decide to call TclCopyAndCollapse for each "found element", we'll need to spit out the resulting backslash-subst'ed strings in some space that will die at Tcl_FreeParse time. Maybe we need to complexify the Tcl_Parse struct a bit for that (eg by keeping a single growing malloc'ed block similar to the token array but for massaged strings). Or maybe this is premature optimization again, and a linked list of individual mallocs will do... Miguel, do you confirm/infirm ?
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"