summaryrefslogtreecommitdiffstats
path: root/generic/tclListObj.c
Commit message (Collapse)AuthorAgeFilesLines
* Small changes to quell gcc warnings and make message generation less ugly.dkf2011-08-161-35/+71
|
* Rewind from a refactoring that veered into the weeds.bug_3293874dgp2011-05-311-69/+109
|\
* | Set the defaults of all growth algorithm parameters based on one master value.dgp2011-05-121-5/+6
| |
* | Oops!dgp2011-05-111-1/+1
| |
* | First draft of bug fix.dgp2011-05-111-10/+28
|/
* New internal routines TclScanElement() and TclConvertElement().dgp2011-05-101-35/+32
|\ | | | | Rewritten guts of machinery to produce string rep of lists. [Bug 3173086]
| * Completed patch with mucho comments. Merge 8.5.bug_3173086dgp2011-05-101-197/+159
| |
| * Significant rewrite of the Tcl*(Scan|Convert)*Element() system, and revisionsdgp2011-03-031-34/+33
| | | | | | | | to the callers. Needs more work on comments, and testing to check for any performance impact in either direction. Fixes reported bug.
* | Revise empty string tests so that we avoid potentially expensive string repdgp2011-05-091-61/+11
|\ \ | | | | | | generations, especially for dicts.
| * | Remove the old implementation.dgp_list_simplifydgp2011-05-091-75/+0
| | |
| * | A different technique to more precisely identify the optimization case.dgp2011-05-091-14/+35
| | |
| * | Disable all the special case code in place to prevent allocation of a Listdgp2011-05-051-10/+14
| | | | | | | | | | | | | | | struct for empty lists as much as possible. The value of this avoidance is not clear to me. Hoping it can be demonstrated (or refuted) with both variants side by side in the code history tree.
* | | Stop generating string rep of dict when converting to list.dgp2011-05-051-9/+42
|\ \ \ | |/ / | | | Tolerate NULL interps more completely.
| * | Tolerate NULL interps more completely.dgp2011-05-051-4/+8
| | |
| * | Stop generating string rep of dict when converting to list.dgp2011-05-051-5/+34
| | |
* | | merge 8.5dgp2011-05-031-76/+39
|\ \ \ | |/ /
| * | Tighten SetListFromAny().dgp2011-05-031-73/+40
| | |
* | | Revised TclFindElement() interface.dgp2011-05-021-3/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The final argument had been bracePtr, the address of a boolean var, where the caller can be told whether or not the parsed list element was enclosed in braces. In practice, no callers really care about that. What the callers really want to know is whether the list element value exists as a literal substring of the string being parsed, or whether a call to TclCopyAndCollpase() is needed to produce the list element value. Now the final argument is changed to do what callers actually need. This is a better fit for the calls in tclParse.c, where now a good deal of post-processing checking for "naked backslashes" is no longer necessary. ***POTENTIAL INCOMPATIBILITY*** For any callers calling in via the internal stubs table who really do use the final argument explicitly to check for the enclosing brace scenario. Simply looking for the braces where they must be is the revision available to those callers, and it will backport cleanly. Tests for expanded literals quoting detection.
| * | Revised TclFindElement() interface.dgp2011-05-021-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The final argument had been bracePtr, the address of a boolean var, where the caller can be told whether or not the parsed list element was enclosed in braces. In practice, no callers really care about that. What the callers really want to know is whether the list element value exists as a literal substring of the string being parsed, or whether a call to TclCopyAndCollpase() is needed to produce the list element value. Now the final argument is changed to do what callers actually need. This is a better fit for the calls in tclParse.c, where now a good deal of post-processing checking for "naked backslashes" is no longer necessary. ***POTENTIAL INCOMPATIBILITY*** For any callers calling in via the internal stubs table who really do use the final argument explicitly to check for the enclosing brace scenario. Simply looking for the braces where they must be is the revision available to those callers, and it will backport cleanly.
* | | Replace TclCountSpaceRuns() with TclMaxListLength() which is the function wedgp2011-05-021-13/+7
|\ \ \ | |/ / | | | actually want.
| * | Replace TclCountSpaceRuns() with TclMaxListLength() which is the function wedgp2011-05-021-13/+7
| | | | | | | | | actually want.
* | | New utility routines: TclIsSpaceProc() and TclCountSpaceRuns()dgp2011-04-281-7/+1
|\ \ \ | |/ / | | | Use to replace calls to isspace() and their /* INTL */ risk.
| * | New utility routines: TclIsSpaceProc() and TclCountSpaceRuns()dgp2011-04-281-7/+1
| | | | | | | | | Use to replace calls to isspace() and their /* INTL */ risk.
* | | TclFreeIntRep() cleanup.dgp2011-04-271-1/+0
| | |
| | |
| \ \
*-. \ \ FreeListInternalRep() cleanup.dgp2011-04-271-7/+5
|\ \ \ \ | | |/ /
| | * | FreeListInternalRep() cleanup.dgp2011-04-271-7/+5
| |/ /
| * | Backport fix for [Bug 2857044].dgp2011-04-271-0/+1
| | |
| * | Revise last fix.dgp2011-04-251-4/+4
| | |
* | | Revise last fix.dgp2011-04-251-4/+4
| | |
* | | Fix compilation warning in TclListObj - printf format mismatchvenkat2011-04-241-4/+4
|\ \ \ | |/ /
| * | Fix compilation warning in TclListObj - printf format mismatchvenkat2011-04-241-4/+4
| | |
* | | Use macro to set List intrepsdgp2011-04-211-21/+5
|\ \ \ | |/ /
| * | Use macro to set List intrepsdgp2011-04-211-21/+5
| | |
* | | Limits on list length were too strict. Revised panics to errors where possible.dgp2011-04-211-46/+82
|\ \ \ | |/ /
| * | Limits on list length were too strict. Revised panics to errors where possible.dgp2011-04-211-44/+81
| | |
* | | Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-7/+11
|\ \ \ | |/ /
| * | Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-5/+9
| |\ \
* | \ \ Use ListRepPtr(.) and other cleanup.dgp2011-04-181-9/+9
|\ \ \ \ | |/ / /
| * | | Use ListRepPtr(.) and other cleanup.dgp2011-04-181-9/+9
| | |/ | |/|
* | | More generation of errorCodes ([interp], [lset], [load], [unload]).dkf2011-04-021-0/+6
| | |
* | | Reduce the number of casts used to manage Tcl_Obj internal representations.dkf2011-03-261-59/+65
| | |
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-12/+10
| | | | | | | | | 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.
| | * Backport of fix for [Bug 1267380]dkf2005-08-251-1/+7
| | |
| | * * generic/tclListObj.c (Tcl_ListObjReplace): use memmove() insteaddas2004-11-111-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of manual copy loop to shift list elements. Decreases time spent in Tcl_ListObjReplace() from 5.2% to 1.7% of overall runtime of tclbench on a ppc 7455 (i.e. 200% speed increase). [Patch 1064243] * generic/tclHash.c: hoisted some constant pointer dereferences out of loops to eliminate redundant loads that the gcc optimizer didn't deal with. Decreases time spend in Tcl_FindHashEntry() by 10% over a full run of the tcl testuite on a ppc 7455. [Patch 1064243]
| * | Backport of fix for [Bug 3004007], EIAS violation in list-dict conversions.ferrieux2010-05-191-3/+5
| | |
| * | * generic/tclListObj.c: Prevent in overflow trouble in [lreplace]dgp2010-03-181-2/+6
| | | | | | | | | | | | | | | * generic/tclTestObj.c: operations. Thanks to kbk for fix and test. * tests/listObj.test: [Bug 2971669].
| * | Fix efficiency bug detected by Kieran Elby.dkf2008-09-101-2/+11
| | |