basic: add LIST_INSERT_BEFORE
authorAlex Crawford <alex.crawford@coreos.com>
Tue, 4 Aug 2015 06:11:53 +0000 (23:11 -0700)
committerAlex Crawford <alex.crawford@coreos.com>
Tue, 4 Aug 2015 10:23:43 +0000 (03:23 -0700)
commitdbe465c93ea8a87da95919d3f0ee802865802cfa
tree1cc0d50e2a026e988a85672d531383f97776af7c
parent58a2e9acd8216f55b004e5432f76a851f7b233c0
basic: add LIST_INSERT_BEFORE

Similar in function to LIST_INSERT_AFTER, this will insert a new element
into the list before the specified position. If the specified position
is NULL, the element is added as the tail of the list.
src/basic/list.h
src/test/test-list.c