Lines Matching defs:newnode
48 hashtab_ptr_t prev, cur, newnode;
64 newnode = (hashtab_ptr_t) malloc(sizeof(hashtab_node_t));
65 if (newnode == NULL)
67 memset(newnode, 0, sizeof(struct hashtab_node));
68 newnode->key = key;
69 newnode->datum = datum;
71 newnode->next = prev->next;
72 prev->next = newnode;
74 newnode->next = h->htable[hvalue];
75 h->htable[hvalue] = newnode;
120 hashtab_ptr_t prev, cur, newnode;
139 newnode = (hashtab_ptr_t) malloc(sizeof(hashtab_node_t));
140 if (newnode == NULL)
142 memset(newnode, 0, sizeof(struct hashtab_node));
143 newnode->key = key;
144 newnode->datum = datum;
146 newnode->next = prev->next;
147 prev->next = newnode;
149 newnode->next = h->htable[hvalue];
150 h->htable[hvalue] = newnode;