|
2003-03-13
| ||
| 10:00 | • Closed ticket [684982ffff]: remove TCL_BRACKET_TERM plus 7 other changes artifact: a466946050 user: dgp | |
| 09:39 | • Ticket [684982ffff]: 4 changes artifact: 099e63aefe user: dgp | |
| 09:39 | • Add attachment 684982-alt.patch to ticket [684982ffff] artifact: c999b7e1bd user: dgp | |
|
2003-03-09
| ||
| 04:40 | • Ticket [684982ffff] remove TCL_BRACKET_TERM status still Open with 4 other c... artifact: c06cfd1574 user: dgp | |
| 04:40 | • Ticket [684982ffff]: 4 changes artifact: 78338fd7d8 user: dgp | |
| 04:40 | • Add attachment 684982.patch to ticket [684982ffff] artifact: 22aff84b4f user: dgp | |
|
2003-03-05
| ||
| 13:58 | • Ticket [684982ffff] remove TCL_BRACKET_TERM status still Open with 1 other c... artifact: a54f6d7b0a user: dgp | |
|
2003-02-13
| ||
| 09:03 | • Ticket [684982ffff]: 4 changes artifact: ffddeed064 user: dgp | |
|
2003-02-12
| ||
| 16:30 | • Ticket [684982ffff]: 4 changes artifact: dcd8fe2355 user: dkf | |
| 07:03 | • Ticket [684982ffff]: 4 changes artifact: 819d7014c9 user: dgp | |
| 06:19 | • Ticket [684982ffff]: 4 changes artifact: 22769c8cfc user: dgp | |
|
2003-02-11
| ||
| 23:09 | • New ticket [684982ffff]. artifact: 4de1243333 user: dgp | |
remove TCL_BRACKET_TERM
Closed / Accepted684982ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-02-11 23:09:26
One of the flag values that can be set in interp->evalFlags is TCL_BRACKET_TERM. Setting this causes both Tcl_EvalEx() and TclSetByteCodeFromAny() to parse only to the next unquoted close-bracket when do evaluation or compilation in the interp. The only user of this power appears to be the command substitution portion of the [subst] command. It seems to me that the same effect could be achieved by appropriate calls to Tcl_ParseCommand() with its documented "nested" argument, rather than hacking around the internals of the interp structure.
dgpplain2003-02-12 06:19:32
Logged In: YES user_id=80530 Using the Tcl test suite as a poor man's coverage test for the Tcl source code, it appears that the code testing for TCL_BRACKET_TERM being set in TclSetByteCodeFromAny() is never active. If that's true, then TCL_BRACKET_TERM appear to exist only to configure a particular mode of operation in Tcl_EvalEx(). Would be better not to call Tcl_EvalEx() at all, but use Tcl_ParseCommand() and friends within Tcl_SubstObjCmd
dgpplain2003-02-12 07:03:03
Logged In: YES user_id=80530 The TclPro program tclcompiler directly calls TclSetByteCodeFromAny, so it's possible it cares about this TCL_BRACKET_TERM matter.
dkfplain2003-02-12 16:30:26
Logged In: YES user_id=79902 If you can figure out how to change Tcl_SubstObj() to not use TCL_BRACKET_TERM, you have my blessing to do it that way. Personally, I think it is getting very close to cargo-cult junk, and it is certainly making other parts of the core more complex. (FWIW, I looked into dumping the flag when I split [subst] into two parts, but got lost in the tangle below and gave up.)
dgpplain2003-02-13 09:03:39
Logged In: YES user_id=80530 there's probably an opportunity to get rid of iPtr->termOffset as well.
dgp Ticket [684982ffff]: 1 change
[History diff]2003-03-05 13:58:03
dgpplain2003-03-09 04:40:55
Logged In: YES user_id=80530 this patch includes the patch for FR 536831, but also includes the removal of lots of dead code, including TCL_BRACKET_TERM, iPtr->termOffset, and the "nested" argument to TclCompileScript. None of this is needed after [subst] uses more standard means to do its work.
dgpplain2003-03-09 04:40:56
File Added - 44459: 684982.patch
dgpplain2003-03-13 09:39:58
File Added - 44904: 684982-alt.patch Logged In: YES user_id=80530 Alternative patch encloses the alternative patch for Tcl FR 536831
dgpplain2003-03-13 10:00:33
Logged In: YES user_id=80530 alternative patch committed to HEAD. test away!
Log in (anonymous is fine) to add a comment.
Attachments:
- 684982-alt.patch [download] added by dgp on 2003-03-13 09:39:58. [details]
- 684982.patch [download] added by dgp on 2003-03-09 04:40:55. [details]