Doubly linked lists unit test and update to implementation.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 6 Dec 2011 19:09:56 +0000 (19:09 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 6 Dec 2011 19:09:56 +0000 (19:09 +0000)
commitca41b4aba05e51c9f1935f848dacd904a31a07e8
tree694749cebf8b6b13220b2d3454b85451212d599d
parentb8dba87a4c1af520c92f5183b7b516f006964861
Doubly linked lists unit test and update to implementation.

Update the doubly linked list implementation.  Now safe traversing can
insert before and after the current node when traversing in either
direction.

Updated the linked lists unit test test_linkedlist to also test doubly
linked lists.  The old test_dlinkedlist requires a manual check of results
and probably should be removed.

Review: https://reviewboard.asterisk.org/r/1569/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@347110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/dlinkedlists.h
tests/test_linkedlists.c