Lines Matching defs:dict
36 #include "dict-list.h"
43 Dict *dict = (Dict *) memAlloc( sizeof( Dict ));
46 if (dict == NULL) return NULL;
48 head = &dict->head;
54 dict->frame = frame;
55 dict->leq = leq;
57 return dict;
61 void dictDeleteDict( Dict *dict )
65 for( node = dict->head.next; node != &dict->head; node = next ) {
69 memFree( dict );
73 DictNode *dictInsertBefore( Dict *dict, DictNode *node, DictKey key )
79 } while( node->key != NULL && ! (*dict->leq)(dict->frame, node->key, key));
94 void dictDelete( Dict *dict, DictNode *node ) /*ARGSUSED*/
102 DictNode *dictSearch( Dict *dict, DictKey key )
104 DictNode *node = &dict->head;
108 } while( node->key != NULL && ! (*dict->leq)(dict->frame, key, node->key));