1
2
3
4
5
6
7
8
|
1
2
3
4
5
6
7
8
|
-
+
|
Extended version of `c11-tcloo-foreach` that applies those changes to the rest of Tcl.
Extended version of [`c11-tcloo-foreach`](https://core.tcl-lang.org/tcl/timeline?r=c11-tcloo-foreach) that applies those changes to the rest of Tcl.
Additionally needs:
* `FOREACH_HASH_ENTRY` (for those cases where the `Tcl_HashEntry*` needs to be accessible.)
* `FOREACH_HASH_ENTRY_REINIT` (for those cases where `Tcl_FirstHashEntry()` is called on every iteration.)
I'm not sure whether all the cases that use `FOREACH_HASH_ENTRY_REINIT` _should_ do so; some may be over-cautious. Ones where callbacks can add to the hash table while it is being iterated over for deletion, those definitely need it.
|