Lines Matching defs:node
243 GHashNode **node;
245 node = &hash_table->nodes
254 while (*node && !(*hash_table->key_equal_func) ((*node)->key, key))
255 node = &(*node)->next;
257 while (*node && (*node)->key != key)
258 node = &(*node)->next;
260 return node;
279 GHashNode *node;
283 node = *g_hash_table_lookup_node (hash_table, key);
285 return node ? node->value : NULL;
310 GHashNode *node;
314 node = *g_hash_table_lookup_node (hash_table, lookup_key);
316 if (node)
319 *orig_key = node->key;
321 *value = node->value;
349 GHashNode **node;
354 node = g_hash_table_lookup_node (hash_table, key);
356 if (*node)
358 /* do not reset node->key in this place, keeping
368 hash_table->value_destroy_func ((*node)->value);
370 (*node)->value = value;
374 *node = g_hash_node_new (key, value);
400 GHashNode **node;
405 node = g_hash_table_lookup_node (hash_table, key);
407 if (*node)
410 hash_table->key_destroy_func ((*node)->key);
413 hash_table->value_destroy_func ((*node)->value);
415 (*node)->key = key;
416 (*node)->value = value;
420 *node = g_hash_node_new (key, value);
444 GHashNode **node, *dest;
448 node = g_hash_table_lookup_node (hash_table, key);
449 if (*node)
451 dest = *node;
452 (*node) = dest->next;
512 GHashNode **node, *dest;
516 node = g_hash_table_lookup_node (hash_table, key);
517 if (*node)
519 dest = *node;
520 (*node) = dest->next;
613 GHashNode *node, *prev;
623 for (node = hash_table->nodes[i]; node; prev = node, node = node->next)
625 if ((* func) (node->key, node->value, user_data))
633 prev->next = node->next;
634 g_hash_node_destroy (node,
637 node = prev;
641 hash_table->nodes[i] = node->next;
642 g_hash_node_destroy (node,
674 GHashNode *node;
681 for (node = hash_table->nodes[i]; node; node = node->next)
682 (* func) (node->key, node->value, user_data);
707 GHashNode *node;
714 for (node = hash_table->nodes[i]; node; node = node->next)
715 if (predicate (node->key, node->value, user_data))
716 return node->value;
742 GHashNode *node;
754 for (node = hash_table->nodes[i]; node; node = next)
756 next = node->next;
758 hash_val = (* hash_table->hash_func) (node->key) % new_size;
760 node->next = new_nodes[hash_val];
761 new_nodes[hash_val] = node;