| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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: 53b79ea68a8a27842e45d4b2badedb5cb20edeeb
|
|\ \
| |/
| | |
FossilOrigin-Name: 7c5f3a896176a014cf63b2a5ed63352ab77dbbc6
|
| |
| |
| | |
FossilOrigin-Name: c48b1de11383228d0ef68e49119d402c8dee031c
|
| |
| |
| | |
FossilOrigin-Name: 999804376cc4de0b5b25215372acd1bc46937c5e
|
| |
| |
| |
| |
| | |
creating our own in [regexp] and [regsub].
FossilOrigin-Name: 2f614e5f12241bd9ca500cfc606b6692b74a75e4
|
| |
| |
| |
| |
| | |
rest of Tcl source code. No ABI change. API change *should* be harmless.
FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
|
| |
| |
| |
| |
| | |
the Engineering Manual.
FossilOrigin-Name: 5cb634a1c1fc60d754c5b98a3d8760b06f21e777
|
|\ \
| |/
| |
| |
| | |
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
|
| | |
| | |
| | | |
FossilOrigin-Name: 51b2974fd9dd9e99c575bdd49c17c5dee8bcddc6
|
| | |
| | |
| | | |
FossilOrigin-Name: c602c11ee7842e35fb82cd4d51e86cc8c110115f
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
recursive parsing calls to convert O(N^2) operations of [subst]
to O(N).
FossilOrigin-Name: 405dec26fac44ab9f2c47f8015791633b3cacf95
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
EvalTokensStandard, Tcl_EvalEx, EvalEx, TclAdvanceContinuations,
TclEvalObjEx):
* generic/tclCmdMZ.c (Tcl_SwitchObjCmd, ListLines):
* 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/tclProc.c (TclCreateProc):
* generic/tclVar.c (TclPtrSetVar):
* tests/info.test (info-30.0-22):
Extended parser, compiler, and execution with code and attendant
data structures tracking the positions of continuation lines which
are not visible in script's, to properly account for them while
counting lines for #280, during direct and compiled execution.
FossilOrigin-Name: 9fa7a1ee78b8d615101ff67e210dde680136589f
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclTest.c: TclCheckInterpTraces that led to infinite loop
* tests/basic.test: when multiple Tcl_CreateTrace traces were set and
one of them did not fire due to level restrictions. [Bug 1743931].
FossilOrigin-Name: a32f24e76c41ce5cac687595ad2450339b8cc8f8
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclCmdMZ.c (Trace*Proc): Update Tcl_VarTraceProcs so
* generic/tclLink.c (LinkTraceProc): that they call
* generic/tclUtil.c (TclPrecTraceProc): Tcl_InterpDeleted() for
themselves, and do not rely on (frequently buggy) setting of the
TCL_INTERP_DESTROYED flag by the trace core.
* generic/tclVar.c: Update callers of CallVarTraces to not
pass in the TCL_INTERP_DESTROYED flag. Also apply filters so that
public routines only pass documented flag values down to lower level
routines.
* generic/tclVar.c (CallVarTraces): The setting of the
TCL_INTERP_DESTROYED flag is now done entirely within the
CallVarTraces routine, the only place it can be done right.
FossilOrigin-Name: e09d290d78d358bdb642204b2e1d794f4f93e953
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
TCL_TIP280.
* generic/tclCmdAH.c:
* generic/tclCmdIL.c:
* generic/tclCmdMZ.c:
* generic/tclCompCmds.c:
* generic/tclCompExpr.c:
* generic/tclCompile.c:
* generic/tclCompile.h:
* generic/tclExecute.c:
* generic/tclIOUtil.c:
* generic/tclInt.h:
* generic/tclInterp.c:
* generic/tclNamesp.c:
* generic/tclObj.c:
* generic/tclProc.c:
* tests/compile.test:
* tests/info.test:
* tests/platform.test:
* tests/safe.test:
FossilOrigin-Name: a88d79cbf88f04a3f3918625a36a4df1d75704a2
|
| | |
| | |
| | |
| | |
| | |
| | | |
* tests/trace.test: and enterstep traces. [Bug 1458266]
FossilOrigin-Name: f97f588d8c530014989abfb66765957c4458b30d
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclCmdMZ.c (TraceCommandProc):
* generic/tclInt.h (NS_KILLED):
* generic/tclNamesp.c (Tcl_DeleteNamespace
* tests/namespace.test (namespace-7.3-6):
* tests/trace.test (trace-20.13-16): fix [Bugs 1355942/1355342].
FossilOrigin-Name: 56a462e45ca6948aca94cef4232dec3080078aa1
|
| | |
| | |
| | | |
FossilOrigin-Name: 23f9e4bd609edb047f2e3849900975002b4ca5a4
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
assumption that all command traces are set at the script level.
Report/fix from Jacques H. de Villiers. [Bug 1337941]
FossilOrigin-Name: 2a6bcd3750a89ece869c0441799767ee6087c6f4
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
fix. Insure that a second call with TCL_TRACE_DESTROYED does not
lead to a second call to Tcl_EventuallyFree(). It is still true
that that second call should not happen, so the bug is not
completely fixed.
* tests/trace.test (test-18.3-4): added tests for bugs #1337229
and 1338280.
FossilOrigin-Name: 8e9ed63a056d38b4358a5c3dbb90b3cfd85bc06e
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclBinary.c:
* generic/tclCmdAH.c:
* generic/tclCmdIL.c:
* generic/tclCmdMZ.c:
* generic/tclExecute.c:
* generic/tclLink.c:
* generic/tclMain.c:
* generic/tclProc.c:
* generic/tclScan.c:
* generic/tclTest.c:
* generic/tclVar.c:
* mac/tclMacInit.c:
* unix/tclUnixInit.c:
* win/tclWinInit.c: Insure that the core never calls TclPtrSetVar,
Tcl_SetVar2Ex, Tcl_ObjSetVar2 or Tcl_SetObjErrorCode with a 0-ref
new value. It is not possible to handle error returns correctly in
that case [Bug 1334947], one has the choice of leaking the object
in some cases, or else risk crashing in some others.
FossilOrigin-Name: 8761ab798f625b66cadb3eaf8fafdedce6553a02
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclCmdMZ.c: of the direction of trace scanning, so the
* generic/tclInt.h: proper correction can be made. [Bug 1224585]
* tests/trace.test (trace-34.2,3):
FossilOrigin-Name: f5039da57115f31cf6d6c5a5474730c7233c7507
|
| | |
| | |
| | | |
FossilOrigin-Name: 176b2864bdc774cd96124add40eac34c5de751c3
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
count > 1 to return a string with a float value instead of a rounded
off integer. [Bug 1202178]
FossilOrigin-Name: f5fb72c5f99567926c50ce00f6e467059b70e13d
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclCmdMZ.c (Tcl_StringObjCmd): add extra checks to
prevent possible UMR in unichar cmp function for string map.
FossilOrigin-Name: 8a6c6f6b7db665360165609bb093dc7729d80d11
|
| | |
| | |
| | |
| | |
| | |
| | | |
* tests/string.test: [string is boolean] [Bug 1187123]
FossilOrigin-Name: 8c298ec89cec67a299becb8e763550d6c47b53e3
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclCmdMZ.c (Tcl_SubstObj):
* tests/basic.test (basic-46.4): Restored recursion limit
* tests/parse.test (parse-19.*): testing in nested command
substitutions within direct script evaluation (Tcl_EvalEx)
that got lost in the parser reforms of Tcl 8.1. Added tests for
correct behavior. [Bug 1115904]
FossilOrigin-Name: e64996b96be1348a3e8dc234c82ced8a96d485dd
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
cast of ClientData to (TraceCommandInfo *) when not warranted.
Thanks to Yuri Victorovich for the report. [Bug 1153871]
FossilOrigin-Name: 5e6df95dbf0fc88c3f9b4906aa393103ecf055e8
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* tests/trace.test (trace-33.1): to permit a variable trace
created with [trace variable] to be destroyed with [trace remove].
Thanks to Keith Vetter for the report.
FossilOrigin-Name: 0c5016cb647bbe0a800b39b204726d074cc21543
|
| | |
| | |
| | | |
FossilOrigin-Name: 0a400ea11f6cfb6c2399e4c7ce867d935696e4e3
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclTest.c (TestcmdtraceCmd): implementation introduced a
* tests/basic.test (basic-39.10): bug by testing the CallFrame
level instead of the iPtr->numLevels level when deciding what traces
created by Tcl_Create(Obj)Trace to call. Added test to expose the
error, and made fix. [Request 462580]
FossilOrigin-Name: af732ef905064138b979d8b449ff93b52626e8db
|
| | |
| | |
| | |
| | |
| | |
| | | |
(TclTraceCommandObjCmd): fix possible mem leak in trace info.
FossilOrigin-Name: ec54906e57c27dcaa452350bd8c05a091a900317
|
| | |
| | |
| | | |
FossilOrigin-Name: 5f7f128188d9650dc86bfe01049564dc28414056
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclCmdMZ.c: and execution traces that caused access to
freed memory in trace-32.1. [Bug 811483].
FossilOrigin-Name: d827d182f44e9b2b0f98c454da8b033825048ddd
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* tests/trace.test (trace-31,32.*): the introspection results
of both [trace info command] and [trace info execution] were getting
co-mingled. Thanks to Mark Saye for the report.
FossilOrigin-Name: 5e1bc3855cc6d878be767f1b5675b563f1de2bde
|
| | |
| | |
| | | |
FossilOrigin-Name: 287971e081364aec1c15a8b44f3e205f1b3f5a11
|
| | |
| | |
| | | |
FossilOrigin-Name: 31ae6969b0d4739ee8549597494ab52f605bf193
|
| | |
| | |
| | |
| | |
| | |
| | | |
crash when overflow sizes were given (throws error). [Bug #714106]
FossilOrigin-Name: 2e6f8b3c4f8c9f15914fa84426febb8b5f4dec55
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
inconsistent results of [string is integer] observed on systems
where sizeof(long) != sizeof(int). [Bug 718878]
* tests/string.test: Added tests for Bug 718878.
* doc/string.n: Clarified that [string is integer] accepts
32-bit integers.
FossilOrigin-Name: c1cbd75c51a0d96a027348d34a444ad0acc07242
|
| | |
| | |
| | |
| | |
| | |
| | | |
Tcl_DiscardResult() call to avoid memory leak.
FossilOrigin-Name: 1e197c79ffdbbf0aa000e002e7a2c81e2acc7972
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* tests/subst.test (subst-2.4): Tcl_SubstObj's incorrect
halting of substitution at the first \x00 byte. [Bug 685106]
FossilOrigin-Name: b9c155681d9cf8cf8f5c0d268239d353cdac48ae
|
| | |
| | |
| | |
| | |
| | |
| | | |
Backport of updates to make handling of RE line anchors correct.
FossilOrigin-Name: bc4ad84fe0702aabd1487c1d4e492d87a7c9a35f
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
jnterface implicitly decrements refcount of the passed result object
when the passed result object refcount was already zero.
FossilOrigin-Name: 470f531183c86e73a11eed54bea9c23cfd719366
|
| | |
| | |
| | | |
FossilOrigin-Name: 087fcb4964d359ecf923009f942061cce1f17633
|