list handling functions More...
Go to the source code of this file.
Functions | |
void | List_SetLinkProc (RefListHeader header, RefListGetLinksProc getLinks) |
List_SetLinkProc. More... | |
void | List_InsertAhead (RefListHeader header, Ref atom) |
List_InsertAhead. More... | |
void | List_Append (RefListHeader header, Ref atom) |
void List_Append More... | |
void | List_InsertBefore (RefListHeader header, Ref atom, Ref mark) |
List_InsertBefore. More... | |
void | List_InsertAfter (RefListHeader header, Ref atom, Ref mark) |
List_InsertAfter. More... | |
void | List_Swap (RefListHeader header, Ref first, Ref second) |
List_Swap. More... | |
static long | List_SwapLinks (RefListHeader header, Ref atom) |
List_SwapLinks. More... | |
void | List_Reverse (RefListHeader header) |
List_Reverse. More... | |
void | List_Remove (RefListHeader header, Ref atom) |
List_Remove. More... | |
void | List_Concat (RefListHeader header1, RefListHeader header2) |
List_Concat. More... | |
long | List_EnumFrom (RefListHeader header, Ref atom, RefListEnumProc proc, Ref closure) |
List_EnumFrom. More... | |
long | List_Enum (RefListHeader header, RefListEnumProc proc, Ref closure) |
List_Enum. More... | |
long | List_EnumBackFrom (RefListHeader header, Ref atom, RefListEnumProc proc, Ref closure) |
List_EnumBackFrom. More... | |
long | List_EnumBack (RefListHeader header, RefListEnumProc proc, Ref closure) |
List_EnumBack. More... | |
static long | List_CountAtom (Ref p, Ref nbR) |
List_CountAtom. More... | |
long | List_Card (RefListHeader header) |
List_Card. More... | |
long | List_IsUnlink (RefListLinks links) |
List_IsUnlink. More... | |
void | List_Cut (RefListHeader header, Ref atom, RefListHeader newHeader) |
List_Cut. More... | |
list handling functions
list.c contains the functions to manage double link list with 2 entries (first and last element) Links belongs to each atom
Definition in file list.c.
void List_Append | ( | RefListHeader | header, |
Ref | atom | ||
) |
void List_Append
header | - RefListHeader header |
atom | - Ref atom |
Definition at line 71 of file list.c.
References wl_ListHeader::First, wl_ListHeader::GetLinks, wl_ListHeader::Last, and NULL.
long List_Card | ( | RefListHeader | header | ) |
List_Card.
header | - RefListHeader header |
Definition at line 461 of file list.c.
References List_CountAtom(), and List_Enum().
void List_Concat | ( | RefListHeader | header1, |
RefListHeader | header2 | ||
) |
List_Concat.
header1 | - RefListHeader header1 |
header2 | - RefListHeader header2 |
Definition at line 308 of file list.c.
References wl_ListHeader::First, wl_ListHeader::GetLinks, wl_ListHeader::Last, and NULL.
void List_Cut | ( | RefListHeader | header, |
Ref | atom, | ||
RefListHeader | newHeader | ||
) |
List_Cut.
header | - RefListHeader header |
atom | - Ref atom |
newHeader | - RefListHeader newHeader |
Definition at line 488 of file list.c.
References wl_ListHeader::First, wl_ListHeader::GetLinks, wl_ListHeader::Last, List_Last, List_Next, and NULL.
long List_Enum | ( | RefListHeader | header, |
RefListEnumProc | proc, | ||
Ref | closure | ||
) |
List_Enum.
header | - RefListHeader header |
proc | - RefListEnumProc proc |
closure | - Ref closure |
Definition at line 379 of file list.c.
References wl_ListHeader::First, and List_EnumFrom().
long List_EnumBack | ( | RefListHeader | header, |
RefListEnumProc | proc, | ||
Ref | closure | ||
) |
List_EnumBack.
header | - RefListHeader header |
proc | - RefListEnumProc proc |
closure | - Ref closure |
Definition at line 433 of file list.c.
References wl_ListHeader::Last, and List_EnumBackFrom().
long List_EnumBackFrom | ( | RefListHeader | header, |
Ref | atom, | ||
RefListEnumProc | proc, | ||
Ref | closure | ||
) |
long List_EnumFrom | ( | RefListHeader | header, |
Ref | atom, | ||
RefListEnumProc | proc, | ||
Ref | closure | ||
) |
void List_InsertAfter | ( | RefListHeader | header, |
Ref | atom, | ||
Ref | mark | ||
) |
List_InsertAfter.
header | - RefListHeader header |
atom | - Ref atom |
mark | - Ref mark) |
Definition at line 134 of file list.c.
References wl_ListHeader::GetLinks, wl_ListHeader::Last, List_InsertAhead(), and NULL.
void List_InsertAhead | ( | RefListHeader | header, |
Ref | atom | ||
) |
List_InsertAhead.
header | - RefListHeader header |
atom | - Ref atom |
List functions
Definition at line 44 of file list.c.
References wl_ListHeader::First, wl_ListHeader::GetLinks, wl_ListHeader::Last, and NULL.
void List_InsertBefore | ( | RefListHeader | header, |
Ref | atom, | ||
Ref | mark | ||
) |
List_InsertBefore.
header | - RefListHeader header |
atom | - Ref atom |
mark | - Ref mark |
Definition at line 101 of file list.c.
References wl_ListHeader::First, wl_ListHeader::GetLinks, List_Append(), and NULL.
long List_IsUnlink | ( | RefListLinks | links | ) |
List_IsUnlink.
links | - RefListLinks links |
Definition at line 475 of file list.c.
References wl_ListLinks::Next, NULL, and wl_ListLinks::Prev.
void List_Remove | ( | RefListHeader | header, |
Ref | atom | ||
) |
List_Remove.
header | - RefListHeader header |
atom | - Ref atom) |
Definition at line 258 of file list.c.
References wl_ListHeader::First, wl_ListHeader::GetLinks, wl_ListHeader::Last, and NULL.
void List_Reverse | ( | RefListHeader | header | ) |
List_Reverse.
header | - RefListHeader header |
Definition at line 230 of file list.c.
References wl_ListHeader::First, wl_ListHeader::GetLinks, wl_ListHeader::Last, List_SwapLinks(), text_buffer::next, and NULL.
void List_SetLinkProc | ( | RefListHeader | header, |
RefListGetLinksProc | getLinks | ||
) |
List_SetLinkProc.
header | - RefListHeader header |
getLinks | - RefListGetLinksProc getLinks |
Set functions
Definition at line 24 of file list.c.
References wl_ListHeader::First, wl_ListHeader::GetLinks, wl_ListHeader::Last, and NULL.
void List_Swap | ( | RefListHeader | header, |
Ref | first, | ||
Ref | second | ||
) |
List_Swap.
header | - RefListHeader header |
first | - Ref first |
second | - Ref second) |
Definition at line 172 of file list.c.
References wl_ListHeader::First, wl_ListHeader::GetLinks, and wl_ListHeader::Last.
|
static |
List_SwapLinks.
header | - RefListHeader header |
atom | - Ref atom) |
Definition at line 213 of file list.c.
References wl_ListHeader::GetLinks, and TRUE.