Commit Graph

5 Commits

Author SHA1 Message Date
Ben Pfaff 9b45107fb7 Improve list traversal macros.
Make LIST_FOR_EACH[_SAFE] variable take logically correct value upon loop termination.

Also, add regression tests for linked list routines, to ensure that this
change does not break code.

Also, add new macro LIST_FOR_EACH_REVERSE.
2008-04-26 14:03:16 -07:00
casado 3f0201adb5 Update copyright on all non-GPL files 2008-03-27 20:12:18 -07:00
Ben Pfaff ee5d466f7f New function list_replace(), to replace a list element in-place. 2008-03-27 17:50:33 -07:00
Ben Pfaff be8f42912a Fix LIST_FOR_EACH_SAFE macro.
The previous definition had a syntax error that prevented it from
working.
2008-03-27 17:50:33 -07:00
Martin Casado 468e00132f Initial import 2008-03-04 13:12:53 -08:00