Commit Graph

4 Commits (f08cc1f3db1cae44274c15855d1e4fce6141ff31)

Author SHA1 Message Date
Eric Leblond 9c47ada771 Add removal safe TAILQ iterator.
TAILQ_FOREACH macro was not safe for element removal as it was
accessing the next element in case of a free. This patch is inspired
by Linux list handling and provide a new macro TAILQ_FOREACH_SAFE.
This macro is removal safe and only differs by a last argument being
a temporaty pointer to an element.
13 years ago
pilcrow ed69eeab14 Safer macro parenthesization and do/while use 14 years ago
Jan Jezek fe6a72befc Code is now compilable on the Win32 platform 16 years ago
Jason Ish e0b9e85230 Break out checksum fixup code to make the license separation more clear. 16 years ago