summaryrefslogtreecommitdiffstats
path: root/src/util.h
Commit message (Collapse)AuthorAgeFilesLines
* Add CHECK_NEXT() macro similar to CHECK()Martin Nagy2009-08-041-2/+11
| | | | | | | The CHECK_NEXT() macro behaves exactly as the CHECK() macro, with the difference that it jumps to the 'next' label. This is useful if we need to cleanup after every loop cycle, but don't want to abort the whole function if error is found.
* Add FOR_EACH style macrosMartin Nagy2009-08-041-0/+15
| | | | | | | | | | | | | | | | | The FOR_EACH() macro will simply traverse the given list. Usage: FOR_EACH(element, list) do_something(element); The FOR_EACH_UNLINK() macro will traverse the list and unlink each element. Useful when destroying a whole list. Usage: FOR_EACH_UNLINK(element, list) { destroy(&element); } END_FOR_EACH_UNLINK(element); All these macros assume that 'link' is used to connect list elements, as used in standard ISC list macros.
* Prepare the tree for conversion to autoconf.Martin Nagy2009-03-301-0/+92
All source files are now moved to src/ and the old Makefile is removed.