Skip to content
Tcl Source Code Timeline
Login

Timeline

About branch c11-full-hash-foreach

Extended version of 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.

2 check-ins related to "c11-full-hash-foreach"
2025-10-27
09:07
Extend the use of the FOREACH_HASH macro set Tcl-wide leaf check-in: f4fafa6feb user: dkf tags: c11-full-hash-foreach
2025-10-25
11:23
Use C11 variable placement to do nicer FOREACH* macros in TclOO leaf check-in: 61cbca4e60 user: dkf tags: c11-tcloo-foreach