summaryrefslogtreecommitdiffstats
path: root/generic/tclEnsemble.c
Commit message (Collapse)AuthorAgeFilesLines
* More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-2/+2
| | | | and (unsigned) type-casts, which don't make sense any more.
* New internal macro TclFetchIntRep, which is faster than Tcl_FetchIntRep. jan.nijtmans2019-01-281-1/+1
| | | But ... don't use this function when the result is only compared to NULL: that's just overkill.
* Merge 8.6jan.nijtmans2018-11-291-12/+25
|\
| * Make the type casting in TclSpellFix less horrific. It's still bad, but it ↵dkf2018-11-281-16/+35
| | | | | | | | is no longer ghastly.
| * Add TCL_CREATE_NS_IF_UNKNOWN back into Tcl_CreateEnsemble().pooryorick2018-02-151-5/+1
| |
| * Fix segmentation fault in TclOO that was noted in [16fe1b5807]. Updatepooryorick2018-02-141-0/+3709
| | | | | | coroutine and TclOO object creation routines to use TclCreateObjCommandInNs.
| * Lift the restriction on command names names that begin with ":".pooryorick2018-02-141-3696/+0
| |
* | merge 8.7dgp2018-10-181-21/+20
|\ \
| * \ merge core-8-branchdkf2018-09-041-333/+557
| |\ \
| * \ \ merge trunkdkf2013-07-261-126/+69
| |\ \ \
| * | | | Added a mechanism for discovering the "type" of a command.dkf2013-07-071-21/+20
| | | | |
* | | | | merge 8.7dgp2018-05-241-51/+57
|\ \ \ \ \ | | |_|/ / | |/| | |
| * | | | General code style cleanup.dkf2018-05-131-51/+57
| | | | |
* | | | | merge 8.7dgp2017-12-191-1/+1
|\ \ \ \ \ | |/ / / /
| * | | | Revert a few more (int -> size_t) transitions, which could effect extensions ↵jan.nijtmans2017-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | (such as Itcl 3.4) which use internal Tcl header files. Better wait until 9.0 for this. What we _can_ do is change some (internal) fields to 'unsigned': that doubles the epoch range without further danger. Thanks, Don, for pointing this out!
* | | | | merge 8.7dgp2017-12-061-114/+116
|\ \ \ \ \ | |/ / / /
| * | | | [4f6a1ebd64] Stop crash when same value passed to the -map and -subcommands ↵dgp2017-12-051-114/+116
| |\ \ \ \ | | | | | | | | | | | | | | | | | | options of ensemble configuration.
| | * | | | [4f6a1ebd64] Stop crash when same value passed to the -map and -subcommands ↵dgp2017-12-051-154/+173
| | | | | | | | | | | | | | | | | | | | | | | | options of ensemble configuration.
* | | | | | merge 8.7dgp2017-11-301-10/+6
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Eliminate use of certain unnecessary struct names. Also white-spacing. ↵jan.nijtmans2017-11-301-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Nothing functional.
| * | | | | Add TCL_CREATE_NS_IF_UNKNOWN back into Tcl_CreateEnsemble().pooryorick2017-11-291-5/+1
| | | | | |
* | | | | | merge 8.7dgp2017-11-291-61/+101
|\ \ \ \ \ \ | |/ / / / /
| * | | | | merge pyk-command-named-colonpooryorick2017-11-251-60/+88
| |\ \ \ \ \ | | | |_|_|/ | | |/| | |
| | * | | | Fix segmentation fault in TclOO that was noted in [16fe1b5807]. Updatepooryorick2017-11-191-9/+3
| | | | | | | | | | | | | | | | | | coroutine and TclOO object creation routines to use TclCreateObjCommandInNs.
| | * | | | Fix [16fe1b5807]: namespace ensemble command named ":" is mistakenly given thepooryorick2017-11-171-53/+87
| | | | | | | | | | | | | | | | | | empty string as its name.
| * | | | | Fix for issue [4f6a1ebd64]: ensemble: segmentation fault when -subcommand andpooryorick2017-11-251-1/+13
| |/ / / / | | | | | | | | | | -map values are the same object.
| * | | | Merge core-8-6-branch. This removes the work currently being done in ↵jan.nijtmans2017-06-021-17/+3
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | "sebres-8-6-clock-speedup-cr1" branch, but that will be merged again as soon as the work is done. All other changes in "trunk" since then (e.g. the INST_STR_CONCAT1 performance improvement, and the removal of SunOS-4) are retained.
| * | | | merge core-8-6-branch (except: the "timerate" command and the clock ↵jan.nijtmans2017-05-311-2/+2
| |\ \ \ \ | | | | | | | | | | | | | | | | | | performance-tests are kept)
| | * | | | More code review, e.g. use Tcl_SetObjResult in stead of Tcl_SetResult, ↵jan.nijtmans2017-05-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | preventing a (char *) type case. No functional changes.
| * | | | | reintegrate sebres-8-6-clock-speedup back to sebres-clock-speedup (trunk ↵sebres2017-05-111-3/+17
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | clock-speedup, 3-way merge)
| | * | | | Ensemble "clock" fixed after merge with kbk's clock ensemble solution. All ↵sebres2017-05-101-3/+17
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | commands (including new) compiled now also in ensemble (implemented without TclMakeEnsemble, because it can be extended via new map entries). Ensemble handling partially cherry-picked from new performance branch (TODO: check temporary "-compile" option can be reverted if it becomes ready/merged).
* | | | | merge trunkdgp2017-02-161-1/+1
|\ \ \ \ \ | |/ / / /
| * | | | More internal use of size_t in stead of int, e.g. for epoch'sjan.nijtmans2017-02-151-1/+1
| | | | |
* | | | | merge trunkdgp2016-12-231-5/+5
|\ \ \ \ \ | |/ / / /
| * | | | more internal use of size_t in stead of int.jan.nijtmans2016-12-201-5/+5
| | | | |
* | | | | merge trunkdgp2016-11-161-1/+1
|\ \ \ \ \ | |/ / / /
| * | | | Use more "size_t" in stead of "int" internall. Also eliminate a lot of ↵jan.nijtmans2016-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | type-casts which are not necessary any more.
* | | | | merge trunkdgp2016-11-041-1/+1
|\ \ \ \ \ | |/ / / /
| * | | | [824752f10e] Use LIST_MAX instead of INT_MAX for unknown number of elements ↵dgp2016-11-041-1/+1
| |\ \ \ \ | | |/ / / | | | | | | | | | | to the end of the list.
| | * | | [8245752f10e] Use LIST_MAX instead of INT_MAX for unknown number of elementsdgp2016-11-041-1/+1
| | | | | | | | | | | | | | | to the end of the list.
* | | | | merge trunkdgp2016-09-081-5/+8
|\ \ \ \ \ | |/ / / /
| * | | | Fix [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1]: "global" cmd ↵jan.nijtmans2016-09-071-5/+8
| |\ \ \ \ | | |/ / / | | | | | | | | | | literal sharing vs. per-interp resolvers
| | * | | some more clean-upjan.nijtmans2016-09-051-6/+4
| | | | |
| | * | | Some patch clean-up, no change in functionalityjan.nijtmans2016-09-051-1/+1
| | | | |
| | * | | Proposed patch for [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1], by ↵jan.nijtmans2016-09-021-2/+7
| | | | | | | | | | | | | | | | | | | | Gustaf Neumann
* | | | | convert ensembleCmdType to new interfaces.dgp2016-07-121-13/+27
|/ / / /
* | | | merge 8.6dgp2016-07-091-3/+7
|\ \ \ \ | |/ / /
| * | | Repair some memory corruption problems in EnsembleCmdRep.dgp2016-07-081-3/+7
| |\ \ \
| | * | | Missed a cleanup line, which created a memleak.dgp2016-07-071-0/+1
| | | | |
| | * | | To use a Tcl_Command token [aka (Command *)] for epoch checking, we must notdgp2016-07-071-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | permit it to be freed while we hold it or else it could be mistaken for another token allocated later that just happens to reside at the same address. (Command *) preservation machinery already exists, just need to use it. An extension facing the same problem might have to rely on command delete traces. Earlier revisions used (Namespace *) lifetime to achieve the same results, but that's really an indirect (possibly non-robust) path to achieving the proper goal. Valgrind is happy now.