4 // PopupMenu Library - Linked Lists
6 // Copyright (C)2000 Henrik Isaksson <henrik@boing.nu>
7 // All Rights Reserved.
14 #include <exec/nodes.h>
15 #include <exec/lists.h>
17 struct PM_GenericListNode
{
22 typedef struct MinList PMDList
;
24 typedef struct PM_GenericListNode PMGLN
;
26 #define PM_NextNode(x) (((struct MinNode *)x)->mln_Succ)
28 PMDList
*PM_InitList(void); // Create a new list header. *
29 void PM_FreeList(PMDList
*list
); // Free a list. *
30 PMDList
*PM_CopyList(PMDList
*list
); // Copy a list. *
32 void PM_AddToList(PMDList
*l
, PMNode
*A
); // Add A to l. *
33 void PM_Unlink(PMDList
*l
, PMNode
*A
); // Remove A from l. *
34 void PM_FreeNode(PMNode
*A
); // Free a node. *
35 PMNode
*PM_CopyNode(PMNode
*A
); // Copy a node. *