| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
Rewritten guts of machinery to produce string rep of lists. [Bug 3173086]
FossilOrigin-Name: 7720fbb825ec366737ab7e8c577ea25315c0a00e
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
FossilOrigin-Name: 60cf594f8284edcc7bce6e27ace97565ca19cc0f
|
| |
| |
| | |
FossilOrigin-Name: 52e2ce6ae1662f59115d45f84bd0d7c04f87df29
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
FossilOrigin-Name: 04d0ff20b9d7b9263bb7fd09e367b17560df5f72
|
|\ \
| |/
| |
| |
| | |
Use to replace calls to isspace() and their /* INTL */ risk.
FossilOrigin-Name: ef10af814d8b9963b42f8d064cc83c852b3d2adb
|
| |
| |
| |
| |
| | |
Use to replace calls to isspace() and their /* INTL */ risk.
FossilOrigin-Name: b1063a174c441631e4ee06c6495579afc7358479
|
|\ \
| |/
| | |
FossilOrigin-Name: abe0c909b179fa720cdd3fbddac814dd6caec3f9
|
| |
| |
| | |
FossilOrigin-Name: 44266eb7806ee0d2ca7311abeab92a7c02775e44
|
| |
| |
| |
| |
| | |
rest of Tcl source code. No ABI change. API change *should* be harmless.
FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
|
| |
| |
| |
| |
| | |
the Engineering Manual.
FossilOrigin-Name: 5cb634a1c1fc60d754c5b98a3d8760b06f21e777
|
|\ \
| |/
| |
| |
| |
| |
| |
| | |
* generic/tclCompile.c: with TclParseBackslash() where possible.
* generic/tclCompCmdsSZ.c:
* generic/tclParse.c:
* generic/tclUtil.c:
FossilOrigin-Name: 6b0527ff33cf34229d6dddc3d6b8998897633da3
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclCompile.c: with TclParseBackslash() where possible.
* generic/tclParse.c:
* generic/tclUtil.c:
FossilOrigin-Name: 7d1cc3f816c892df2a5c153dc5de99c63683e4a7
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* tests/parse.test: \x and \u substitutions. [Bug 3200987]
FossilOrigin-Name: ffce86baaf814506290c66aec3c23ceb28aa59f4
|
| |\ \
| | |/
| | |
| | |
| | | |
* tests/parse.test: \x and \u substitutions. [Bug 3200987]
FossilOrigin-Name: c65512452c3d72b4ebf661f5adbbb48566976cc4
|
| | |
| | |
| | |
| | |
| | | |
* tests/parse.test: \x and \u substitutions. [Bug 3200987]
FossilOrigin-Name: 36a55ea880afb7974e0d66f8ed29850ed5b8aa73
|
| | |
| | |
| | | |
FossilOrigin-Name: e3b87b44f3c1eed238311c4638bcd4185fde5c23
|
|\ \ \
| |/ /
| | |
| | |
| | | |
cause more harm than good. Purged them (except in zlib files).
FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
|
| |\ \
| | |/
| | |
| | |
| | | |
more harm than good. Purged them.
FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
|
| | |
| | |
| | |
| | |
| | | |
more harm than good. Purged them.
FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclCkalloc.c: call stacks for memory allocation to
* generic/tclParse.c: guarantee that any size values computed
* generic/tclThreadAlloc.c: are within the domains of the routines
they get passed to. [Bugs 2557696 and 2557796].
FossilOrigin-Name: b61f883a5364c3b2e5c347f6f08d8694fd5c3563
|
| | |
| | |
| | |
| | |
| | |
| | | |
after the end of buffer, [Bug 1813528] (Joe Mistachkin).
FossilOrigin-Name: 64f8f8b3068e1bf6bfeb953c742074a2175eae62
|
| | |
| | |
| | |
| | |
| | |
| | | |
might be different, be sure to use the latter for error reporting.
FossilOrigin-Name: 01fbe5d14ad428fbf8f95244d74398b30f5731b8
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
start==NULL and numBytes<0. This is coverity's bug #20
* generic/tclStringObj.c (STRING_SIZE): fix allocation for
0-length strings. This is coverity's bugs #54-5
FossilOrigin-Name: cbbabd2395ec80a8faa1b00c284951f29da82e61
|
| | |
| | |
| | | |
FossilOrigin-Name: d7d129a6b68c188c26eb0f54e23b4de96ef76de3
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
EvalTokensStandard, Tcl_EvalEx, EvalEx, TclAdvanceContinuations,
TclEvalObjEx):
* generic/tclCmdMZ.c (Tcl_SwitchObjCmd, TclListLines):
* generic/tclCompCmds.c (*):
* generic/tclCompile.c (TclSetByteCodeFromAny, TclInitCompileEnv,
TclFreeCompileEnv, TclCompileScript):
* generic/tclCompile.h (CompileEnv):
* generic/tclInt.h (ContLineLoc, Interp):
* generic/tclObj.c (ThreadSpecificData, ContLineLocFree,
TclThreadFinalizeObjects, TclInitObjSubsystem,
TclContinuationsEnter, TclContinuationsEnterDerived,
TclContinuationsCopy, TclContinuationsGet, TclFreeObj):
* generic/tclParse.c (TclSubstTokens, Tcl_SubstObj):
* generic/tclProc.c (TclCreateProc):
* generic/tclVar.c (TclPtrSetVar):
* tests/info.test (info-30.0-24):
Extended parser, compiler, and execution with code and attendant
data structures tracking the positions of continuation lines which
are not visible in script Tcl_Obj*'s, to properly account for them
while counting lines for #280.
FossilOrigin-Name: c838caae315d224c64d058c46bb9b1de2b84921a
|
| | |
| | |
| | | |
FossilOrigin-Name: 0fe1dac07375ec1e86f07d9d02ee00f4f00841b1
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* tests/parse.test (parse-15.60): routine has no mechanism to
return the "incomplete" status of "\\\n" so calling this routine
anywhere that can be reached within a Tcl_ParseCommand() call is a
mistake. In particular, ParseComment() must not use it. [Bug 1968882].
FossilOrigin-Name: 07e1b8c1f90936eb2ab57a034500900207c4dffb
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* use do { ... } while (0) in macros
* avoid shadowing one local variable with another
* use clearer 'foo.bar++;' instead of '++foo.bar;' where result not
required (i.e., semantically equivalent)
* follow Engineering Manual rules on spacing and declarations
FossilOrigin-Name: 4d8a4f639d28df5b5dfabd407be8efbb44454601
|
| | |
| | |
| | | |
FossilOrigin-Name: 511d94dd873e4ace6252b896eeb821f03023f00f
|
| | |
| | |
| | | |
FossilOrigin-Name: 26cee50b52bbaf9b250df69890480c9c4ba9c87d
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclParse.c: wrapper around TclNRSubstObj(). This has
* tests/basic.test: the effect of caching compiled bytecode in
* tests/parse.test: the value to be substituted. Note that
Tcl_SubstObj() now exists only for extensions. Tcl itself no longer
makes any use of it. Note also that TclSubstTokens() is now reachable
only by Tcl_EvalEx() and Tcl_ParseVar() so tests aiming to test its
functioning needed adjustment to still have the intended effect.
FossilOrigin-Name: 8b27ea01974fea7f70cb5c3312f7041fffc55166
|
| | |
| | |
| | |
| | |
| | |
| | | |
* tests/into.test: script substitutions. [Bug 2850901].
FossilOrigin-Name: 26367d8d40b0e1414c0652cd0ed168e5f1448fac
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclBasic.c: compiler routine for the [subst] command.
* generic/tclCmdMZ.c: This is a partial solution to the need to
* generic/tclCompile.c: NR-enable [subst] since bytecode execution is
* generic/tclCompile.h: already NR-enabled. [Bug 2314561] Two new
* generic/tclExecute.c: bytecode instructions, INST_NOP and
* generic/tclInt.h: INST_RETURN_CODE_BRANCH were added to support
* generic/tclParse.c: the new routine. INST_RETURN_CODE_BRANCH is
* tests/basic.test: likely to be useful in any future effort to
* tests/info.test: add a bytecode compiler routine for [try].
* tests/parse.test:
FossilOrigin-Name: ef0c2ac861f125966f91b34446c47581dd2f535e
|
| | |
| | |
| | | |
FossilOrigin-Name: f84de2f80a301e473a7a4a4b68449e731144f6ff
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Tcl_EvalEx, TclEvalEx, TclAdvanceContinuations, TclNREvalObjEx):
* generic/tclCmdMZ.c (Tcl_SwitchObjCmd, TclListLines):
* generic/tclCompCmds.c (*):
* generic/tclCompile.c (TclSetByteCodeFromAny, TclInitCompileEnv,
TclFreeCompileEnv, TclCompileScript, TclCompileTokens):
* generic/tclCompile.h (CompileEnv):
* generic/tclInt.h (ContLineLoc, Interp):
* generic/tclObj.c (ThreadSpecificData, ContLineLocFree,
TclThreadFinalizeObjects, TclInitObjSubsystem,
TclContinuationsEnter, TclContinuationsEnterDerived,
TclContinuationsCopy, TclContinuationsGet, TclFreeObj):
* generic/tclParse.c (TclSubstTokens, Tcl_SubstObj):
* generic/tclProc.c (TclCreateProc):
* generic/tclVar.c (TclPtrSetVar):
* tests/info.test (info-30.0-24):
Extended the parser, compiler, and execution engine with code and
attendant data structures tracking the position of continuation
lines which are not visible in the resulting script Tcl_Obj*'s, to
properly account for them while counting lines for #280.
FossilOrigin-Name: 9d8e49c947e582cc101d508ec7fe11969a00a44f
|
| | |
| | |
| | | |
FossilOrigin-Name: 06db62d6092e6af8b97e8fd3fd9049ee559ea65a
|
| | |
| | |
| | |
| | |
| | | |
literals.
FossilOrigin-Name: dc5280ff207323b387db85b406ab2d0df3d93cf6
|
| | |
| | |
| | | |
FossilOrigin-Name: 634598c6b7b5d576c4e5905219905632450fa92e
|
| | |
| | |
| | | |
FossilOrigin-Name: 92bf0067c9728845a6f1d29bab11d6ed986c9561
|
| | |
| | |
| | | |
FossilOrigin-Name: a1a8afc25d47810e677f42869f79723f80f3d6a6
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
returning to level 0, as opposed to it being called on starting a
substitution at level 0.
FossilOrigin-Name: f4786edb4c12139a2dadca67a328ba1ec51b017c
|
| | |
| | |
| | |
| | |
| | |
| | | |
[Bug 2017583], missing TclResetCancellation call.
FossilOrigin-Name: 34b2654de3aa23a1e6c8ef64637a70e3f4ce3cc0
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* tests/parse.test: numLevel management and TclInterpReady check
seems to be necessary after all.
FossilOrigin-Name: 589a13cd5a27c886a9ee4062646d5657b19d9293
|
| | |
| | |
| | | |
FossilOrigin-Name: f52ca120cd1fee11cfeba8126c58bbc7f1e09831
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclExecute.c: TclInterpReady().
* generic/tclParse.c:
FossilOrigin-Name: e494614ad5c280db801aa36a4de09b6501bd42c0
|
| | |
| | |
| | | |
FossilOrigin-Name: f6560eca1e41a7811edc2884dc58c1b0c201cf3d
|
| | |
| | |
| | |
| | |
| | |
| | | |
[Bug 2017583]
FossilOrigin-Name: f5e9b29a6627127210a3588d7ff729d1c07113df
|
| | |
| | |
| | | |
FossilOrigin-Name: 505c316922f01840b9fed6a409f5ca5786f5ad7d
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* tests/parse.test (parse-15.60): routine has no mechanism to
return the "incomplete" status of "\\\n" so calling this routine
anywhere that can be reached within a Tcl_ParseCommand() call is a
mistake. In particular, ParseComment() must not use it. [Bug 1968882].
FossilOrigin-Name: 0dd3531d099d79fe3ad244d818fcf73362efbb6d
|
|/ /
| |
| | |
FossilOrigin-Name: 2d205c22fbe5def21ccd36bc6f7b2d3831f6122d
|