Overview
| Artifact ID: | 218ca75a14d12db53d8c339f1acecec7ab586ebd86052453075cf69fff42c96c |
|---|---|
| Page Name: | branch/c11-full-hash-foreach |
| Date: | 2025-10-27 11:48:24 |
| Original User: | dkf |
| Mimetype: | text/x-markdown |
| Parent: | ed7c15346cfb960d839bbad61bbcf85c458d1b9da2e210933ba615750b7bc319 (diff) |
Content
Extended version of c11-tcloo-foreach that applies those changes to the rest of Tcl.
Additionally needs:
FOREACH_HASH_ENTRY(for those cases where theTcl_HashEntry*needs to be accessible.)FOREACH_HASH_ENTRY_REINIT(for those cases whereTcl_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.