summaryrefslogtreecommitdiffstats
path: root/generic/tclIndexObj.c
Commit message (Collapse)AuthorAgeFilesLines
* Use Tcl_NewBooleanObj for booleans; we should say what we mean. Fix ↵jan.nijtmans2024-04-111-6/+6
| | | | sentinels and type-casts.
* Fix [7cb7409e05] by backporting tclIndexObj.c from [c3b23bf0c7]jan.nijtmans2024-04-041-59/+60
|
* Proposed fix for [abd489a1c]: TclStringCmp() calls functions through pointer ↵jan.nijtmans2023-10-131-2/+2
| | | | to incorrect type. Modified, swapping the wrapping-order
* Correct spelling errors in comments and documentation, but also non-comment pooryorick2023-04-121-1/+1
| | | corrections in history.tcl and tcltest.test.
* Use TclListObjLength/TclListObjGetElements in stead of ↵jan.nijtmans2022-02-101-5/+5
| | | | Tcl_ListObjLength/Tcl_ListObjGetElements everywhere. This is slightly more efficient if the refered list already has the correct type
* Make it impossible for the indexType object to cache negative index values. ↵jan.nijtmans2021-12-181-3/+5
| | | | And - if it happens - at least don't crash on it.
* Add 2 new testcases, for Tcl_GetIndexFromObjStruct with TCL_EXACT flag and ↵jan.nijtmans2021-12-161-4/+4
| | | | for Tcl_GetIndexFromObjStruct with NULL argument
* Prevent crash in Tcl_GetIndexFromObj*() when objPtr == NULL. Just let it ↵jan.nijtmans2021-12-131-26/+26
| | | | produce a normal error-message then. Also add some more type-casts
* Merge fixes for [ccc448a6bfd5], namespace ensemble subcommand name prefixpooryorick2021-09-021-13/+5
| | | matching and a subsequent error results in a segmentation fault.
* Delete some useless code. Was only place where we fed an uncontrolled value ↵dkf2021-03-181-2/+0
| | | | to %f, and it was actually a conversion we didn't need to do at all.
* Get rid of "register" keyword, forbidden in c++20.jan.nijtmans2020-11-261-8/+8
| | | Fix some more warnings, discovered in c20/c++20 mode
* One Tcl_UtfPrev() -> TclUtfPrev() change. Just a little bit cheaper.jan.nijtmans2020-05-131-1/+1
|
* Remove SetIndexFromAny(), a useless routine that can only be reached viadgp2020-03-061-35/+1
| | | unsupported shenanigans.
* Change signature of (internal) TclScanElement() function. This saves memory ↵jan.nijtmans2017-11-151-1/+2
| | | | 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.
* [4402cfa58c] Rework the spell check machinery into something that will not bedgp2016-07-011-13/+8
| | | foiled by value sharing.
* Don't see why the intrep should make and keep copies of things alreadydgp2016-05-121-2/+4
| | | stored in the hash table.
* Allow Tcl to be compiled even if Tcl_Eval, Tcl_GetVar, ... are macros.jan.nijtmans2013-02-281-0/+1
|
* merge core-8-5-branchjan.nijtmans2013-01-311-13/+13
|\
| * Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-13/+13
| | | | | | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
* | Simplify STRING_AT macro.jan.nijtmans2013-01-241-5/+9
|\ \ | |/ | | Protect Tcl_GetIndexFromObjStruct from invalid "offset" values, like 0 or -1. Undocumented, because I don't want to promote people start using that.
| * Simplify STRING_AT macro.jan.nijtmans2013-01-241-5/+9
| |\ | | | | | | Protect Tcl_GetIndexFromObjStruct from invalid "offset" values, like 0 or -1. Undocumented, because I don't want to promote people start using that.
| | * Protect Tcl_GetIndexFromObjStruct from invalid "offset" values, like 0 or ↵jan.nijtmans2013-01-231-1/+5
| | | | | | | | | | | | -1. Undocumented, because I don't want to promote people start using that.
* | | Add super-simple compiler to many ensemble subcommands to allow better codedkf2013-01-041-3/+3
| | | | | | | | | | | | | | | generation where we can detect that we're not in the WrongNumArgs case. The compiler just checks that the argument count is in the right range and issues a standard dispatch; that's enough to do an efficient job.
* | | Fix bug reported by Brian Griffin:jan.nijtmans2012-11-221-4/+0
|\ \ \ | |/ / | | | <p>[http://code.activestate.com/lists/tcl-core/12524/]
| * | Fix bug reported by Brian Griffin:jan.nijtmans2012-11-221-4/+0
| |\ \ | | |/ | | | <p>[http://code.activestate.com/lists/tcl-core/12524/]
| | * Fix bug reported by Brian Griffin:jan.nijtmans2012-11-221-4/+0
| | | | | | | | | <p>[http://code.activestate.com/lists/tcl-core/12524/]
* | | more result generation conversiondkf2012-08-031-41/+46
| | |
* | | protect Tcl_GetIndexFromObjStruct from empty strings in tablejan.nijtmans2012-07-051-7/+16
|\ \ \ | |/ /
| * | protect Tcl_GetIndexFromObjStruct from empty strings in tablejan.nijtmans2012-07-051-6/+15
| |\ \ | | |/
| | * protect Tcl_GetIndexFromObjStruct from empty strings in tablejan.nijtmans2012-07-051-6/+15
| | |
* | | make some more internal tables constjan.nijtmans2012-04-231-1/+1
|\ \ \ | |/ /
* | | Unbreak TCL_ARGV_AUTO_REST macro, found during testing.dkf2011-09-271-1/+8
| | |
* | | Proposed patch to fix [Bug 3413857]...dkf2011-09-261-24/+14
| | |
* | | Small changes to quell gcc warnings and make message generation less ugly.dkf2011-08-161-23/+21
| | |
* | | 3366265 Allocate proper size buffer for TclConvertElement() to write to.dgp2011-07-141-2/+4
|\ \ \ | |/ /
| * | 3366265 Allocate proper size buffer for TclConvertElement() to write to.dgp2011-07-141-2/+4
| | |
* | | New internal routines TclScanElement() and TclConvertElement().dgp2011-05-101-4/+6
|\ \ \ | |/ / | | | Rewritten guts of machinery to produce string rep of lists. [Bug 3173086]
| * | Completed patch with mucho comments. Merge 8.5.dgp2011-05-101-0/+3
| | |
| * | Significant rewrite of the Tcl*(Scan|Convert)*Element() system, and revisionsdgp2011-03-031-4/+6
| | | | | | | | | | | | to the callers. Needs more work on comments, and testing to check for any performance impact in either direction. Fixes reported bug.
* | | TclFreeIntRep() cleanup.dgp2011-04-271-1/+0
| | |
* | | Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+2
|\ \ \
| * \ \ Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+2
| |\ \ \ | | |/ / | |/| / | | |/
| | * Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+2
| | |
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-14/+12
| | | | | | | | | 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.
| | * * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): It seemsdgp2006-04-061-2/+2
| | | | | | | | | | | | | | | | | | | | | * tests/indexObj.test: there are extensions that rely on the prior * doc/GetIndex.3: behavior that the empty string cannot succeed as a unique prefix matcher, so I'm restoring Donal Fellow's solution. Added mention of this detail to the documentation. [Bug 1464039]
| | * * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Allow emptydgp2006-04-051-7/+3
| | | | | | | | | | | | | | | strings to be matched by the Tcl_GetIndexFromObj machinery, in the same manner as any other key. [Bug 1464039]
| | * Fix [Bug 1646039]dkf2006-04-051-13/+9
| | |