summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
Commit message (Collapse)AuthorAgeFilesLines
* Compilation for [dict getwithdefault].dkf2019-04-181-7/+6
|
* Add [dict getdef] aliasdkf2019-04-151-9/+9
|
* Add testsdkf2019-04-011-3/+6
|
* Implement [dict getwithdefault]dkf2019-04-011-0/+66
|
* New internal macro TclHasIntRep() to re-encapsulate the typePtr field.dgp2019-02-251-1/+1
|
* New internal macro TclFetchIntRep, which is faster than Tcl_FetchIntRep. jan.nijtmans2019-01-281-2/+2
| | | But ... don't use this function when the result is only compared to NULL: that's just overkill.
* merge 8.7dgp2018-02-061-3/+6
|\
| * Revise the TclStringCat() interface to follow a common pattern.dgp2018-02-051-3/+6
| |
* | merge 8.7dgp2017-11-151-6/+3
|\ \ | |/
| * Change signature of (internal) TclScanElement() function. This saves memory ↵jan.nijtmans2017-11-151-6/+3
| |\ | | | | | | | | | allocation and the possibility for panic's in dict and list handling, requiring 1/4 of memory for internal allocation of temporary storage. No change to external API.
| | * Change signature of (internal) TclScanElement() function. This saves memory ↵jan.nijtmans2017-11-151-6/+3
| | | | | | | | | | | | allocation and the possibility for panic's in dict and list handling, requiring 1/4 of memory for internal allocation of temporary storage. No change to external API.
* | | merge 8.7dgp2017-11-091-9/+9
|\ \ \ | |/ /
| * | Change "epoch" field for dicts from "int" to "unsigned int". This doubles ↵jan.nijtmans2017-11-081-9/+9
| | | | | | | | | | | | the number of available epoch's before overflow. Also make 0 the special value in stead of -1, meaning "dict search done". That also means that epoch counting starts with 1.
* | | merge trunkdgp2017-10-131-0/+2
|\ \ \ | |/ /
| * | Plug some memleaks.dgp2017-10-131-0/+2
| | |
* | | Revised dict value means we much invalidate existing intreps.dgp2017-09-121-1/+4
| | |
* | | When we invalidate the string rep of a dict, that's a sign we need todgp2017-09-121-0/+4
| | | | | | | | | free all the intreps of that dict as well.
* | | merge trunkdgp2017-06-161-3/+3
|\ \ \ | |/ /
| * | Make read and write operations on Tcl_Var handles available in tclInt API.dkf2017-06-081-3/+3
| |\ \ | | |/
| | * Expose some of the core variable access APIs. dkf2017-06-061-3/+3
| | | | | | | | | (Cherrypick from [b4dfc30083])
| * | merge core-8-6-branchjan.nijtmans2017-06-021-10/+8
| |\ \ | | |/
| | * Change refCount field in DictObj from int to size_t. Cherry-picked from ↵jan.nijtmans2017-06-021-10/+8
| | | | | | | | | | | | "sebres-8-6-clock-speedup-cr1" branch.
| * | Merge core-8-6-branch. This removes the work currently being done in ↵jan.nijtmans2017-06-021-107/+10
| |\ \ | | |/ | | | | | | | | | "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 trunksebres2017-03-061-1/+1
| |\ \
| | * | In TclGetNumberFromObj() macro (tclExecute.c): Don't fill in type if ↵jan.nijtmans2017-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | TCL_ERROR is returned: The caller doesn't do anything with this. Don't access (non-const) variable tclEmptyStringRep any more, use its value (&tclEmptyString) directly. Only keep it in tclPkg.c, for error checking.
| * | | code review and inline documentationsebres2017-01-101-3/+29
| | | |
| * | | Merge remote-tracking branch 'remotes/fossil/trunk' into ↵sebres2017-01-101-17/+33
| | | | | | | | | | | | | | | | sb/trunk-rewrite-clock-in-c; + minor fixes after merge.
| * | | dict: unused variable removedsebres2017-01-101-1/+0
| | | |
| * | | improve LocalizeFormat, internal caching of localized formats inside msgcat ↵sebres2017-01-101-32/+90
| |/ / | | | | | | | | | | | | | | | for locale and format objects smart reference introduced in dict (smart pointer with 0 object reference but increase dict-reference, provide changeable locale dict)
* | | merge trunkdgp2016-11-291-10/+8
|\ \ \ | |/ /
| * | Minor simplifications. Eliminate FUNCPRT from regexp engine. Fix ↵jan.nijtmans2016-11-291-1/+1
| | | | | | | | | | | | compile-error (non-debug) in tclDictObj.c, from previous commit
| * | more internal use of size_t (in stead of int)jan.nijtmans2016-11-291-9/+7
| | |
* | | merge trunkdgp2016-11-011-9/+36
|\ \ \ | |/ /
| * | WIPdgp2016-10-281-2/+2
| | |
| * | revise [dict append] to make use of common [string cat] engine.dgp2016-10-281-6/+24
| | |
| * | Add optimization to [dict append].dgp2016-10-281-8/+17
| |/
* | merge trunkdgp2016-07-091-12/+6
|\ \ | |/
| * Simplify all the Tcl_NRPostProc declarations.dgp2016-07-061-12/+6
| |
* | Revise "dict" Tcl_ObjType to use proposed routines.dgp2016-03-301-84/+99
| |
* | Functional conversion of "list" Tcl_ObjType to proposed routines.dgp2016-03-291-1/+1
| | | | | | Not yet completely tidy and finished.
* | oopsdgp2016-03-241-1/+1
| |
* | Update Tcl_InitStringRep callers to handle OOM condition.dgp2016-03-241-0/+3
| |
* | Convert "dict" Tcl_ObjType to use new routines.dgp2016-03-231-12/+15
|/
* typo in comment. Eliminate unnecessary end-of-line spacing.jan.nijtmans2015-10-191-2/+2
|
* Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-1/+1
|\
| * Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-1/+1
| |
* | Suppress valgrind warnings about uninitialized values.dgp2014-07-111-0/+4
| |
* | [cb042d294e] Improve consistency of [dict] wrong-args error messages.dkf2014-06-151-10/+10
| |
* | Some more cleaning updkf2014-06-151-36/+44
| |
* | Make [dict replace] and [dict remove] guarantee result canonicality.dkf2014-06-151-84/+65
| |