#include <mi32/stddefns.h>
Include dependency graph for mlist.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | MLIST |
| struct | MLISTNODE |
| Structures used by Mlist functions. More... | |
Defines | |
| #define | GEOMLIBEXPORT MI_DLLIMPORT |
Typedefs | |
| typedef MLIST | LINKEDLIST |
| typedef MLISTNODE | LINKEDLISTNODE |
Functions | |
| GEOMLIBEXPORT void | MlistAddToHead (MLIST *list, MLISTNODE *node, UINT32 flags) |
| GEOMLIBEXPORT void | MlistAddToTail (MLIST *list, MLISTNODE *node, UINT32 flags) |
| GEOMLIBEXPORT void | MlistRemove (MLIST *list, MLISTNODE *node, UINT32 flags) |
Definition in file mlist.h.
|
|
|
|
|
old names for old code
|
|
|
|
|
||||||||||||||||
|
Add to the head of a Linked List. This function adds a node to the head of list. You can create a linked list of any kind of structure simply by putting a MLISTNODE in the structure. It works best to put the MLISTNODE as the first thing in the structure you want to keep a list of. That way the node.next can be treated as both a pointer to a MLISTNODE (for the purposes of iterating through the list) and a pointer to whatever the structure is. Of course you have to cast it. There are macros for this.
|
|
||||||||||||||||
|
Add to the tail of a Linked List. This function adds a node to the tail of list. You can create a linked list of any kind of structure simply by putting a MLISTNODE in the structure.
|
|
||||||||||||||||
|
Remove an item from a linked list. This function removes a node from the list. The node's prev and next fields are set to NULL.
|
1.3.8-20040913