Overview
| Comment: | Revised TclFindElement() interface. The final argument had been bracePtr, the address of a boolean var, where the caller can be told whether or not the parsed list element was enclosed in braces. In practice, no callers really care about that. What the callers really want to know is whether the list element value exists as a literal substring of the string being parsed, or whether a call to TclCopyAndCollpase() is needed to produce the list element value. Now the final argument is changed to do what callers actually need. This is a better fit for the calls in tclParse.c, where now a good deal of post-processing checking for "naked backslashes" is no longer necessary. ***POTENTIAL INCOMPATIBILITY*** For any callers calling in via the internal stubs table who really do use the final argument explicitly to check for the enclosing brace scenario. Simply looking for the braces where they must be is the revision available to those callers, and it will backport cleanly. Tests for expanded literals quoting detection. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk | potential incompatibility |
| Files: | files | file ages | folders |
| SHA1: |
60cf594f8284edcc7bce6e27ace97565 |
| User & Date: | dgp on 2011-05-02 20:17:50.650 |
| Other Links: | manifest | tags |
Context
|
2011-05-02
| ||
| 21:12 | Rewrite of parts of the switch compiler to better use the powers of TclFindElement() and do less par... check-in: 30dad692de user: dgp tags: trunk | |
| 20:17 | Revised TclFindElement() interface. The final argument had been bracePtr, the address of a boolean v... check-in: 60cf594f82 user: dgp tags: trunk, potential incompatibility | |
| 20:10 | Tests for expanded literals quoting detection. check-in: 52e2ce6ae1 user: dgp tags: core-8-5-branch | |
| 15:44 | Replace TclCountSpaceRuns() with TclMaxListLength() which is the function we actually want. check-in: 304fa3c29b user: dgp tags: trunk | |
Changes
Modified ChangeLog
from [32cc74e614]
to [78c7854b08].
[diff]
Modified generic/tclCmdMZ.c
from [a524d563bf]
to [b26af56488].
[diff]
Modified generic/tclDictObj.c
from [3b7dcdb44b]
to [6293b42b28].
[diff]
Modified generic/tclListObj.c
from [0a04bbbac5]
to [b891970c1f].
[diff]
Modified generic/tclParse.c
from [97bf185ec8]
to [b609883eae].
[diff]
Modified generic/tclUtil.c
from [1dc39eeece]
to [45b284fbfd].
[diff]
Modified tests/parse.test
from [bc9d788751]
to [7343a74a04].
[diff]