Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Check in stash. This code probably does not compile as-is. Changes ↵amg_array_enum_c_api | andy | 2017-04-15 | 1 | -12/+28 |
| | | | | intended to address possible segfault on termination of search. | ||||
* | Add note to array documentation about the general uselessness of -exact ↵ | andy | 2016-12-25 | 1 | -1/+3 |
| | | | | matching. It exists because [array names] had it since check-in [634da00427] (8.4a1), which also added -regexp. | ||||
* | Do not deallocate Tcl_ArraySearchStart()-initiated array searches when ↵ | andy | 2016-12-25 | 1 | -10/+14 |
| | | | | Tcl_ArraySearchPeek() or Tcl_ArraySearchNext() is called, only when Tcl_ArraySearchDone() is called. This avoids a crash should user code unconditionally call Tcl_ArraySearchDone() at the end of an array enumeration loop. This change does not affect array searches initiated by the Tcl script command [array startsearch]. | ||||
* | Update tests array-7.16 and array-7.17 and delete test array-7.18 now that ↵ | andy | 2016-12-25 | 1 | -35/+9 |
| | | | | bug [46a2410650] is fixed | ||||
* | Merge array-search-unset | andy | 2016-12-25 | 27 | -151/+177 |
|\ | |||||
| * | Reference ticket number in tests var-13.2 and var-13.3array_search_unset | andy | 2016-12-25 | 1 | -2/+2 |
| | | |||||
| * | Bug [46a2410650]: Create macro TclIsVarArraySearched to check if an array ↵ | andy | 2016-12-24 | 2 | -3/+8 |
| | | | | | | | | variable has an active search, and modify INST_UNSET_ARRAY to fall back on the slow unset method for array elements within an array being searched. The slow unset method involves a call to DeleteSearches() which stops all active searches. | ||||
| * | Add test var-13.3 which is a more serious version of test var-13.2. ↵ | andy | 2016-12-24 | 1 | -0/+9 |
| | | | | | | | | var-13.3 is a SIGSEGV until we fix it. | ||||
| * | Merge trunk. Test var-13.2 now fails due to [af5c35971a]. | andy | 2016-12-24 | 1207 | -88723/+64863 |
| |\ | |||||
| | * | Update -DMSTATS functionality, for possible total memory sizes > 2Gb. One ↵ | jan.nijtmans | 2016-12-23 | 2 | -24/+24 |
| | | | | | | | | | | | | more place where use of size_t can increase range. | ||||
| | * | Eliminate the internal macro/function TclNewIntObj: In all cases ↵ | jan.nijtmans | 2016-12-23 | 6 | -26/+19 |
| | | | | | | | | | | | | TclNewLongObj is just as good. | ||||
| | * | Make sure that Tcl_GetIntFromObj/Tcl_GetWideIntFromObj/Tcl_GetDoubleFromObj ↵ | jan.nijtmans | 2016-12-21 | 1 | -16/+23 |
| | |\ | | | | | | | | | | | | | don't set an error in the interp during LinkTraceProc(): The error is supposed to be reported as return value of this function, not the interp. | ||||
| | | * | Make sure that Tcl_GetIntFromObj/Tcl_GetWideIntFromObj/Tcl_GetDoubleFromObj ↵ | jan.nijtmans | 2016-12-21 | 1 | -16/+23 |
| | | |\ | | | | | | | | | | | | | | | | don't set an error in the interp during LinkTraceProc(): The error is supposed to be reported as return value of this function, not the interp. | ||||
| | | | * | Make sure that Tcl_GetIntFromObj/Tcl_GetWideIntFromObj/Tcl_GetDoubleFromObj ↵ | jan.nijtmans | 2016-12-21 | 1 | -16/+23 |
| | | | | | | | | | | | | | | | | | | | | don't set an error in the interp during LinkTraceProc(): The error is supposed to be reported as return value of this function, not the interp. | ||||
| | * | | | Document that from the "exact" parameter of Tcl_InitStubs(), only bit 0 has ↵ | jan.nijtmans | 2016-12-20 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | meaning. | ||||
| | * | | | more internal use of size_t in stead of int. | jan.nijtmans | 2016-12-20 | 7 | -56/+59 |
| | | | | | |||||
| | * | | | Record the fact that all stub-enabled extensions work in Tcl 8.5+, no 8.6 ↵ | jan.nijtmans | 2016-12-20 | 11 | -23/+23 |
| | | | | | | | | | | | | | | | | | | | | (or 9.0) features are needed. (Differences between 8.x and 9.0 are handled by a different stub magic value) | ||||
| * | | | | Add test var-13.2 to check that unsetting an array element terminates an ↵ | andy | 2016-12-24 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | array search. This behavior was broken by check-in [af5c35971a]. | ||||
* | | | | | Correct typo, credit Brad Lanam for report | andy | 2016-12-21 | 1 | -1/+1 |
| | | | | | |||||
* | | | | | Implement deferring search structure deallocation until the next search ↵ | andy | 2016-12-20 | 1 | -6/+129 |
| | | | | | | | | | | | | | | | | | | | | function is called. Determination of immediate versus deferred deallocation is done using a new search flags field. | ||||
* | | | | | Merge trunk | andy | 2016-12-20 | 11 | -83/+137 |
|\ \ \ \ \ | | |/ / / | |/| | | | |||||
| * | | | | Some more internal use of size_t in stead of int. No functional change. | jan.nijtmans | 2016-12-16 | 2 | -9/+4 |
| | | | | | |||||
| * | | | | Add back testcase winFile-4.10. This test passes anyway, even though it ↵ | jan.nijtmans | 2016-12-15 | 1 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | | appeared to be Windows 2000 only. | ||||
| * | | | | Add "file join $grandParentDir tcl8.? library" as possible path for a valid ↵ | jan.nijtmans | 2016-12-15 | 6 | -88/+46 |
| | | | | | | | | | | | | | | | | | | | | | | | | | init.tcl. Some simplifications in use of test restrictions. | ||||
| * | | | | Implement all possible TCL_LL_MODIFIER formats in Tcl_ObjPrintf(), can be ↵ | jan.nijtmans | 2016-12-14 | 3 | -0/+86 |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | "ll", "I64" and "L", whatever the platform defines for long long integer. With test-cases. | ||||
| | * | | | | Implement all possible TCL_LL_MODIFIER formats in Tcl_ObjPrintf(), can be ↵jn_wide_printf | jan.nijtmans | 2016-12-14 | 3 | -1/+77 |
| | | | | | | | | | | | | | | | | | | | | | | | | "ll", "I64" and "L", whatever the platform defines for long long integer. With test-cases. | ||||
| | * | | | | implement "I64" format in Tcl_ObjPrintf as well. Still to be tested. | jan.nijtmans | 2016-12-02 | 1 | -3/+13 |
| | | | | | | |||||
* | | | | | | Rework array search C API to invoke array traces and report errors. Still ↵ | andy | 2016-12-20 | 3 | -98/+250 |
| | | | | | | | | | | | | | | | | | | | | | | | | need to update documentation accordingly and to add tests demonstrating correct execution of array traces. Also need to handle early search termination due to array elements being added or removed. | ||||
* | | | | | | Add more array search tests per Brad Lanam. These tests should fail because ↵ | andy | 2016-12-15 | 1 | -0/+51 |
| | | | | | | | | | | | | | | | | | | | | | | | | adding or removing elements should terminate the search, but the tests are not failing in the right way. | ||||
* | | | | | | Rework array size increase/decrease tests to avoid dummy list element | andy | 2016-12-13 | 1 | -6/+6 |
| | | | | | | |||||
* | | | | | | Update ArrayArgs() comments again | andy | 2016-12-12 | 1 | -4/+2 |
| | | | | | | |||||
* | | | | | | Update ArrayArgs() comments | andy | 2016-12-12 | 1 | -5/+2 |
| | | | | | | |||||
* | | | | | | Finish implementing array search tests | andy | 2016-12-11 | 1 | -3/+12 |
| | | | | | | |||||
* | | | | | | Remove invalid panic. There is an odd case in which exact matching does ↵ | andy | 2016-12-11 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | take a trip through the ArrayNext() search loop despite the fact that ArrayFirst() finds the exact element and sets the search to the end of the hash table. If exact matching is used in combination with a command that stuffs the found element back into the queue (e.g. [array anymore]), ArrayNext() will have to "find" the element again. It's the very next entry, but nevertheless it needs to confirm. | ||||
* | | | | | | Continue array search tests, array-7.12 panics | andy | 2016-12-11 | 1 | -1/+57 |
| | | | | | | |||||
* | | | | | | Use setup feature in test array-5.4 | andy | 2016-12-11 | 1 | -3/+5 |
| | | | | | | |||||
* | | | | | | Add first array search test | andy | 2016-12-11 | 1 | -0/+11 |
| | | | | | | |||||
* | | | | | | Adjust test array-5.4 to not use [array set] | andy | 2016-12-11 | 1 | -2/+1 |
| | | | | | | |||||
* | | | | | | Reorganize array tests | andy | 2016-12-11 | 1 | -368/+132 |
| | | | | | | |||||
* | | | | | | Add [array statistics] tests | andy | 2016-12-11 | 1 | -0/+85 |
| | | | | | | |||||
* | | | | | | Add [array names] tests | andy | 2016-12-10 | 1 | -0/+92 |
| | | | | | | |||||
* | | | | | | Add [array get] tests | andy | 2016-12-10 | 1 | -0/+92 |
| | | | | | | |||||
* | | | | | | Add [array exists] tests | andy | 2016-12-10 | 1 | -0/+92 |
| | | | | | | |||||
* | | | | | | Plan remainder of test suite | andy | 2016-12-10 | 1 | -24/+35 |
| | | | | | | |||||
* | | | | | | Adjust comments | andy | 2016-12-10 | 1 | -30/+13 |
| | | | | | | |||||
* | | | | | | Rename $result to $resultPattern to reduce confusion | andy | 2016-12-10 | 1 | -2/+2 |
| | | | | | | |||||
* | | | | | | Fix spelling | andy | 2016-12-10 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | Add [array unset] tests | andy | 2016-12-10 | 1 | -0/+112 |
| | | | | | | |||||
* | | | | | | Add first [array unset] test | andy | 2016-12-10 | 1 | -0/+9 |
| | | | | | | |||||
* | | | | | | Add [array size] tests | andy | 2016-12-10 | 1 | -3/+39 |
| | | | | | |