OSSP CVS Repository

ossp - Check-in [2612]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

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     5 inserted, 0 deleted

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__ */
+

CVSTrac 2.0.1