summaryrefslogtreecommitdiffstats
path: root/generic/tclInterp.c
Commit message (Collapse)AuthorAgeFilesLines
* If compiled with TCL_NO_DEPRECATED, remove some more stub entries which are ↵jan.nijtmans2017-03-201-3/+0
| | | | not used any more.
* TIP [http://www.tcl.tk/cgi-bin/tct/tip/459|459] implementation, but (for ↵jan.nijtmans2017-01-041-2/+17
|\ | | | | | | now) without the "source -nopkg" part.
| * Complete implementation, tests and documentationjan.nijtmans2016-11-281-2/+17
| |
* | Add "file join $grandParentDir tcl8.? library" as possible path for a valid ↵jan.nijtmans2016-12-151-0/+1
|/ | | | | init.tcl. Some simplifications in use of test restrictions.
* Fix [2bf561854c55a], interp alias to command whose name is the empty string.pooryorick2016-10-031-8/+3
|
* Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-5/+5
| | | | in many places where possible.
* Tcl_SetVar -> Tcl_SetVar2 and comparable replacements, eliminating functions ↵jan.nijtmans2016-06-291-6/+6
| | | | which are deprecated.
* Refactor all iPtr->ensembleRewrite setting code into TclInitRewriteEnsemble()dgp2016-05-251-28/+4
| | | | calls. This likely fixes many weird corner case bugs, and definitly makes future development and maintenance easier.
* (cherry-pick): Fix gcc 5.3 warning: In function ‘NRInterpCmd’: ↵jan.nijtmans2016-03-041-1/+1
| | | | | | tclInterp.c:726:5: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow] if ((i + 2) < objc) { Remove some excessive spacing
* Eliminate useless variable assignment.jan.nijtmans2016-01-221-1/+0
|\
| * Improve code 'quality' by fixing some harmless clang/cppcheck warnings. ↵jan.nijtmans2016-01-221-1/+0
| | | | | | | | Thanks to Gustaf Neumann. No change in functionality.
* | More progress. NR-enable [interp] and [$slave], completely withdgp2013-04-111-12/+39
| | | | | | invokehidden subcommand. Test suite passes with no errors.
* | More revisions let multi-interp test case work, but at cost of panicsdgp2013-04-111-1/+17
| | | | | | and segfaults. Pushing the NRE-envelope.
* | New internal routine TclNRInvoke() - NR-enabled path through the machinerydgp2013-04-111-1/+6
| | | | | | behind invokehidden commands.
* | LimitHandler struct used only locally. Remove from tclInt.hdgp2013-02-251-0/+31
|\ \ | |/
| * LimitHandler struct used only locally. Remove from tclInt.h.dgp2013-02-251-0/+31
| |
* | Name functions according to 'what' instead of 'how' in the [tailcall]mig2013-01-111-1/+1
| | | | | | 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-2/+2
| | | | | | | | rewriting; yieldto also requires one fewer bounce. Mostly from mig-nre-mods
* | more result generation conversiondkf2012-08-041-47/+54
| |
* | Purge use of Tcl_AppendElement, and corrected conversion of PIDs to integerdkf2012-07-311-3/+5
| | | | | | objects.
* | [Bug 3398794]: Use Tcl errors in scripts, not panics.dkf2011-08-301-0/+26
|\ \ | |/
| * [Bug 3398794]: Use Tcl errors in scripts, not panics.dkf2011-08-301-0/+26
| |
* | More generation of errorCodes ([interp], [lset], [load], [unload]).dkf2011-04-021-82/+79
| |
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-17/+16
| | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * generic/tclBasic.c: Extended the existing TIP #280 system (infoandreas_kupries2008-07-211-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c: frame), added the ability to track the * generic/tclCompCmds.c: absolute location of literal procedure * generic/tclCompile.c: arguments, and making this information * generic/tclCompile.h: available to uplevel, eval, and * generic/tclInterp.c: siblings. This allows proper tracking of * generic/tclInt.h: absolute location through custom (Tcl-coded) * generic/tclNamesp.c: control structures based on uplevel, etc. * generic/tclProc.c:
| | * * generic/tclInterp.c (Tcl_GetAlias): fix for [Bug 1882373]Miguel Sofer2008-01-301-2/+2
| | |
| | * * generic/tclBasic.c: TIP #280 implementation, conditional on the define ↵andreas_kupries2006-11-281-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TCL_TIP280. * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclInt.h: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclProc.c: * tests/compile.test: * tests/info.test: * tests/platform.test: * tests/safe.test:
| | * * generic/tclInterp.c: (AliasObjCmd): Added refCounting of the wordsdgp2003-05-121-2/+8
| | | | | | | | | | | | | | | * tests/interp.test (interp-33.1): of the target of an interp alias during its execution. Also added test. [Bug 730244].
| | * * generic/tclInterp.c (Tcl_InterpObjCmd): Corrected optiondgp2003-03-121-2/+4
| | | | | | | | | | | | | | | parsing beyond objc for [interp create --]. Thanks to Marco Maggi. [Bug 702383]
| * | fix gcc warning: passing argument 3 of 'Tcl_GetIndexFromObj' discards ↵nijtmans2010-11-191-2/+2
| | | | | | | | | | | | qualifiers from pointer target type
| * | * doc/interp.n: [3081184] TIP #378.andreas_kupries2010-11-151-5/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/tclvars.n: Performance fix for TIP #280. * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclInterp.c: * tests/info.test: * tests/interp.test:
| * | [Bug 2895741]: Make min() and max() supported in safe interpreters.dkf2009-12-291-1/+18
| | |
| * | [Bug 2891362]: Make time limits work better with the event loop.dkf2009-12-281-2/+12
| | |
| * | * generic/tclBasic.c: Extended the existing TIP #280 system (infoandreas_kupries2008-07-211-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c: frame), added the ability to track the * generic/tclCompCmds.c: absolute location of literal procedure * generic/tclCompile.c: arguments, and making this information * generic/tclCompile.h: available to uplevel, eval, and * generic/tclInterp.c: siblings. This allows proper tracking of * generic/tclInt.h: absolute location through custom (Tcl-coded) * generic/tclNamesp.c: control structures based on uplevel, etc. * generic/tclProc.c:
| * | * generic/tclInterp.c: Fixed completely boneheaded mistake thatdgp2008-06-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/interp.test: [interp bgerror $slave] and [$slave bgerror] would always act like [interp bgerror {}]. [Bug 1999035]. * tests/chanio.test: Corrected flawed tests revealed by a -debug 1 * tests/event.test: -singleproc 1 test suite run. * tests/io.test:
* | | This is [Patch 3168398], Joe Mistachkin's optimisation of Tip #285mig2011-03-011-0/+76
| | |
* | | * doc/interp.n: [3081184] TIP #378.andreas_kupries2010-11-151-11/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/tclvars.n: Performance fix for TIP #280. * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclInterp.c: * tests/info.test: * tests/interp.test:
* | | Remove many type casts which are no longernecessary as a result of [Patch ↵nijtmans2010-08-221-2/+2
| | | | | | | | | | | | 3009403]: Signature of Tcl_GetHashKey, Tcl_(Create|Find)HashEntry
* | | Code Audit results:dkf2010-03-051-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations
* | | More tidying up (whitespace, spelling, useless parentheses, useless casts)dkf2010-02-241-16/+21
| | |
* | | [Bug 2895741]: Make min() and max() supported in safe interpreters.dkf2009-12-291-1/+18
| | |
* | | [Bug 2891362]: Make time limits work better with the event loop.dkf2009-12-281-3/+14
| | |
* | | Fix gcc warning: ignoring return value of ‘write’,nijtmans2009-12-161-5/+5
| | | | | | | | | | | | | | | | | | declared with attribute warn_unused_result CONSTify functions TclpGetUserHome and TclSetPreInitScript (TIP #27)
* | | * generic/tclBasic.c: Fixed things so that you can tailcallMiguel Sofer2009-12-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclNamesp.c: properly out of a coroutine. * tests/tailcall.test: * generic/tclInterp.c: Fixed tailcalls for same-interp aliases (no test)
* | | * generic/tclInterp.c (SlaveEval): Agressive stomping of internal repsdgp2009-10-061-17/+4
| | | | | | | | | | | | | | | | | | | | | was added as part of the NRE patch of 2008-07-13. This doesn't appear to actually be needed, and it hurts quite a bit when large lists lose their intreps and require reparsing. Thanks to Ashok Nadkarni for reporting the problem.
* | | * generic/tclBasic.c: fixed "leaks" in aliases, imports andMiguel Sofer2009-03-211-1/+2
| | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: ensembles. Only remaining known leak * generic/tclInterp.c: is in ensemble unknown dispatch (as it * generic/tclNamesp.c: not NR-enabled) * tests/tailcall.test:
* | | - eliminate some unnessary type castsnijtmans2009-02-101-6/+6
| | | | | | | | | | | | | | | - some internal const decorations - spacing