summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* silence compiler warning on systems without mktimeKevin B Kenny2004-08-181-6/+6
|
* TIP #173 and #209 implementation - see ChangeLog for detailsKevin B Kenny2004-08-184-301/+612
|
* fix for [Bug 1008314]Miguel Sofer2004-08-162-6/+48
|
* Plug leak and clarify codedkf2004-08-031-10/+9
|
* Add field initialization to fix [Bug 989298]. D'oh!dkf2004-08-031-1/+2
|
* TIP#207 IMPLEMENTATIONdgp2004-08-025-77/+158
| | | | | | | | | | * doc/interp.n: Added support for a -namespace option to the * generic/tclBasic.c: [interp invokehidden] command. Also added an * generic/tclInt.h: internal routine TclObjInvokeNamespace() and * generic/tclInterp.c: corrected the flag names TCL_FIND_ONLY_NS and * generic/tclNamesp.c: TCL_CREATE_NS_IF_UNKNOWN that are passed to the * generic/tclTrace.c: internal routine TclGetNamespaceForQualName(). * tests/interp.test: [Patch 981841]
* * generic/tclLiteral.c (TclCleanupLiteralTable): Correcteddgp2004-08-021-21/+42
| | | | | | * tests/compile.test (compile-12.4): flawed deletion of literal internal reps that could lead to accessing of freed memory. Thanks to Kevin Kenny for test case and fix [Bug 1001997].
* * generic/tclEvent.c (Tcl_Finalize): Re-organized Tcl_Finalizedgp2004-07-301-24/+24
| | | | | so that Tcl_ExitProc's that call Tcl_Finalize recursively do not cause deadlock. [Patch 999084 fixes Tk Bug 714956]
* * generic/tclVar.c: simplify tclLocalVarNameType, removing theMiguel Sofer2004-07-231-68/+39
| | | | | | reference to the corresponding proc. The reference is now seen as unnecessary, and it may cause leaking circular references under some circumstances (see for example [Bug 994838]).
* * generic/tclEvent.c: Correct threaded obj allocator tohobbs2004-07-213-5/+67
| | | | | | | * generic/tclInt.h: fully cleanup on exit and allow for * generic/tclThreadAlloc.c: reinitialization. [Bug #736426] * unix/tclUnixThrd.c: (mistachkin, kenny) * win/tclWinThrd.c:
* 2004-07-21 Kevin Kenny <kennykb@acm.org>Kevin B Kenny2004-07-213-3/+59
| | | | | | | | | | | | | * generic/tclBasic.c (DeleteInterpProc): * generic/tclLiteral.c (TclCleanupLiteralTable): * generic/tclInt.h: added a TclCleanupLiteralTable function, called from DeleteInterpProc, that frees internal representations of shared literals early when an interpreter is being deleted. This change corrects a number of memory mismanagement issues in the cases where the internal representation of one literal contains a reference to another, and avoids conditions such as resolved variable names referring to procedure and namespace contexts that no longer exist. [Bug 994838]
* cd infinite loop bug fixedvincentdarley2004-07-171-18/+37
|
* * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Corrected a typo in theandreas_kupries2004-07-161-3/+3
| | | | | generation of error messages and simplified by reusing data in a variable instead of retrieving the string again. Fixes [Tcl SF Bug 835289].
* Added new fix for the Tcl Bug #770053. Now we conditionaly performvasiljevic2004-07-151-2/+14
| | | | | the TclFinalizeNotifier in order to correct broken ref-counting of the notifier thread.
* * generic/tclIO.h (CHANNEL_INCLOSE): New flag. Set inandreas_kupries2004-07-152-2/+55
| | | | | | | | | | | | | | | | | | | | | | * generic/tclIO.c (Tcl_UnregisterChannel): 'Tcl_Close' while the * generic/tclIO.c (Tcl_Close): close callbacks are run. Checked in 'Tcl_Close' and 'Tcl_Unregister' to prevent recursive call of 'close' in the close-callbacks. This is a possible error made by implementors of virtual filesystems based on 'tclvfs', thinking that they have to close the channel in the close handler for the filesystem. * generic/tclIO.c: * generic/tclIO.h: * Not reverting, but #ifdef'ing the changes from May 19, 2004 out of the core. This removes the ***POTENTIAL INCOMPATIBILITY*** for channel drivers it introduced. This has become possible due to Expect gaining a BlockModeProc and now handling blockingg and non-blocking modes correctly. Thus [SF Tcl Bug 943274] is still fixed if a recent enough version of Expect is used. * doc/CrtChannel.3: Added warning about usage of a channel without a BlockModeProc.
* * generic/tclIOCmd.c (Tcl_PutsObjCmd): Added length check to theandreas_kupries2004-07-151-2/+2
| | | | | | old depreceated newline syntax, to ensure that only "nonewline" is accepted. [Tcl SF Bug 985869], reported by Joe Mistachkin <mistachkin@users.sourceforge.net>.
* Stuffed memory leak incurred by re-initializing of TSD slotsvasiljevic2004-07-151-6/+19
| | | | | | | | | | | | after the last call to TclFinalizeThreadData (done from within Tcl_FinalizeThread()). We basically just repeat the TclFinalizeThreadData() once more before tearing down TSD keys in TclFinalizeSynchronization(). There should be more elaborate mechanism in place for handling such issues, based on thread cleanup handlers registered on the OS level. Such change requires much more work and would also require TIP because some visible parts of Tcl API would have to be modified. In the meantime, this will do.
* * generic/tclLiteral.c (TclReleaseLiteral): Removed unusedKevin B Kenny2004-07-151-2/+1
| | | | variable 'codePtr' to silence a message from VC++.
* * generic/tclCompile.c (TclCompileScript):Miguel Sofer2004-07-152-20/+9
| | | | | | | | | * generic/tclLiteral.c (TclReleaseLiteral): fix for [Bug 467523], which resurfaced with the latest changes. The previous strategy was to have special code in TclReleaseLiteral to handle the self-references generated by empty scripts. The new approach avoids the self-reference altogether, by having empty scripts return an unshared literal.
* Removed initialization of TSD for the new thread in NewThreadProc sincevasiljevic2004-07-151-10/+1
| | | | this will result in TclInitNotifier never being called.
* Removed unused variable in NewThreadProc()vasiljevic2004-07-151-2/+3
|
* Backout of changes to fix the Tcl Bug #770053.vasiljevic2004-07-151-5/+9
| | | | See SF bugreport for more info.
* * generic/tclBasic.c (Tcl_EvalEx): leak fix by dgp, releaseMiguel Sofer2004-07-121-1/+2
| | | | objv[objectsUsed] on error.
* * generic/tclParse.c (Tcl_SubstObj): leak fix by dgp, releaseMiguel Sofer2004-07-121-1/+2
| | | | result on error.
* Another leak fix for [Bug 989093]dkf2004-07-111-1/+9
|
* Stop [dict unset] from leaking objects. [Bug 989093 in part]dkf2004-07-111-2/+4
|
* * generic/tclExecute.c (TEBC): fixed leak of expandNestList objsMiguel Sofer2004-07-111-1/+15
| | | | | when there is an error while an expansion is in progress (code added at checkForCatch).
* cd fix in vfsvincentdarley2004-07-111-12/+19
|
* Modified the logic of literal table cleanup at interp deletion time,Miguel Sofer2004-07-083-32/+45
| | | | | insuring that the fix of [Bug 983660] does not have a negative perf impact.
* * generic/tclCompile.c (TclCompileScript): fix for [Bug 458361].Miguel Sofer2004-07-071-1/+10
| | | | | Single-word scripts are compiled with an unshared cmdName to avoid shimmering between bytecode and cmdName reps.
* * generic.tclCmdMZ.c (TclMergeReturnOptions): Simplified logic anddgp2004-07-071-15/+22
| | | | removed potential memory leak. [Bug 986257].
* Add missing objTypes to catalogdkf2004-07-072-2/+6
|
* * tests/cmdMZ.test (cmdMZ-return-2.17): Added a test that a worddgp2004-07-061-4/+5
| | | | | | | | | containing backslash-quoted value is treated correctly. * generic/tclCompile.c (TclWordKnownAtCompileTime): [Bug 986196] Corrected flaw above and the flaw that caused TCL_TOKEN_SIMPLE_WORDs to have their original word value copied ( "{a b}" ) rather than the actual value ( "a b" ). Thanks to Kevin Kenny for report and tests.
* * generic/tclBasic.c (DeleteInterpProc): fix for [Bug 983660],Miguel Sofer2004-07-052-20/+22
| | | | | | | | | found by pspjuth. Tear down the global namespace before freeing the interp handle, to allow the bytecodes to free their non-shared literals. * generic/tclLiteral.c (TclReleaseLiteral): moved special code for self-ref so that it is also used for non-shared literals. Possible bug found by inspection.
* added support for wide integers to round(); [Bug 908375], reported byMiguel Sofer2004-07-031-40/+36
| | | | Hemang Lavana.
* Moved declaration of TclCompEvalObj() from tclCompile.h to the internalMiguel Sofer2004-07-034-4/+28
| | | | stubs table, for compiler experimentation.
* * generic/regcomp.c (stid): correct minor pointer size errorhobbs2004-07-021-2/+2
|
* * generic/tclPipe.c (TclCreatePipeline): applied TIP #202 patchhobbs2004-07-021-15/+36
| | | | | * doc/exec.n, tests/exec.test: that adds 2>@1 as a special case redirection of stderr to the result output.
* Fix missed references to 8.4, spotted by Theo Verelst.dkf2004-07-011-3/+3
|
* TIP#188 implementation. Thanks to KBK! [Patch 940915]dkf2004-06-301-8/+54
|
* Oops!dkf2004-06-241-5/+3
|
* Style and whitespace fixesdkf2004-06-241-443/+544
|
* * generic/tclThreadStorage.c: Corrected type casting errors that leddgp2004-06-241-3/+3
| | | | | | to calculation of a negative index value, thus accesses outside the threadStorageCache array, thus memory corruption. Crash observed on Mac OS X platform.
* Version 5 of [Patch 976496]Joe Mistachkin2004-06-245-5/+1249
|
* Version of [Patch 746578] that works with Linux and is likely to work elsewheredkf2004-06-231-1/+2
|
* * generic/tclEvent.c (NewThreadProc): Fixed broken build onKevin B Kenny2004-06-221-1/+4
| | | | | | Windows caused by missing TCL_THREAD_CREATE_RETURN. * tests/stack.test (stack-3.1): Corrected nuisance error in threaded builds.
* Integrated fix for Tcl Bug #770053 from core-8-4-branchvasiljevic2004-06-222-3/+97
|
* Make [Bug 975895] less likely to be hitdkf2004-06-211-257/+274
|
* * generic/tclEncoding.c: Static TclFindEncodings -> FindEncodings.dgp2004-06-183-15/+19
| | | | | | | * generic/tclInt.h: Updated TclpFindExecutable() so that failed * generic/tclUtil.c: attempts to find the executable are saved * unix/tclUnixFile.c: just as successful finds are. [Patch 966053] * unix/tclUnixTest.c:
* Fixed [Bug 886231] properly this time rather than with a broken version thatdkf2004-06-182-63/+69
| | | | breaks the core completely. :^}