2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Remove a node from a list
9 #include <aros/debug.h>
11 /*****************************************************************************
14 #include <exec/lists.h>
15 #include <proto/exec.h>
17 AROS_LH1I(void, Remove
,
20 AROS_LHA(struct Node
*, node
, A1
),
23 struct ExecBase
*, SysBase
, 42, Exec
)
26 Remove a node from a list.
29 node - This node to be removed.
34 There is no need to specify the list but the node must be in
49 ******************************************************************************/
54 Unfortunately, there is no (quick) check that the node
60 Just bend the pointers around the node, ie. we make our
61 predecessor point to our successor and vice versa
63 node
->ln_Pred
->ln_Succ
= node
->ln_Succ
;
64 node
->ln_Succ
->ln_Pred
= node
->ln_Pred
;