Go to the documentation of this file.
3 #ifndef tools_glutess_dict_list
4 #define tools_glutess_dict_list
8 #define DictKey DictListKey
10 #define DictNode DictListNode
12 #define dictNewDict(frame,leq) __gl_dictListNewDict(frame,leq)
13 #define dictDeleteDict(dict) __gl_dictListDeleteDict(dict)
15 #define dictSearch(dict,key) __gl_dictListSearch(dict,key)
16 #define dictInsert(dict,key) __gl_dictListInsert(dict,key)
17 #define dictInsertBefore(dict,node,key) __gl_dictListInsertBefore(dict,node,key)
18 #define dictDelete(dict,node) __gl_dictListDelete(dict,node)
20 #define dictKey(n) __gl_dictListKey(n)
21 #define dictSucc(n) __gl_dictListSucc(n)
22 #define dictPred(n) __gl_dictListPred(n)
23 #define dictMin(d) __gl_dictListMin(d)
24 #define dictMax(d) __gl_dictListMax(d)
30 #define __gl_dictListKey(n) ((n)->key)
31 #define __gl_dictListSucc(n) ((n)->next)
32 #define __gl_dictListPred(n) ((n)->prev)
33 #define __gl_dictListMin(d) ((d)->head.next)
34 #define __gl_dictListMax(d) ((d)->head.prev)
35 #define __gl_dictListInsert(d,k) (dictInsertBefore((d),&(d)->head,(k)))
61 if (dict == NULL)
return NULL;
78 for( node = dict->
head.
next; node != &dict->
head; node = next ) {
95 }
while( node->
key != NULL && ! (*dict->
leq)(dict->
frame, node->
key, key));
98 if (newNode == NULL)
return NULL;
103 newNode->
prev = node;
104 node->
next = newNode;
122 }
while( node->
key != NULL && ! (*dict->
leq)(dict->
frame, key, node->
key));
#define dictNewDict(frame, leq)
#define dictInsertBefore(dict, node, key)
#define dictSearch(dict, key)
#define dictDelete(dict, node)
int(* leq)(void *frame, DictKey key1, DictKey key2)
#define dictDeleteDict(dict)