summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclGetDate.y: use ckalloc/ckfree instead of malloc/free.das2007-06-292-108/+174
| | | | * generic/tclDate.c: bison 1.875e
* * generic/tclBasic.c (TclEvalEx): fix warnings.das2007-06-291-6/+5
|
* unsigned int type matchingdgp2007-06-281-4/+4
|
* * generic/tclBasic.c: Removed dead code, including thedgp2007-06-285-3389/+13
| | | | | | | | | | | | | * generic/tclExecute.c: entire file tclMathOp.c. * generic/tclInt.h: * generic/tclMathOp.c (removed): * generic/tclTestObj.c: * win/tclWinFile.c: * unix/Makefile.in: Updated to reflect deletion of tclMathOp.c. * win/Makefile.in: * win/makefile.bc: * win/makefile.vc:
* Silence constness warnings for TclStackFree when building with msvc.patthoyts2007-06-285-12/+12
|
* * generic/tclVar.c (UnsetVarStruct): fix possible segfault withMiguel Sofer2007-06-281-5/+6
| | | | recent streamlining.
* * generic/tclTrace.c: Corrected broken trace reversal logic indgp2007-06-272-6/+22
| | | | | | * generic/tclTest.c: TclCheckInterpTraces that led to infinite loop * tests/trace.test: when multiple Tcl_CreateTrace traces were set and one of them did not fire due to level restrictions. [Bug 1743931].
* * generic/tclBasic.c (TclEvalEx): Moved some arrays from thedgp2007-06-261-24/+35
| | | | C stack to the Tcl stack.
* * generic/tclVar.c (UnsetVarStruct): more streamlining.Miguel Sofer2007-06-261-10/+8
|
* * generic/tclExecute.c: Safety checks to avoid crashes in thedgp2007-06-261-8/+7
| | | | | TclStack* routines when called with an incompletely initialized interp. [Bug 1743302]
* * generic/tclVar.c (UnsetVarStruct): fixing incomplete change,Miguel Sofer2007-06-251-24/+25
| | | | more streamlining.
* * generic/tclVar.c (UnsetVarStruct): fixing incomplete changeMiguel Sofer2007-06-251-2/+2
|
* * generic/tclVar.c (TclDeleteCompiledLocalVars): removed inliningMiguel Sofer2007-06-241-57/+62
| | | | | | that ended up not really optimising (limited benchmarks). Now calling UnsetVarStruct (streamlined old code is #ifdef'ed out, in case better benchmarks do show a difference).
* * generic/tclVar.c (UnsetVarStruct): fixed a leak introduced inMiguel Sofer2007-06-241-1/+8
| | | | last commit.
* fix warningsdas2007-06-231-3/+4
|
* * generic/tclVar.c (UnsetVarStruct, TclDeleteVars): made the logicMiguel Sofer2007-06-231-177/+90
| | | | | | | | | slightly clearer, eliminated some duplicated code. *** POTENTIAL INCOMPATIBILITY *** (tclInt.h and Var struct users) The core never builds VAR_LINK variable to have traces. Such a "monster", should one exist, will now have its unset traces called *before* it is unlinked.
* * generic/tclCmdIL.c: More conversions to use TclStackAlloc.dgp2007-06-223-37/+15
| | | | * generic/tclScan.c:
* * generic/tclExecute.c: Revised TclStackRealloc() signature to betterdgp2007-06-223-36/+32
| | | | | | | * generic/tclInt.h: parallel (and fall back on) Tcl_Realloc. * generic/tclNamesp.c (TclResetShadowesCmdRefs): Replaced ckrealloc based allocations with TclStackRealloc allocations.
* * generic/tclBasic.c: Move most instances of the Tcl_Parse structdgp2007-06-214-212/+236
| | | | | | * generic/tclCompExpr.c: off the C stack and onto the Tcl stack. * generic/tclCompile.c: This is a rather large struct (> 3kB). * generic/tclParse.c:
* * generic/tclBasic.c (TEOvI): Made sure that leaveMiguel Sofer2007-06-212-97/+117
| | | | | | | * generic/tclExecute.c (INST_INVOKE): traces that were created * tests/trace.test (trace-36.2): during execution of an originally untraced command do not fire [Bug 1740962], partial fix.
* Fix comments referring to {expand}. [Bug 1600859]dkf2007-06-213-8/+8
|
* * generic/tclVar.c: streamline namespace vars deletion: onlyMiguel Sofer2007-06-201-11/+46
| | | | compute the variable's full name if the variable is traced.
* correct pointer type mismatch in latest commitdgp2007-06-201-2/+2
|
* * generic/tclInt.decls: Revised the interfaces of the routinesdgp2007-06-2018-90/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: TclStackAlloc and TclStackFree to make them easier for callers to use (or more precisely, harder to misuse). TclStackFree now takes a (void *) argument which is the pointer intended to be freed. TclStackFree will panic if that's not actually the memory the call will free. TSA/TSF also now tolerate receiving (interp == NULL), in which case they simply fall back to be calls to Tcl_Alloc/Tcl_Free. * generic/tclIntDecls.h: make genstubs * generic/tclBasic.c: Updated callers * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclFCmd.c: * generic/tclFileName.c: * generic/tclIOCmd.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclProc.c: * generic/tclTrace.c: * unix/tclUnixPipe.c:
* improve comments on Tcl stack managementMiguel Sofer2007-06-191-1/+12
|
* adding comments to GrowEvaluationStackMiguel Sofer2007-06-191-1/+13
|
* * generic/tclCmdIL.c (InfoFrameCmd):Miguel Sofer2007-06-185-69/+88
| | | | | | | * generic/tclCmdMZ.c (Tcl_SwitchObjCmd): * generic/tclCompile.c (TclInitCompileEnv): * generic/tclProc.c (Tcl_ProcObjCmd, SetLambdaFromAny): Moved the CmdFrame off the C stack and onto the Tcl stack.
* * generic/tclExecute.c (TEBC): Moved the CmdFrame off the C stackMiguel Sofer2007-06-181-19/+20
| | | | and onto the Tcl stack, between the catch and the execution stacks
* * generic/tclBasic.c (TclEvalEx,TclEvalObjEx): Moved the CmdFrame offdgp2007-06-181-29/+34
| | | | the C stack and onto the Tcl stack.
* * generic/tclBasic.c (TclEvalEx): Moved the CmdFrame off the C ↵dgp2007-06-181-32/+33
| | | | | | stack and onto the Tcl stack.
* Fix [Bug 1738542]dkf2007-06-172-142/+180
|
* * generic/tclProc.c (TclObjInterpProcCore): Use switch instead of adkf2007-06-161-76/+81
| | | | chain of if's for a modest performance gain and a little more clarity.
* * generic/tclCompCmds.c: Simplified [variable] compiler andMiguel Sofer2007-06-152-47/+41
| | | | | * generic/tclExecute.c: executor. Missed updates to "there is always a valid frame".
* * generic/tclCompile.c: reverted TclEvalObjvInternal andMiguel Sofer2007-06-153-244/+57
| | | | | | | | | | | | * generic/tclExecute.c: INST_INVOKE to essentially what they were * generic/tclBasic.c: previous to the commit of 2007-04-03 [Patch 1693802] and the subsequent optimisations, as they break the new trace tests described below. * generic/trace.test: added tests 36 to 38 for dynamic trace creation and addition. These tests expose a change in dynamics due to a recent round of optimisations. The "correct" behaviour is not described in docs nor TIP 62.
* * generic/tclInt.decls: Modif to the internals ofMiguel Sofer2007-06-144-222/+287
| | | | | | | * generic/tclInt.h: TclObjInterpProc to reduce stack * generic/tclIntDecls.h: consumption and improve task * generic/tclProc.c: separation. Changes the interface of TclObjInterpProcCore (patching TclOO simultaneously).
* * generic/tclProc.c (TclObjInterpProcCore): simplified objMiguel Sofer2007-06-141-10/+5
| | | | management in wrongNumArgs calls.
* remove C99 var declarationhobbs2007-06-141-3/+4
|
* * generic/tclCompile.c: SetByteCodeFromAny() can no longer returndgp2007-06-143-46/+25
| | | | | * generic/tclExecute.c: any code other than TCL_OK, so remove code * generic/tclProc.c: that formerly handled exceptional codes.
* * generic/tclExecute.c (TclCompEvalObj): missed update to "thereMiguel Sofer2007-06-142-21/+25
| | | | | | | | | is always a valid frame". * generic/tclProc.c (TclObjInterpProcCore): call TEBC directly instead of going through TclCompEvalObj - no need to check the compilation's freshness, this has already been done. This improves speed and should also provide some relief to [Bug 1066755].
* Silence a 'const'ness warning.dkf2007-06-121-2/+2
|
* Convert [info] into an ensemble command.dkf2007-06-123-191/+153
|
* Improve the argument substitution behaviour of Tcl_WrongNumArgs when faced withdkf2007-06-123-46/+73
| | | | ensemble and interp-alias rewrites.
* * generic/tclNamesp.c: tweaks to Tcl_GetCommandFromObj andMiguel Sofer2007-06-112-110/+70
| | | | | | * generic/tclObj.c: TclGetNamespaceFromObj; modified the usage of structs ResolvedCmdName and ResolvedNsname so that the field refNsPtr is NULL for fully qualified names.
* * generic/tclNamesp.c: tweaks to Tcl_GetCommandFromObj andMiguel Sofer2007-06-112-13/+12
| | | | * generic/tclObj.c: TclGetNamespaceFromObj
* * generic/tclExecute.c: comments added to explain iPtr->numLevelsMiguel Sofer2007-06-111-2/+5
| | | | management.
* * generic/tclBasic.c: Further TEOvI split, creating a newMiguel Sofer2007-06-103-77/+84
| | | | | | | * generic/tclCompile.h: TclEvalObjvKnownCommand() function to * generic/tclExecute.c: handle commands that are already known and are not traced. INST_INVOKE now calls into this function instead of inlining parts of TEOvI. Same perf, better isolation.
* fix Tcl_Panic error message typo [Bug 1712602]hobbs2007-06-101-2/+2
|
* * generic/tclExecute.c (TclExecuteByteCode): restore support forhobbs2007-06-101-9/+140
| | | | | INST_CALL_BUILTIN_FUNC1 and INST_CALL_FUNC1 bytecodes to support 8.4- precompiled sources (math functions). [Bug 1720895]
* * generic/tclInt.h:Miguel Sofer2007-06-104-103/+98
| | | | | | | | | * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclvar.c: new macros TclGetCurrentNamespace() and TclGetGlobalNamespace(); Tcl_GetCommandFromObj and TclGetNamespaceFromObj rewritten to make the logic clearer; slightly faster too.
* fix for ne TclCleanupCommandMacro (doh!)Miguel Sofer2007-06-101-2/+2
|