Check-in Number:
|
2612 | |
Date: |
2002-Oct-18 12:21:41 (local)
2002-Oct-18 10:21:41 (UTC) |
User: | rse |
Branch: | |
Comment: |
add standard protect to avoid double-inclusions |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/sio/list.h 1.1 -> 1.2
--- list.h 2002/10/18 08:57:34 1.1
+++ list.h 2002/10/18 10:21:41 1.2
@@ -29,6 +29,9 @@
** list.h: generic double-linked list macros
*/
+#ifndef __LIST_H__
+#define __LIST_H__
+
#define LIST(elem) \
struct { elem *head, *tail; }
#define NODE(elem) \
@@ -158,3 +161,5 @@
#define FOREACHR(q,l,n) for (n = TAIL(q,l); n; n = PREV(n,l))
#define FOREACHD(q,l,n,r) for (n = TAIL(q,l); n && (r = PREV(n,l), 1); n = r)
+#endif /* __LIST_H__ */
+
|
|