Lines Matching refs:Dict
39 ** $Header: //depot/main/gfx/lib/glu/libtess/dict.c#5 $
43 #include "dict-list.h"
47 Dict *dictNewDict( void *frame,
50 Dict *dict = (Dict *) memAlloc( sizeof( Dict ));
53 if (dict == NULL) return NULL;
55 head = &dict->head;
61 dict->frame = frame;
62 dict->leq = leq;
64 return dict;
68 void dictDeleteDict( Dict *dict )
72 for( node = dict->head.next; node != &dict->head; node = node->next ) {
75 memFree( dict );
79 DictNode *dictInsertBefore( Dict *dict, DictNode *node, DictKey key )
85 } while( node->key != NULL && ! (*dict->leq)(dict->frame, node->key, key));
100 void dictDelete( Dict *dict, DictNode *node ) /*ARGSUSED*/
108 DictNode *dictSearch( Dict *dict, DictKey key )
110 DictNode *node = &dict->head;
114 } while( node->key != NULL && ! (*dict->leq)(dict->frame, key, node->key));