2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

checkpoint

This commit is contained in:
Mark Andrews 2006-05-30 04:18:36 +00:00
parent b5205d860b
commit cd18f34923

View File

@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: list.h,v 1.20 2004/03/05 05:10:58 marka Exp $ */ /* $Id: list.h,v 1.21 2006/05/30 04:18:36 marka Exp $ */
#ifndef ISC_LIST_H #ifndef ISC_LIST_H
#define ISC_LIST_H 1 #define ISC_LIST_H 1
@ -90,12 +90,16 @@
do { \ do { \
if ((elt)->link.next != NULL) \ if ((elt)->link.next != NULL) \
(elt)->link.next->link.prev = (elt)->link.prev; \ (elt)->link.next->link.prev = (elt)->link.prev; \
else \ else { \
ISC_INSIST((list).tail == (elt)); \
(list).tail = (elt)->link.prev; \ (list).tail = (elt)->link.prev; \
} \
if ((elt)->link.prev != NULL) \ if ((elt)->link.prev != NULL) \
(elt)->link.prev->link.next = (elt)->link.next; \ (elt)->link.prev->link.next = (elt)->link.next; \
else \ else { \
ISC_INSIST((list).head == (elt)); \
(list).head = (elt)->link.next; \ (list).head = (elt)->link.next; \
} \
(elt)->link.prev = (type *)(-1); \ (elt)->link.prev = (type *)(-1); \
(elt)->link.next = (type *)(-1); \ (elt)->link.next = (type *)(-1); \
} while (0) } while (0)