Files | |
file | list.c |
List core file. | |
file | list.h |
List Header file. | |
Data Structures | |
struct | TBListItem |
Basic List Item. More... | |
struct | TSListItem |
Simple List Item. More... | |
struct | TBList |
Basic and Simple List (identical). More... | |
Typedefs | |
typedef TBListItem | TBListItem |
Basic List Item. | |
typedef TSListItem | TSListItem |
Simple List Item. | |
typedef TSListItem * | PSListItem |
Simple List Item. | |
typedef TBList | TBList |
Basic and Simple List (identical). | |
typedef TBList * | PBList |
Basic and Simple List (identical). | |
typedef TBList * | PSList |
Basic and Simple List (identical). | |
Functions | |
PListItem | ListAtItem (PList o, unsigned long Index) |
Found the item that index is specified one. | |
void * | ListAt (PList o, unsigned long Index) |
Found the data associated to item that index is specified one. | |
PListItem | ListKeyItem (PList o, char *Key) |
Found the item that Key is specified one. | |
void * | ListKey (PList o, char *Key) |
Found the data associated to item that Key is specified one. | |
PListItem | ListKeyCaseItem (PList o, char *Key) |
Found the item that Key is specified one ignoring the case. | |
void * | ListKeyCase (PList o, char *Key) |
Found the data associated to item that Key is specified one ignoring the case. | |
PListItem | ListFoundItem (PList o, void *Data) |
Found the item that Data is specified one. | |
unsigned long | ListFoundIndex (PList o, void *Data) |
Determines the index of item that Data is specified one. | |
PList | NewList (void) |
Creates a PList. | |
void | FreeList (PList o) |
Free a list and items data (using the FreeData procedure if specified, else doesn't free data). | |
void | KickList (PList o) |
Free a List but do not free items data. |
PList is the most used system as it is the oldest and have interresting functionalities. PBList and PSList provide an inline module, so very fast, and lightweight structures but have little funtionalities.
PSList is derivated form PBList : PBList functions can be used for PSList.
PList is derivated from PSList : PBList and PSList functions can be used for PList (to get better performances).
*BUT* do not allocate a PSList item in a PList, system will crash.
|
Free a list and items data (using the FreeData procedure if specified, else doesn't free data).
|
|
Free a List but do not free items data.
|
|
Found the data associated to item that index is specified one.
|
|
Found the item that index is specified one.
|
|
Determines the index of item that Data is specified one.
|
|
Found the item that Data is specified one.
|
|
Found the data associated to item that Key is specified one. Case sensitive.
|
|
Found the data associated to item that Key is specified one ignoring the case.
|
|
Found the item that Key is specified one ignoring the case.
|
|
Found the item that Key is specified one. Case sensitive.
|
|
Creates a PList.
|