Lines Matching refs:list

42 init_list(elem_list *list, int hsize)  in init_list()  argument
46 list->type = 0; in init_list()
47 list->list = (elem**)malloc(sizeof (elem *) * hsize); in init_list()
48 list->num_of_buckets = hsize; in init_list()
49 for (i = 0; i < list->num_of_buckets; i++) in init_list()
50 list->list[i] = NULL; in init_list()
55 examine_list(elem_list *list) in examine_list() argument
61 for (i = 0; i < list->num_of_buckets; i++) { in examine_list()
63 for (cur = list->list[i]; cur; cur = cur->next) in examine_list()
77 print_list(elem_list *list) in print_list() argument
82 for (i = 0; i < list->num_of_buckets; i++) { in print_list()
83 for (cur = list->list[i]; cur; cur = cur->next) in print_list()
95 print_type_list(elem_list *list, char file_type) in print_type_list() argument
100 for (i = 0; i < list->num_of_buckets; i++) { in print_type_list()
101 for (cur = list->list[i]; cur; cur = cur->next) { in print_type_list()
140 find_elem(elem_list *list, elem *key, int flag) in find_elem() argument
144 for (e = list->list[hash(key->name) % list->num_of_buckets]; e; in find_elem()
163 find_elem_isa(elem_list *list, elem *key, int flag) in find_elem_isa() argument
170 e = find_elem(list, key, flag); in find_elem_isa()
181 find_elem_mach(elem_list *list, elem *key, int flag) in find_elem_mach() argument
185 for (e = list->list[hash(key->name) % list->num_of_buckets]; e; in find_elem_mach()
245 add_elem(elem_list *list, elem *e) in add_elem() argument
252 bucket = hash(e->name) % list->num_of_buckets; in add_elem()
253 if (list->list[bucket]) { in add_elem()
254 for (cur = list->list[bucket]; cur; cur = cur->next) { in add_elem()
273 e->next = list->list[bucket]; in add_elem()
274 list->list[bucket] = e; in add_elem()