summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* fix for ne TclCleanupCommandMacro (doh!)Miguel Sofer2007-06-101-2/+2
|
* * generic/tclExecute.c (INST_INVOKE): isolated two vars to theMiguel Sofer2007-06-091-3/+3
| | | | small block where they are actually used.
* * generic/tclObj.c (Tcl_GetCommandFromObj): rewritten to make theMiguel Sofer2007-06-091-41/+32
| | | | logic clearer; slightly faster too.
* * generic/tclBasic.c: Split TEOv in two, by separating aMiguel Sofer2007-06-096-159/+336
| | | | | | | | | | | | | | | | | | | | | | processor for non-TCL_OK returns. Also spli TEOvI in a full version that handles non-existing and traced commands, and a separate shorter version for the regular case. * generic/tclBasic.c: Moved the generation of command strings for * generic/tclTrace.c: traces: previously in Tcl_EvalObjv(), now in TclCheck[Interp|Execution]Traces(). Also insured that the strings are properly nul terminated at the correct length [Bug 1693986] * generic/tclBasic.c: Extend usage of TclLimitReady() and * generic/tclExecute.c: (new) TclLimitExceeded() macros. * generic/tclInt.h: * generic/tclInterp.c: * generic/tclInt.h: New TclCleanupCommandMacro for core usage. * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclObj.c:
* Make [string first] and [string last] clearerdkf2007-06-081-3/+4
|
* * generic/tclParse.c: fix for uninit read [Bug 1732414].Miguel Sofer2007-06-061-2/+3
|
* * generic/tclBasic.c: Added interp flag value ERR_LEGACY_COPY todgp2007-06-055-12/+24
| | | | | | | | * generic/tclInt.h: control the timing with which the global * generic/tclNamesp.c: variables ::errorCode and ::errorInfo get * generic/tclProc.c: updated after an error. This keeps more * generic/tclResult.c: precise compatibility with Tcl 8.4. * tests/result.test (result-6.2): [Bug 1649062]
* * generic/tclInt.h:Miguel Sofer2007-06-052-190/+296
| | | | * generic/tclExecute.c: Tcl-stack reform, [Patch 1701202]
* * generic/tclBasic.c: Removed code that dealt withdgp2007-05-305-257/+148
| | | | | | | | | | | | | | | | * generic/tclCompile.c: TCL_TOKEN_EXPAND_WORD tokens representing * generic/tclCompile.h: expanded literal words. These sections were mostly in place to enable [info frame] to discover line information in expanded literals. Since the parser now generates a token for each post-expansion word referring to the right location in the original script string, [info frame] gets all the data it needs. * generic/tclInt.h: Revised the parser so that it never produces * generic/tclParse.c: TCL_TOKEN_EXPAND_WORD tokens when parsing an * tests/parse.test: expanded literal word; that is, something like {*}{x y z}. Instead, generate the series of TCL_TOKEN_SIMPLE_WORD tokens to represent the words that expansion of the literal string produces. [RFE 1725186]
* * unix/configure: autoconf-2.59 (FC6 fork)dgp2007-05-182-19/+4
| | | | | | | | | | | | | | | | | * win/configure: * README: Bump version number to 8.5a7 * generic/tcl.h: * library/init.tcl: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/configure.in: * generic/tclParse.c: Disable and remove the ALLOW_EXPAND sections * tests/info.test: that continued to support the deprecated * tests/mathop.test: {expand} syntax. Updated the few remaining users of that syntax in the test suite.
* suppress compiler warnings about values computed and not useddgp2007-05-171-3/+3
|
* Added macro version of Tcl_LimitReady.dkf2007-05-172-72/+105
|
* * generic/tcl.decls: workaround 'make checkstubs' failures fromdas2007-05-161-1/+14
| | | | tclStubLib.c MODULE_SCOPE revert. [Bug 1716117]
* Change Tcl_InitStubs(), tclStubsPtr, and the auxilliary stubs tablejenglish2007-05-161-11/+4
| | | | | | | | pointers back to public visibility. These symbols need to be exported so that stub-enabled extensions may be statically linked into an extended tclsh or Big Wish with a dynamically-linked libtcl. [Bug#1716117]
* * generic/tclInt.h: Removed TclEvalObjEx and TclGetSrcInfoForPcpatthoyts2007-05-111-5/+1
| | | | from tclInt.h now they are in the internal stubs table.
* Minor whitespace cleanupdkf2007-05-111-1/+6
|
* Add a full stop to a commentdkf2007-05-111-2/+2
|
* Better const correctnessdkf2007-05-111-4/+4
|
* Minor comment improvements and code reordering for claritydkf2007-05-111-32/+42
|
* * generic/tclInt.h: TclFinalizeThreadAlloc() is always defined,dgp2007-05-091-2/+2
| | | | so make sure it is also always declared (with MODULE_SCOPE).
* * generic/tclInt.h: fix warning when building threaded with -DPURIFY.das2007-05-091-1/+2
|
* [Tcl Bug 1706140]dgp2007-05-075-63/+50
| | | | | | | | | | | | | | | | | * generic/tclLink.c (LinkTraceProc): Update Tcl_VarTraceProcs so that * generic/tclNamesp.c (Error*Read): they call Tcl_InterpDeleted() * generic/tclTrace.c (Trace*Proc): for themselves, and do not rely * generic/tclUtil.c (TclPrecTraceProc): on (frequently buggy) setting of the TCL_INTERP_DESTROYED flag by the trace core. * generic/tclVar.c: Update callers of TclCallVarTraces 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/tclTrace.c (TclCallVarTraces): The setting of the TCL_INTERP_DESTROYED flag is now done entirely within the TclCallVarTraces routine, the only place it can be done right.
* regendkf2007-05-052-2/+26
|
* Changes to allow the tip257 code to work as an extension properly post-tip280dkf2007-05-054-112/+161
|
* * tests/encoding.test: Modified so that encoding tests happenKevin B Kenny2007-05-041-2/+2
| | | | | | | | | in a private namespace, to avoid polluting the global one. This problem was discovered when running the test suite '-singleproc 1 -skip exec.test' because the 'path' variable in encoding.test conflicted with the one in io.test. * tests/io.test: Made more of the working variables private to the namespace.
* * generic/tclPathObj.c (Tcl_FSJoinPath, Tcl_FSGetNormalizedPath):Kevin B Kenny2007-05-021-3/+10
| | | | | | Corrected several memory leaks that caused refcount imbalances resulting in memory leaks on Windows. Thanks to Joe Mistachkin for the patch.
* * generic/tclTest.c (SimpleMatchInDirectory): Corrected a refcountKevin B Kenny2007-05-021-2/+1
| | | | | imbalance that affected the filesystem-[147]* tests in the test suite. Thanks to Don Porter for the patch. [Bug 1710707]
* * generic/tclVar.c (TclPtrSetVar): fixed leak whenever newvaluePtrMiguel Sofer2007-05-021-2/+7
| | | | | had refCount 0 and was used for appending (but not lappending). [Bug 1710710], thanks to mistachkin and kbk.
* * generic/tclIO.c (DeleteChannelTable): Made changes so thatKevin B Kenny2007-05-012-76/+83
| | | | | | | DeleteChannelTable tries to close all open channels, not just the first. [Bug 1710285] * generic/tclThread.c (TclFinalizeSynchronization): Make sure that TSD blocks get freed on non-threaded builds. [Bug 1710825]
* * generic/tclCmdMZ.c (STR_MAP): When [string map] has a pure dictdgp2007-05-011-1/+2
| | | | map, a missing Tcl_DictObjDone() call led to a memleak. [Bug 1710709]
* * generic/tclIO.c (FixLevelCode): Corrected reference countandreas_kupries2007-04-301-13/+19
| | | | | | mismanagement of newlevel, newcode. Changed to allocate the Tcl_Obj's as late as possible, and only when actually needed. [Bug 1705778, leak K29].
* * generic/tclProc.c (Tcl_ProcObjCmd, SetLambdaFromAny): CorrectedKevin B Kenny2007-04-301-74/+82
| | | | | reference count mismanagement on the name of the source file in the TIP 280 code. [Bug 1705778, leak K02 among other manifestations]
* Fix [Bug 1705778, leak K15]dkf2007-04-251-229/+264
|
* * generic/tclIOUtil.c (Tcl_FSChdir): Changed the memory managementKevin B Kenny2007-04-251-3/+6
| | | | | | to that the path returned from Tcl_FSGetNativePath is not duplicated before being stored as the current directory, to avoid a memory leak. [Bug 1705778, leak K01 among other manifestations]
* * generic/tclCompExpr.c (ParseExpr): Revised to be sure thatdgp2007-04-251-3/+17
| | | | | | an error return doesn't prevent all literals getting placed on the litList to be returned to the caller for freeing. Corrects some memleaks. [Bug 1705778, leak K23]
* * generic/tclListObj.c: reverting [Patch 738900] (committed onMiguel Sofer2007-04-241-106/+56
| | | | | | 2007-04-20). Causes some Tk test breakage of unknown importance, but the impact of the patch itself is likely to be so small that it does not warrant investigation at this time.
* * generic/tclListObj.c (TclLsetFlat): Fixed a bug where the newKevin B Kenny2007-04-241-2/+8
| | | | | list under construction was leaked in the error case.[Bug 1705778, leaks K13 and K14]
* Fix [Bug 1705778, leak K05]dkf2007-04-241-1/+7
|
* Fix [Bug 1705778, leak K04]dkf2007-04-241-17/+33
|
* * generic/tclNamesp.c (Tcl_DeleteNamespace): Corrected flaw in thedgp2007-04-241-1/+8
| | | | | flag marking scheme to be sure that global namespaces are freed when their interp is deleted. [Bug 1705778].
* * generic/tclBinary.c: Addressed several code paths where theKevin B Kenny2007-04-241-1/+6
| | | | | error return from the 'binary format' command leaked the result buffer.
* corrected botched indentsdgp2007-04-241-38/+38
|
* * generic/tclCompExpr.c (ParseExpr): Memory leak in error case; thedgp2007-04-241-1/+2
| | | | literal Tcl_Obj was not getting freed. [Bug 1705778, leak #1 (new)]
* * generic/tclExecute.c (TclExecuteByteCode): Plugged six memoryKevin B Kenny2007-04-241-1/+7
| | | | leaks in bignum arithmetic.
* * generic/tclIOCmd.c (Tcl_ReadObjCmd): Plugged a leak of theKevin B Kenny2007-04-242-3/+6
| | | | | | | | buffer object if the physocal read returned an error and the bypass area had no message. * generic/tclIORChan.c (TclChanCreateObjCmd): Plugged a leak of the return value from the "initialize" method of a channel handler.
* Plugged two memory leaksKevin B Kenny2007-04-231-3/+3
|
* * generic/tclCkalloc.c: fix warnings from gcc build configured withdas2007-04-233-31/+29
| | | | | * generic/tclCompile.c: --enable-64bit --enable-symbols=all. * generic/tclExecute.c:
* * generic/tclVar.c (UnsetVarStruct): Make sure thedgp2007-04-231-2/+2
| | | | | TCL_INTERP_DESTROYED flags gets passed to unset trace routines so they can respond appropriately. [Bug 1705778, leak #9]
* * generic/tclCompCmds.c (TclCompileUpvarCmd): Plugged a memoryKevin B Kenny2007-04-232-3/+9
| | | | | | | | leak in 'upvar' when compiling (a) upvar outside a proc, (b) upvar with a syntax error, or (c) upvar where the frame index is not known at compile time. * generic/tclParseExpr.c (ParseExpr): Plugged a memory leak when parsing expressions that contain syntax errors.
* * generic/tclCompile.c (TclFreeCompileEnv): Tip 280's new fieldMiguel Sofer2007-04-231-1/+4
| | | | extCmdMapPtr was not being freed [Bug 1705778, leak #1].