summaryrefslogtreecommitdiffstats
path: root/generic/tclListObj.c
Commit message (Collapse)AuthorAgeFilesLines
* Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-3/+3
| | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* Eliminate many usages of Tcl_NewObj (-> TclNewObj) and Tcl_NewIntObj (-> ↵jan.nijtmans2020-09-171-3/+5
| | | | TclNewIntObj or Tcl_NewWideIntObj)
* Merge 8.6jan.nijtmans2020-08-111-1/+1
|\
| * Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵jan.nijtmans2020-08-111-3/+3
| | | | | | | | size_t or int
| * end-of-line spacingjan.nijtmans2019-05-241-7/+7
| |\
* | | If "endValue" doesn't matter in TclGetIntForIndexM() call, use INT_MAX - 1, ↵jan.nijtmans2020-06-071-3/+3
| | | | | | | | | | | | not 0 or -1. This results in skipping the Tcl_GetIntFromObj() call for all non-negative integerss
* | | moredgp2020-03-061-6/+2
| | |
* | | Better error-message in case of "index out of range", mentioning the actual ↵jan.nijtmans2020-02-291-13/+12
| | | | | | | | | | | | index which was out of range. Also, use the same error-code, because the underlying cause is all the same.
* | | Let's try a real C++ build with Travis on Linuxjan.nijtmans2019-08-301-0/+2
|\ \ \
* \ \ \ Merge tip-548jan.nijtmans2019-08-151-11/+11
|\ \ \ \ | |/ / /
| * | | Eliminate "register" keyword _everywhere_ in Tcl. This keyword is deprecated ↵jan.nijtmans2019-07-171-11/+11
| | | | | | | | | | | | | | | | in C++ (removed in C++17, even), and essentially does nothing with most modern compilers.
* | | | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-11/+11
|/ / /
* | | 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
|\ \ | |/