summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Only schedule leave traces if enter traces complete successfully.dgp2013-08-141-12/+10
| | | | | | | | | | | | | | | | This avoids a memleak, and opens a data slot, so we can pass objc, objv without the need to copy them into a list value.
| * | | Use a new flag value TCL_EVAL_SOURCE_IN_FRAME passed in by callers todgp2013-08-121-34/+9
| | | | | | | | | | | | | | | | | | | | determine whether the pre-subst source information in a CmdFrame is to be used. This takes the place of numLevels cross checking, so that field is removed. Routines are consolidated as well.
| * | | Arrange for both execution traces and [info frame] to get their pre-substdgp2013-08-101-26/+15
| | | | | | | | | | | | | | | | source strings from a common routine, with care taken to reduce copying by that routine.
| * | | Revised GetCommandSource() can (and thus should) return a normal zerodgp2013-08-091-2/+1
| | | | | | | | | | | | refcount value.
| * | | Revise GetCommandSource() to return a normal Tcl_Obj value.dgp2013-08-071-18/+8
| | | |
| * | | Give (objc, objv) their own ride from enter to leave traces.dgp2013-08-071-4/+4
| | | |
| * | | Test for TclContinuationsGet() usage, and simplifications.dgp2013-08-071-17/+1
| | | |
| * | | Add comment stating new limitation on Tcl(NR)EvalObjEx() interface.dgp2013-08-071-0/+5
| | | |
| * | | All use of the evalFlag value TCL_EVAL_CTX is unused by the code anddgp2013-08-061-87/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unreachable by extensions. This checkin removes all the code supporting that flag value. The consequence is that all the calls to TclNREvalObjEx() and its callers that are currently choosing not to pass the TCL_EVAL_DIRECT flag in when they pass in a non-NULL invoker will no longer be free to change their mind. That might be reason not to adopt this change.
| * | | Add assertions that will guide and protect more discovery of dead code for ↵dgp2013-08-061-0/+2
| | | | | | | | | | | | | | | | elimination.
| * | | Eliminate the union that is no longer needed.dgp2013-08-061-7/+6
| | | |
| * | | Revert the changes that went too far and broke things.dgp2013-08-061-13/+26
| | | |
| * | | The value TCL_LOCATION_EVAL_LIST in the type field of a CmdFrame appears todgp2013-08-061-44/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exist only for the sake of taking great pains to make sure that pure list values remain pure list values. The value of pure list values is no longer what it once was. For a long long time now, any canonical list values have been equally good. This branch is Work In Progress eliminating the complication of the additional type value. Currently some minor botches are breaking execution tracing tests.
| * | | merge trunkdgp2013-07-181-1/+4
| |\ \ \
| | * | | [Bug 1c17fbba5d] Fix -errorinfo from syntax errors so that the error isdgp2013-07-181-1/+4
| | | | | | | | | | | | | | | not obscured. Instead highlight it by making it the last character quoted.
| * | | | Eliminate the litInfo table and all the code tending to its care and feeding.dgp2013-07-161-69/+65
| | | | | | | | | | | | | | | | | | | | The pc -> command index mapping function it provided can be achieved using other data already in the ByteCode struct.
| * | | | Build CompileBasicNArgCommand on top of TclCompileInvocation.dgp2013-07-151-4/+18
| |/ / /
* | | | Code-readable disassembler: tcl::unsupported::getbytecodedkf2013-06-111-1/+3
|/ / /
* | | Improve compatibility detection for <time.h> and <sys/stat.h>: jan.nijtmans2013-06-111-3/+4
|\ \ \ | |/ / | | | | | | - Move <time.h> before other includes on Windows, so we are sure the time_t definition being checked doesn't come from <sys/types.h>. - Padding at the end of Tcl_StatBuf doesn't influcence binary compatibility, so relax panic check accordingly.
| * | Improve compatibility detection for <time.h> and <sys/stat.h>: jan.nijtmans2013-06-111-3/+4
| | | | | | | | | | | | - Move <time.h> before other includes on Windows, so we are sure the time_t definition being checked doesn't come from <sys/types.h>. - Padding at the end of Tcl_StatBuf doesn't influcence binary compatibility, so relax panic check accordingly.
* | | Add support for the latest mingw-4.0-rc1. See: ↵jan.nijtmans2013-05-161-0/+11
|\ \ \ | |/ / | | | | | | [http://sourceforge.net/p/mingw/mingw-org-wsl/ci/4.0-rc1/tree/NEWS]
| * | _USE_32BIT_TIME_T is already defined in tclWinPort.hjan.nijtmans2013-05-161-4/+0
| | |
| * | Add support for the latest mingw-4.0-rc1. See: ↵jan.nijtmans2013-05-161-0/+15
| |\ \ | | | | | | | | | | | | [http://sourceforge.net/p/mingw/mingw-org-wsl/ci/4.0-rc1/tree/NEWS]
| | * | Add support for the latest mingw-4.0-rc1. See: ↵jan.nijtmans2013-05-161-0/+15
| | | | | | | | | | | | | | | | [http://sourceforge.net/p/mingw/mingw-org-wsl/ci/4.0-rc1/tree/NEWS]
| | * | Make (deprecated) Tcl_EvalObj/Tcl_GlobalEvalObj macro's always, not only ↵jan.nijtmans2013-04-091-0/+2
| | | | | | | | | | | | | | | | when using stubs.
* | | | A better technique for [list {*}blah]. Remove the INST_LIST_EXPANDED opcode ↵dkf2013-05-151-74/+82
| | | | | | | | | | | | | | | | (and the complex machinery associated with it) as as it is no longer needed.
* | | | Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj as ↵jan.nijtmans2013-04-231-1/+1
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | | | | macros using Tcl_NewIntObj, Tcl_DbNewLongObj and Tcl_SetIntObj. Starting with Tcl 8.5, this is exactly the same, it only eliminates code duplication. Eliminate use of NO_WIDE_TYPE everywhere: It's exactly the same as TCL_WIDE_INT_IS_LONG
| * | 3610404 When we let go of commandPtr in TclEvalObjvInternal, NULL out thedgp2013-04-161-0/+1
| | | | | | | | | variable so we don't mistakenly try to use the value later after we freed it.
* | | Make Tcl_EvalObj/Tcl_GlobalEvalObj a macro always, not only when using stubs.jan.nijtmans2013-04-041-0/+2
|\ \ \ | |/ /
| * | Make Tcl_EvalObj/Tcl_GlobalEvalObj a macro always, not only when using stubs.jan.nijtmans2013-04-041-0/+2
| | |
* | | If TCL_NO_DEPRECATED is defined, don't depend on ↵jan.nijtmans2013-03-221-1/+1
| | | | | | | | | | | | | | | Tcl_CreateMathFunc()/Tcl_SaveResult() in testcases any more. Prevent endless loop in Tcl_AddObjErrorInfo, when TCL_NO_DEPRECATED is defined.
* | | Allow Tcl to be compiled even if Tcl_Eval, Tcl_GetVar, ... are macros.jan.nijtmans2013-02-281-0/+4
| | |
* | | remove unused codemig2013-01-251-3/+0
| | |
* | | Allow win32 build with -DTCL_NO_DEPRECATED, just as the UNIX build, off by ↵jan.nijtmans2013-01-161-2/+0
|\ \ \ | |/ / | | | | | | | | | default. Define Tcl_EvalObj and Tcl_GlobalEvalObj as macros, even when TCL_NO_DEPRECATED is defined, so Tk can benefit from it too.
| * | Allow win32 build with -DTCL_NO_DEPRECATED, just as the UNIX build, off by ↵jan.nijtmans2013-01-161-2/+0
| |\ \ | | |/ | | | | | | | | | default. Define Tcl_EvalObj and Tcl_GlobalEvalObj as macros, even when TCL_NO_DEPRECATED is defined, so Tk can benefit from it too (this is not what TCL_NO_DEPRECATED is supposed to do).
| | * Allow win32 build with -DTCL_NO_DEPRECATED, just as the UNIX build, off by ↵jan.nijtmans2013-01-161-2/+0
| | | | | | | | | | | | | | | default. Define Tcl_EvalObj and Tcl_GlobalEvalObj as macros, even when TCL_NO_DEPRECATED is defined, so Tk can benefit from it too (this is not what TCL_NO_DEPRECATED is supposed to do).
| | * More complete purge of things only present for supporting long-dead Mac 9 ↵dgp2012-11-151-14/+0
| | | | | | | | | | | | systems.
| | * make some more internal tables CONSTjan.nijtmans2012-04-181-4/+4
| | | | | | | | | fix compilation with -DNO_CONST
* | | Name functions according to 'what' instead of 'how' in the [tailcall]mig2013-01-111-17/+24
| | | | | | | | | machinery, in view of making public some parts of it.
* | | tailcall now running in a simpler model, with no eval-flags and no nre-stack ↵mig2013-01-101-74/+68
| | | | | | | | | | | | rewriting; yieldto also requires one fewer bounce. Mostly from mig-nre-mods
* | | 3587651 Fix [info functions] and Tcl_ListMathFuncs().dgp2012-11-161-31/+18
|\ \ \ | |/ /
| * | 3587651 Fix Tcl_ListMathFuncs() by turning it into a call to [info functions]dgp2012-11-161-31/+18
| | |
* | | re-enable bcc-tailcall, after fixing an infinite loop in the ↵mig2012-11-101-1/+1
| | | | | | | | | | | | TCL_COMPILE_DEBUG mode
* | | Disable bytecompile of [tailcall] until it gets some repair. As is, itdgp2012-11-051-1/+1
| | | | | | | | | hopelessly bogs down debug-enabled testing, and make many tests fail.
* | | Added compilation of [tailcall]. Not a particularly efficient compilation ↵dkf2012-11-011-6/+5
| | | | | | | | | | | | though; it does not detect tailcall-of-self as a special case.
* | | Added compilation of [regsub] (in the simplest, most restricted case).dkf2012-10-301-1/+1
| | |
* | | Compiler for some of the simpler cases of [format].dkf2012-10-291-1/+1
| | |
* | | Working towards a BCCed [yield]; this doesn't work right now.dkf2012-10-261-8/+7
| | |
* | | * generic/tclBasic.c (TclNRCoroutineObjCmd): insure that numlevelsmig2012-10-181-3/+3
| | | | | | | | | are properly set, fix bug discovered by dkf and reported at http://code.activestate.com/lists/tcl-core/12213/
* | | merge trunkdkf2012-09-041-62/+67
|\ \ \