summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclCompile (tclInstructionTable): fixed bugs inMiguel Sofer2007-04-081-6/+9
| | | | description of dict instructions
* * generic/tclCompile (tclInstructionTable): fixed bug inMiguel Sofer2007-04-071-2/+2
| | | | description of INST_START_COMMAND.
* * generic/tclExecute.c (TEBC): small code reduction.Miguel Sofer2007-04-071-25/+2
|
* * generic/tclExecute.c (TEBC):Miguel Sofer2007-04-063-450/+488
| | | | | | | | * generic/tclNamespace.c (NsEnsembleImplementationCmd): * generic/tclProc.c (InitCompiledLocals, ObjInterpProcEx, TclObjInterpProcCore, ProcCompileProc): code reordering to reduce branching and improve branch prediction (assume that forward branches are typically not taken).
* Simplification of some argument processing through introduction of a helperdkf2007-04-051-26/+26
| | | | macro.
* Tighten up a commentdkf2007-04-051-8/+7
|
* added commentsMiguel Sofer2007-04-041-1/+5
|
* * generic/tclExecute.c: INST_INVOKE optimisation [Patch 1693802]Miguel Sofer2007-04-031-6/+24
|
* * generic/tclInt.decls: Moved TclGetNamespaceFromObj() toMiguel Sofer2007-04-034-7/+22
| | | | | | * generic/tclInt.h: the internal stubs table; regen. * generic/tclIntDecls.h: * generic/tclStubInit.c:
* * generic/tclNamesp.c: Revised ErrorCodeRead and ErrorInfoReaddgp2007-04-031-7/+21
| | | | | trace routines so they guarantee the ::errorCode and ::errorInfo variable always appear to exist. [Bug 1693252].
* * generic/tclBasic.c: Added bytecode compilers for theMiguel Sofer2007-04-037-85/+630
| | | | | | | | * 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-029-102/+47
| | | | | | | | | | | | * 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-012-311/+569
| | | | | | 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-301-7/+9
| | | | | | | * 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-301-13/+18
| | | | | | * 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-301-43/+31
| | | | | ckalloc calls with TclStackAlloc calls to use memory on Tcl's evaluation stack
* * generic/tclCmdMZ.c: Revised [string to* $s $first $last]dgp2007-03-301-8/+4
| | | | implementation to reduce number of allocs/copies.
* * generic/tclExecute.c: optimise the lookup of elements of indexedMiguel Sofer2007-03-301-11/+39
| | | | arrays.
* * generic/tclProc.c (Tcl_ApplyObjCmd):Miguel Sofer2007-03-291-5/+1
| | | | | | * 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-283-38/+87
| | | | | | | | | | | [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-271-12/+14
| | | | TclStackAlloc calls.
* * generic/tclBasic.c (DeleteInterpProc): pop the root frameMiguel Sofer2007-03-231-3/+4
| | | | pointer before deleting the global namespace [Bug 1658572]
* Reduce number of StackAlloc and StackFree calls.dgp2007-03-231-26/+16
|
* * generic/tclCmdAH.c (Tcl_ForeachObjCmd): Replaced arraysdgp2007-03-221-39/+28
| | | | | 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-221-30/+31
| | | | | | 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-215-66/+40
| | | | | | | | | * 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-212-47/+39
| | | | * generic/tclLiteral.c:
* Minor comment formatting changedkf2007-03-211-3/+2
|
* * generic/tclEnv.c: Some more ckalloc -> ckrealloc replacements.dgp2007-03-202-19/+9
| | | | * generic/tclLink.c:
* 2007-03-20 Kevin B. Kenny <kennykb@acm.org>Kevin B Kenny2007-03-202-734/+737
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-201-67/+61
| | | | CompileEnv fields to use ckrealloc() where appropriate.
* * generic/tclBinary.c (Tcl_SetByteArrayLength): Replaced ckalloc() /dgp2007-03-191-9/+5
| | | | memcpy() sequence with ckrealloc() call.
* * generic/tclBasic.c (Tcl_CreateMathFunc): Replaced somedgp2007-03-193-8/+7
| | | | | | | * 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.
* added missing panicdgp2007-03-171-1/+4
|
* fix warningsdas2007-03-162-3/+5
|
* * generic/tclIOUtil.c (Tcl_Stat): Reimplement workaroundmdejong2007-03-161-17/+20
| | | | | | 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.
* * generic/tclExecute.c (INST_FOREACH_STEP4): Make private copydgp2007-03-121-3/+5
| | | | | | * 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-121-5/+10
| | | | | | * 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-121-2/+4
| | | | | | | * 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-121-3/+6
| | | | | * 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-121-33/+43
|
* 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-111-3/+15
|
* Move 'return' in TclListObjSetElement into correct place!dkf2007-03-101-31/+27
|
* * generic/tclCmdIL (Tcl_LsortObjCmd): changed fix to [Bug 1675116]Miguel Sofer2007-03-101-10/+13
| | | | to use the cheaper TclListObjCopy() instead of Tcl_DuplicateObj()
* Fix [Bug 1675116]dkf2007-03-091-13/+20
|