Lines Matching defs:newnode
69 hashtab_ptr_t prev, cur, newnode;
85 newnode = (hashtab_ptr_t) malloc(sizeof(hashtab_node_t));
86 if (newnode == NULL)
88 memset(newnode, 0, sizeof(struct hashtab_node));
89 newnode->key = key;
90 newnode->datum = datum;
92 newnode->next = prev->next;
93 prev->next = newnode;
95 newnode->next = h->htable[hvalue];
96 h->htable[hvalue] = newnode;
141 hashtab_ptr_t prev, cur, newnode;
160 newnode = (hashtab_ptr_t) malloc(sizeof(hashtab_node_t));
161 if (newnode == NULL)
163 memset(newnode, 0, sizeof(struct hashtab_node));
164 newnode->key = key;
165 newnode->datum = datum;
167 newnode->next = prev->next;
168 prev->next = newnode;
170 newnode->next = h->htable[hvalue];
171 h->htable[hvalue] = newnode;