summaryrefslogtreecommitdiffstats
path: root/generic/tclListObj.c
Commit message (Collapse)AuthorAgeFilesLines
* Style corrections and warning eliminationdkf2019-04-181-1/+1
|
* 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 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-5/+5
| | | But ... don't use this function when the result is only compared to NULL: that's just overkill.
* Merge 8.6. Also reduce tclCharTypeTable[] to 256 entries, as this table is ↵jan.nijtmans2019-01-261-1/+1
|\ | | | | | | | | always addressed with unsigned chars now. Eliminate some useless end-of-line spacing that slipped in.
* \ Merge and adapt 8.6dgp2018-11-091-3/+5
|\ \ | |/
| * merge 8.5dgp2018-11-091-1/+18
| |\
| | * Revise bug fix to support (length == 0) correctly.dgp2018-11-091-1/+18
| | | | | | | | | Added comments and improved safety in caller.
* | | Implement TIP 523dkf2018-11-061-6/+15
|\ \ \
| * | | Simplify to only accept index arguemnts. No index list.pspjuth2018-10-241-10/+3
| | | | | | | | | | | | Added manual page.
| * | | Implement TIP 523, New lpop commandpspjuth2018-10-221-5/+21
| | | |
* | | | merge 8.7dgp2018-03-301-0/+81
|\ \ \ \ | |/ / /
| * | | merge 8.7dgp2018-03-151-10/+4
| |\ \ \
| | * \ \ Merge 8.6jan.nijtmans2018-03-071-10/+4
| | |\ \ \ | | | |/ /
| | | * | amend to [58716e0e92]: now the duplication is really pointless, so eliminatedsebres2018-03-071-1/+1
| | | | |
| | | * | Remove pointless duplication.dgp2018-03-071-9/+3
| | | | |
| | | * | Rewrite documentation in comments for brevity and clarity.pooryorick2018-02-141-306/+287
| | | | |
| * | | | Refactored lrange to common function.pspjuth2017-12-291-0/+81
| |/ / /
* | | | merge 8.7dgp2017-11-151-3/+3
|\ \ \ \ | |/ / /
| * | | Change signature of (internal) TclScanElement() function. This saves memory ↵jan.nijtmans2017-11-151-3/+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-3/+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.
| | * | [824752f10e] More robust, portable check for integer overflow.dgp2016-11-041-5/+2
| | |\ \ | | | |/
| | | * [824752f10e] More robust, portable check for integer overflow.dgp2016-11-041-5/+2
| | | |
| | * | merge core-8-5-branch ([824752f10e] Avoid calling Tcl_SetObjResult if interp ↵gahr2016-11-041-2/+5
| | |\ \ | | | |/ | | | | | | | | is NULL)
| * | | In TclGetNumberFromObj() macro (tclExecute.c): Don't fill in type if ↵jan.nijtmans2017-02-031-8/+8
| | | | | | | | | | | | | | | | | | | | 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.
* | | | Rework [lset] internals to be sure outdated intreps get purged.dgp2017-09-121-9/+30
| | | |
* | | | Make sure ListObjReplace invalidates outdated intreps.dgp2017-09-121-2/+7
| | | |
* | | | Make sure ListObjAppendElement invalidates outdated intreps.dgp2017-09-121-0/+4
| | | |
* | | | 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-7/+7
|\ \ \ \ | |/ / /
| * | | [824752f10e] More robust, portable check for integer overflow.dgp2016-11-041-5/+2
| | | |
| * | | merge core-8-5-branch ([824752f10e] Avoid calling Tcl_SetObjResult if interp ↵gahr2016-11-041-2/+5
| |\ \ \ | | |/ / | |/| / | | |/ is NULL)
| | * [824752f10e] Avoid calling Tcl_SetObjResult if interp is NULLgahr2016-11-041-2/+5
| | |
* | | Purge more direct accesses to bytes field.dgp2016-10-071-1/+1
| | |
* | | Functional conversion of "list" Tcl_ObjType to proposed routines.dgp2016-03-291-76/+131
|/ / | | | | Not yet completely tidy and finished.
* | [32c5740a4d] Have Tcl_ListObjReplace() try to use realloc() for growing whendgp2015-11-301-3/+30
| | | | | | it can do so.
* | Tcl_ListObjReplace() early out when > LIST_MAX attempted.dgp2015-11-201-1/+6
|\ \ | |/
| * [3293874] Simplified fix (not backport). Also detect >LIST_MAX early.dgp2015-11-201-1/+9
| |
| * Silence compiler warnings.dgp2014-01-211-6/+6
| |
* | Another round of refCount consistancy improvements.jan.nijtmans2015-07-021-2/+2
| |
* | Tcl_InvalidateStringRep -> TclInvalidateStringRepjan.nijtmans2013-02-071-7/+7
|\ \ | |/
| * Tcl_InvalidateStringRep -> TclInvalidateStringRepjan.nijtmans2013-02-071-7/+7
| |
* | merge core-8-5-branchjan.nijtmans2013-01-311-2/+0
|\ \ | |/
| * Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-2/+0
| | | | | | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
* | restore refcounts as they were before the Tcl_ListObjReplace call, in the ↵jan.nijtmans2012-12-291-0/+8
|\ \ | |/ | | | | | | error situation. In Tcl9, make this a true Tcl_DecrRefCount, which properly cleans objects with refCount 0
| * restore refcounts as they were before the Tcl_ListObjReplace call, in the ↵jan.nijtmans2012-12-291-0/+8
| |\ | | | | | | | | | | | | error situation. In Tcl9, make this a true Tcl_DecrRefCount, which properly cleans objects with refCount 0
| | * For Tcl9, do a real Tcl_DecrRefCountjan.nijtmans2012-12-291-0/+4
| | |
| | * restore old refcounts in TCL_ERROR case.jan.nijtmans2012-12-271-0/+3
| |/
* | [Bug 3598580]: Tcl_ListObjReplace may release deleted elements too earlyjan.nijtmans2012-12-271-4/+5
|\ \ | |/