* @(#)queue.h 8.5 (Berkeley) 8/20/94
* $FreeBSD: src/sys/sys/queue.h,v 1.32.2.5 2001/09/30 21:12:54 luigi Exp $
*/
+/* See also: ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change */
#ifndef _LDAP_QUEUE_H_
#define _LDAP_QUEUE_H_
#define LDAP_SLIST_HEAD_INITIALIZER(head) \
{ NULL }
-#define LDAP_SLIST_NEXT_INITIALIZER(next) \
- { NULL }
#define LDAP_SLIST_ENTRY(type) \
struct { \
struct type *sle_next; /* next element */ \
}
+#define LDAP_SLIST_ENTRY_INITIALIZER(entry) \
+ { NULL }
+
/*
* Singly-linked List functions.
*/
struct type *stqe_next; /* next element */ \
}
+#define LDAP_STAILQ_ENTRY_INITIALIZER(entry) \
+ { NULL }
+
/*
* Singly-linked Tail queue functions.
*/
#define LDAP_LIST_HEAD_INITIALIZER(head) \
{ NULL }
-#define LDAP_LIST_NEXT_PREV_INITIALIZER(next, prev) \
- { NULL, NULL }
#define LDAP_LIST_ENTRY(type) \
struct { \
struct type **le_prev; /* address of previous next element */ \
}
+#define LDAP_LIST_ENTRY_INITIALIZER(entry) \
+ { NULL, NULL }
+
/*
* List functions.
*/
struct type **tqe_prev; /* address of previous next element */ \
}
+#define LDAP_TAILQ_ENTRY_INITIALIZER(entry) \
+ { NULL, NULL }
+
/*
* Tail queue functions.
*/