summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclBasic.c: Added bytecode compilers for theMiguel Sofer2007-04-038-85/+639
| | | | | | | | * generic/tclCompCmds.c: variable linking commands: 'global', * generic/tclCompile.h: 'variable', 'upvar', 'namespace upvar' * generic/tclExecute.c: [Patch 1688593] * generic/tclInt.h: * generic/tclVar.c:
* * generic/tclBasic.c: Replace arrays on the C stack and ckallocdgp2007-04-0211-107/+66
| | | | | | | | | | | | * generic/tclExecute.c: calls with TclStackAlloc calls to use memory * generic/tclFCmd.c: on Tcl's evaluation stack. * generic/tclFileName.c: * generic/tclIOCmd.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclTrace.c: * unix/tclUnixPipe.c:
* Ensure that the count of commands commenced by bytecode is correct at all timesdkf2007-04-013-344/+609
| | | | | | even though INST_START_CMD is now issued more efficiently. Changes definition of I_S_C, but that's an 8.5 opcode so that shouldn't matter; tbcload doesn't work with 8.5 at the moment anyway.
* Minor simplification.dkf2007-04-011-11/+12
|
* * generic/tclCompile.c:dgp2007-03-302-7/+10
| | | | | | | * generic/tclCompExpr.c: * generic/tclCompCmds.c: Replace arrays on the C stack and ckalloc calls with TclStackAlloc calls to use memory on Tcl's evaluation stack
* * generic/tclCompExpr.c:dgp2007-03-302-13/+19
| | | | | | * generic/tclCompCmds.c: Replace arrays on the C stack and ckalloc calls with TclStackAlloc calls to use memory on Tcl's evaluation stack
* * generic/tclCompCmds.c: Replace arrays on the C stack anddgp2007-03-302-43/+35
| | | | | ckalloc calls with TclStackAlloc calls to use memory on Tcl's evaluation stack
* * generic/tclCmdMZ.c: Revised [string to* $s $first $last]dgp2007-03-302-8/+7
| | | | implementation to reduce number of allocs/copies.
* * tests/string.test: More [string reverse] tests.dgp2007-03-302-1/+32
|
* * generic/tclExecute.c: optimise the lookup of elements of indexedMiguel Sofer2007-03-302-11/+44
| | | | arrays.
* * generic/tclProc.c (Tcl_ApplyObjCmd):Miguel Sofer2007-03-293-6/+27
| | | | | | * tests/apply.test (9.3): Fixed Tcl_Obj leak on error return; an unneeded ref to lambdaPtr was being set and not released on an error return path.
* * generic/tclCmdMZ.c (STR_REVERSE): Implement the actualdgp2007-03-284-38/+99
| | | | | | | | | | | [string reverse] command in terms of the new TclStringObjReverse() routine. * generic/tclInt.h (TclStringObjReverse): New internal routine * generic/tclStringObj.c (TclStringObjReverse): that implements the [string reverse] operation, making use of knowledge/surgery of the String intrep to minimize the number of allocs and copies needed to do the job.
* * generic/tclCmdMZ.c (STR_MAP): Replace ckalloc calls withdgp2007-03-272-17/+24
| | | | TclStackAlloc calls.
* Thread exit handler marks the current thread as un-initialized.vasiljevic2007-03-242-12/+14
| | | | | | This allows exit handlers that are registered later to re-initialize this subsystem in case they need to use some sync primitives (cond variables) from this file again.
* * generic/tclBasic.c (DeleteInterpProc): pop the root frameMiguel Sofer2007-03-232-3/+9
| | | | pointer before deleting the global namespace [Bug 1658572]
* * win/Makefile.in: Added code to keep a Cygwin path name fromKevin B Kenny2007-03-232-3/+8
| | | | leaking into LIBRARY_DIR when doing 'make test' or 'make runtest'.
* Reduce number of StackAlloc and StackFree calls.dgp2007-03-231-26/+16
|
* * generic/tclCmdAH.c (Tcl_ForeachObjCmd): Replaced arraysdgp2007-03-222-39/+32
| | | | | on the C stack and ckalloc calls with TclStackAlloc calls to use memory on Tcl's evaluation stack.
* * generic/tclExecute.c: Revised GrowEvaluationStack to take andgp2007-03-222-30/+38
| | | | | | argument specifying the growth required by the caller, so that a single reallocation / copy is the most that will ever be needed even when required growth is large.
* * generic/tclExecute.c: More ckalloc -> ckrealloc conversions.dgp2007-03-216-66/+45
| | | | | | | | | * generic/tclLiteral.c: * generic/tclNamesp.c: * generic/tclParse.c: * generic/tclPreserve.c: * generic/tclStringObj.c: * generic/tclUtil.c:
* * generic/tclExecute.c: More ckalloc -> ckrealloc conversions.dgp2007-03-213-47/+44
| | | | * generic/tclLiteral.c:
* Minor comment formatting changedkf2007-03-211-3/+2
|
* * generic/tclEnv.c: Some more ckalloc -> ckrealloc replacements.dgp2007-03-203-19/+14
| | | | * generic/tclLink.c:
* 2007-03-20 Kevin B. Kenny <kennykb@acm.org>Kevin B Kenny2007-03-2021-1713/+1237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclDate.c: Rebuilt, despite Donal Fellows's comment when committing it that no rebuild was required. * generic/tclGetDate.y: According to Donal Fellows, "Introduce modern formatting standards; no need for rebuild of tclDate.c." * library/tzdata/America/Cambridge_Bay: * library/tzdata/America/Havana: * library/tzdata/America/Inuvik: * library/tzdata/America/Iqaluit: * library/tzdata/America/Pangnirtung: * library/tzdata/America/Rankin_Inlet: * library/tzdata/America/Resolute: * library/tzdata/America/Yellowknife: * library/tzdata/Asia/Choibalsan: * library/tzdata/Asia/Dili: * library/tzdata/Asia/Hovd: * library/tzdata/Asia/Jakarta: * library/tzdata/Asia/Jayapura: * library/tzdata/Asia/Makassar: * library/tzdata/Asia/Pontianak: * library/tzdata/Asia/Ulaanbaatar: * library/tzdata/Europe/Istanbul: Upgraded to Olson's tzdata2007d. * generic/tclListObj.c (TclLsetList, TclLsetFlat): * tests/lset.test: Changes to deal with shared internal representation for lists passed to the [lset] command. Thanks to Don Porter for fixing this issue. [Bug 1677512]
* Introduce modern formatting standards; no need for rebuild of tclDate.cdkf2007-03-201-640/+684
|
* Fix trivial error in comment.dkf2007-03-201-2/+2
|
* * generic/tclCompile.c: Revise the various expansion routines fordgp2007-03-202-67/+64
| | | | CompileEnv fields to use ckrealloc() where appropriate.
* * generic/tclBinary.c (Tcl_SetByteArrayLength): Replaced ckalloc() /dgp2007-03-192-9/+8
| | | | memcpy() sequence with ckrealloc() call.
* * generic/tclBasic.c (Tcl_CreateMathFunc): Replaced somedgp2007-03-196-13/+20
| | | | | | | * generic/tclEvent.c (Tcl_CreateThread): calls to Tcl_Alloc() * generic/tclObj.c (UpdateStringOfBignum): with calls to * unix/tclUnixTime.c (SetTZIfNecessary): ckalloc(), which better * win/tclAppInit.c (setargv): supports memory debugging.
* Fixed bug in regsub example.dkf2007-03-192-24/+27
|
* * win/tclWinReg.c (GetKeyNames): Size the buffer for enumeratingKevin B Kenny2007-03-173-24/+94
| | | | | | | key names correctly, so that Unicode names exceeding 127 chars can be retrieved without crashing. [Bug 1682211] * tests/registry.test (registry-4.9): Added test case for the above bug.
* added missing panicdgp2007-03-171-1/+4
|
* fix warningsdas2007-03-162-3/+5
|
* * generic/tclIOUtil.c (Tcl_Stat): Reimplement workaroundmdejong2007-03-162-17/+27
| | | | | | to avoid gcc warning by using local variables. When the macro argument is of type long long instead of long, the incorrect warning is not generated.
* * win/Makefile.in: Fully qualify LIBRARY_DIR somdejong2007-03-152-2/+9
| | | | that `make test` does not depend on working dir.
* * tests/parse.test: Add two backslash newline parse tests.mdejong2007-03-152-1/+11
|
* Added test for [Bug 1675044].dgp2007-03-131-1/+18
|
* Fix documentation typospatthoyts2007-03-121-6/+6
|
* * generic/tclExecute.c (INST_FOREACH_STEP4): Make private copydgp2007-03-123-4/+23
| | | | | | * tests/foreach.test (foreach-10.1): of value list to be assigned to variables so that shimmering of that list doesn't lead to invalid pointers. [Bug 1671087]
* * generic/tclEvent.c (HandleBgErrors): Make efficient private copydgp2007-03-123-6/+33
| | | | | | * tests/event.test (event-5.3): of the command prefix for the interp's background error handling command to avoid panics due to pointers to memory invalid after shimmering. [Bug 1670155]
* * generic/tclNamesp.c (NsEnsembleImplementationCmd): Make efficientdgp2007-03-123-3/+25
| | | | | | | * tests/namespace.test (namespace-42.8): private copy of the command prefix as we invoke the command appropriate to a particular subcommand of a particular ensemble to avoid panic due to shimmering of the List intrep. [Bug 1670091]
* * generic/tclVar.c (TclArraySet): Make efficient private copy ofdgp2007-03-123-4/+25
| | | | | * tests/var.test (var-17.1): the "list" argument to [array set] to avoid crash due to shimmering invalidating pointers. [Bug 1669489].
* Fix [Bug 1679072]dkf2007-03-122-36/+51
|
* Plug a leak of encodingsdkf2007-03-121-27/+27
|
* Tightening up declaration scopes, improving some comments with xrefs to bugDBdkf2007-03-121-44/+49
|
* Fix [Bug 1675044]dkf2007-03-112-6/+24
|
* Move 'return' in TclListObjSetElement into correct place!dkf2007-03-101-31/+27
|
* * generic/tclCmdIL (Tcl_LsortObjCmd): changed fix to [Bug 1675116]Miguel Sofer2007-03-102-10/+18
| | | | to use the cheaper TclListObjCopy() instead of Tcl_DuplicateObj()
* * library/platform/shell.tcl: Made more robust if an older platformandreas_kupries2007-03-095-8/+28
| | | | | | | * library/platform/pkgIndex.tcl: package is present in the inspected * unix/Makefile.in: shell. Package forget it to prevent errors. Bumped * win/Makefile.in: package version to 1.1.3, and updated the makefiles installing it as Tcl Module.
* Fix [Bug 1675116]dkf2007-03-093-21/+38
|