diff plugins/icq/list.h @ 1432:4c510ca3563f

[gaim-migrate @ 1442] icqlib 1.1.5 committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 28 Jan 2001 01:52:27 +0000
parents 201ec77f3a60
children 0ef6603d986e
line wrap: on
line diff
--- a/plugins/icq/list.h	Sat Jan 27 11:18:17 2001 +0000
+++ b/plugins/icq/list.h	Sun Jan 28 01:52:27 2001 +0000
@@ -14,19 +14,22 @@
 #define list_dequeue(plist) \
   list_remove_node(plist, plist->head)
 
-typedef struct list_node_s
+typedef struct list_node_s list_node;
+typedef struct list_s list;
+
+struct list_node_s
 {
-  struct list_node_s *next;
-  struct list_node_s *previous;
+  list_node *next;
+  list_node *previous;
   void *item;
-} list_node;
+};
 
-typedef struct list_s
+struct list_s
 {
   list_node *head;
   list_node *tail;
   int count;
-} list;
+};
 
 list *list_new(void);
 void list_delete(list *plist, void (*item_free_f)(void *));