Improve list traversal macros.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 26 Apr 2008 01:28:03 +0000 (18:28 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 26 Apr 2008 21:03:16 +0000 (14:03 -0700)
commit9b45107fb76e038ecffe66464d935246ad887e84
tree5c4d2574e02d8b053788e0bf489b112860de4bd7
parenta3505dd08fc95048102eb5fed4df5f81c36ef409
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.
Makefile.am
configure.ac
include/list.h
tests/.gitignore [new file with mode: 0644]
tests/Makefile.am [new file with mode: 0644]
tests/test-list.c [new file with mode: 0644]