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