Manifest of check-in
[c2ee6476c2]
- 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.
New TclFindElement() is also a better fit for the [switch] compiler.
by
dgp on
2011-05-02 17:47:45.
B 4ab8a5f225abbedee41df2adc76a1719ea9514e6
C Revised\sTclFindElement()\sinterface.\nThe\sfinal\sargument\shad\sbeen\sbracePtr,\sthe\saddress\sof\sa\sboolean\svar,\swhere\nthe\scaller\scan\sbe\stold\swhether\sor\snot\sthe\sparsed\slist\selement\swas\senclosed\nin\sbraces.\s\sIn\spractice,\sno\scallers\sreally\scare\sabout\sthat.\s\sWhat\sthe\ncallers\sreally\swant\sto\sknow\sis\swhether\sthe\slist\selement\svalue\sexists\sas\sa\nliteral\ssubstring\sof\sthe\sstring\sbeing\sparsed,\sor\swhether\sa\scall\sto\nTclCopyAndCollpase()\sis\sneeded\sto\sproduce\sthe\slist\selement\svalue.\s\sNow\sthe\nfinal\sargument\sis\schanged\sto\sdo\swhat\scallers\sactually\sneed.\s\sThis\sis\sa\nbetter\sfit\sfor\sthe\scalls\sin\stclParse.c,\swhere\snow\sa\sgood\sdeal\sof\npost-processing\schecking\sfor\s"naked\sbackslashes"\sis\sno\slonger\snecessary.\n***POTENTIAL\sINCOMPATIBILITY***\nFor\sany\scallers\scalling\sin\svia\sthe\sinternal\sstubs\stable\swho\sreally\sdo\suse\nthe\sfinal\sargument\sexplicitly\sto\scheck\sfor\sthe\senclosing\sbrace\sscenario.\nSimply\slooking\sfor\sthe\sbraces\swhere\sthey\smust\sbe\sis\sthe\srevision\savailable\nto\sthose\scallers,\sand\sit\swill\sbackport\scleanly.\nNew\sTclFindElement()\sis\salso\sa\sbetter\sfit\sfor\sthe\s[switch]\scompiler.
D 2011-05-02T17:47:45.448
F ChangeLog a464db56ce58dd41e4e7dd76dcfee1098667c3f3
F generic/tcl.h 41eace2cbd37c7741f180d174012cac48610af68
F generic/tclBasic.c 6e18d24d685d822ef758b26a720401d187213379
F generic/tclBinary.c 8046b936651ec76cc897e10121bf41d2f03d8089
F generic/tclCmdIL.c 78075b9a12535dced5fc825b18b28cd18056051d
F generic/tclCmdMZ.c 9e49817de94d740ce6065efcc92591bdb708c6ea
F generic/tclCompCmds.c 8b2f82f6ef4a3aad8d0cbdc5236a323b7024e146
F generic/tclCompile.c 290f4d69968497ec9a3a35b8c1e1d05d817acd2e
F generic/tclConfig.c 97c789f01d6e11ddcb96a5ae1f9a849a3a874233
F generic/tclDictObj.c b051c74fe2799e23c93be8853777a825416c96a1
F generic/tclEncoding.c 8fd0508b17f70596a8ed2a31c6913b4961958995
F generic/tclFCmd.c 70db390459041eac307fda9609d3caa64e61d0fd
F generic/tclIO.c 893409755c8cc7ff7be183af8631ebcf9f0fcb41
F generic/tclIndexObj.c b65718f32763f408209006602ab3b83d0afcccec
F generic/tclInt.h 2866dea1b22d9ef42f4b19b78365ab3f4b65dc81
F generic/tclListObj.c 5abd21797ab766b19a78fb0614d06f82328ea3c0
F generic/tclNamesp.c 498d0bede4072a3167cdf78d43c6a5c45bfe5d6b
F generic/tclObj.c bc9913ab20ad14e32ed5bec4792440f52b812093
F generic/tclParse.c e77e6dfe4343a5413923e7e9eacb78606c77bc10
F generic/tclPathObj.c ece164d304c68fab1829f911d930f30af1bb3acd
F generic/tclProc.c 818b996c936f7fbc12db817efc3c989118769bb6
F generic/tclRegexp.c c3ec78fb1bf7f61f87c209d6a1afa260d6926779
F generic/tclStrToD.c 545974e615592d1655f66ef65c01f448345b1e69 x
F generic/tclStringObj.c 0f8f6b2c6d7ca3a0d8817bb637654688ae39a1a1
F generic/tclUtf.c 11a1eed14a4784f17797d989af83dbac45bac530
F generic/tclUtil.c 1d0d79a065269a63d6da7d31074012935427f1d2
F generic/tclVar.c 87e3183e568bbb8c5479381e069c55bff8a09c6e
F macosx/tclMacOSXFCmd.c d0b9adc97096640cc58b07e5ca8cc1c4ff9201f6
F unix/tclUnixFile.c c8fad475f005cbb52c31427ff081c23c62b84fe1
F unix/tclUnixThrd.c b97a1f25099d0a8feba39cb7375ddff36bf9d342
F win/configure 59cedf4741809228102cba5ffedf6c740e7b8da4 x
F win/configure.in 040cfc3e1737fbd43f2e08face27566304999263
F win/makefile.vc 603b94619f3ba119523a872de2bf4465e5474997
F win/rules.vc 771a9251dad89b00c99fbd96b5a9569d7c227591
F win/tclWinFile.c 15ea83effab0f52c49ab58e51340806ca11522b8
F win/tclWinPort.h b3529d9479e041faff6ccc0bf17e4c5432c64218
P 056df6f608da858cf1f48d0b3634a9d632ed9dfa 04d0ff20b9d7b9263bb7fd09e367b17560df5f72
R fb8a16396950716905bfa6cce2976af4
U dgp
Z 451a541a410f146a26c85a2c25a45697