summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* removed unused cmdInfo variableKevin B Kenny2004-09-071-2/+1
|
* * generic/tclTimer.c: Removed a premature optimisation thatKevin B Kenny2004-09-071-19/+4
| | | | | | | | | | | | | | | | | | | | | attempted to store the assoc data in the client data; the optimisation caused a bug that [after] would overwrite its imports. [Bug 1016167] * library/clock.tcl (InitTZData, ClearCaches): Changed so that the in-memory time zone :UTC (and its aliases) always gets reinitialised, in case tzdata is absent. [Bug 1019537, 1023779] * library/tzdata/*: Regenerated. * tests/clock.test (clock-31.*, clock-39.1): Corrected a problem where the 'system' locale tests fail on a non-English Windows machine. [Bug 1023761]. Added a test to make sure that alias time zones load correctly. [Bug 1023779]. * tools/tclZIC.tcl (writeLinks): Corrected a problem where alias time zone names were written incorrectly, causing them to fail to load at run time. [Bug 1023779]. * win/tclWinTime.c (Tcl_GetTime): Eliminated CPUID tests on Win64 - assuming that HAL vendors now do a better job of keeping the performance counters synchronized among CPU's. [Bug 1020445]
* Completed an incomplete undo of a mistaken commit that broke the HEAD.dgp2004-08-311-9/+9
|
* Undo mistaken commit of code in sandbox. <:} D'oh!dkf2004-08-311-111/+3
|
* Grammar and spelling fixes. [Patch 1018486]dkf2004-08-311-11/+119
|
* two bugs fixed in filesystem docs and testsvincentdarley2004-08-311-147/+153
|
* Fix a crash caused by sharing in [string map]. [Bug 1018562]dkf2004-08-301-5/+22
|
* Make [namespace which] use newer option parsing code for more flexibility.dkf2004-08-271-27/+21
|
* Minor fixesdkf2004-08-271-114/+100
|
* Fix [Bug 1017022] by factorizing out the ensemble lookup code and fixing once.dkf2004-08-271-26/+62
|
* * tests/timer.test (timer-10.1): Test for Bug 1016167.dgp2004-08-251-3/+9
| | | | | | * generic/tclTimer.c: Workaround for situation when a [namespace import] causes the objv[0] value to be something other than what Tcl_AfterObjCmd expects. [Bug 1016167].
* Fixes to ensemble -unknown handler processing to stop [namespace import] fromdkf2004-08-251-15/+5
| | | | | disrupting things horribly. Problem found by Don Porter when investigating [Bug 1016167].
* * generic/tclProc.c: The routine TclProcInterpProc was a ↵dgp2004-08-255-173/+29
| | | | | | | | | | | | specific * generic/tclTestProcBodyObj.c: instance of the general service already provided by TclObjInvokeProc. Removed TclProcInterpProc and TclGetInterpProc from the code... * generic/tclInt.decls ...and from the internal stubs table. * generic/tclIntDecls.h * generic/tclStubInit.c
* update out of date commentdgp2004-08-241-2/+2
|
* Ensure that the %ld conversion works correctly on 64-bit platforms. [Bug ↵dkf2004-08-191-10/+5
| | | | 1011860]
* 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.