Commit in reactos/drivers/net/tcpip/include on MAIN
tilists.h+40added 1.1
Forgot to add file tilists.h

reactos/drivers/net/tcpip/include
tilists.h added at 1.1
diff -N tilists.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tilists.h	19 Jul 2004 04:30:04 -0000	1.1
@@ -0,0 +1,40 @@
+#ifndef _TILISTS_H
+#define _TILISTS_H
+
+#define TIPASTE(x,y) x ## y
+
+#define IF_LIST_ITER(n) \
+    PLIST_ENTRY TIPASTE(n,Entry); \
+    PIP_INTERFACE n;
+
+#define ADE_LIST_ITER(n) \
+    PLIST_ENTRY TIPASTE(n,Entry); \
+    PADDRESS_ENTRY n;
+
+#define ForEachInterface(n) \
+    TIPASTE(n,Entry) = InterfaceListHead.Flink; \
+    while (TIPASTE(n,Entry) != &InterfaceListHead) { \
+              TI_DbgPrint \
+                  (MAX_TRACE,( # n ": %x\n", \
+                               TIPASTE(n,Entry))); \
+              ASSERT(TIPASTE(n,Entry)); \
+	      n = CONTAINING_RECORD(TIPASTE(n,Entry), IP_INTERFACE, \
+				    ListEntry); \
+	      ASSERT(n);
+
+#define EndFor(n) \
+     TI_DbgPrint(MAX_TRACE,("Next " # n " %x\n",  \
+			    TIPASTE(n,Entry->Flink))); \
+     TIPASTE(n,Entry) = TIPASTE(n,Entry)->Flink; \
+}
+
+#define ForEachADE(ADEList,n) \
+            TIPASTE(n,Entry) = ADEList.Flink; \
+            ASSERT(TIPASTE(n,Entry)); \
+            while (TIPASTE(n,Entry) != &ADEList) { \
+                    ASSERT(TIPASTE(n,Entry)); \
+	            n = CONTAINING_RECORD(TIPASTE(n,Entry), \
+                                          ADDRESS_ENTRY, ListEntry); \
+                    ASSERT(n);
+
+#endif/*_TILISTS_H*/
CVSspam 0.2.8