Lines Matching refs:ptr
211 register st_table_entry *ptr, *next; local
215 ptr = table->bins[i];
216 while (ptr != 0) {
217 next = ptr->next;
218 free(ptr);
219 ptr = next;
226 #define PTR_NOT_EQUAL(table, ptr, hash_val, key) \ argument
227 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key)))
235 #define FIND_ENTRY(table, ptr, hash_val, bin_pos) do {\ argument
237 ptr = (table)->bins[bin_pos];\
238 if (PTR_NOT_EQUAL(table, ptr, hash_val, key)) {\
240 while (PTR_NOT_EQUAL(table, ptr->next, hash_val, key)) {\
241 ptr = ptr->next;\
243 ptr = ptr->next;\
254 register st_table_entry *ptr; local
257 FIND_ENTRY(table, ptr, hash_val, bin_pos);
259 if (ptr == 0) {
263 if (value != 0) *value = ptr->record;
293 register st_table_entry *ptr; local
296 FIND_ENTRY(table, ptr, hash_val, bin_pos);
298 if (ptr == 0) {
303 ptr->record = value;
325 register st_table_entry *ptr, *next, **new_bins; local
336 ptr = table->bins[i];
337 while (ptr != 0) {
338 next = ptr->next;
339 hash_val = ptr->hash % new_num_bins;
340 ptr->next = new_bins[hash_val];
341 new_bins[hash_val] = ptr;
342 ptr = next;
355 st_table_entry *ptr, *entry; local
374 ptr = old_table->bins[i];
375 while (ptr != 0) {
382 *entry = *ptr;
385 ptr = ptr->next;
399 register st_table_entry *ptr; local
402 ptr = table->bins[hash_val];
404 if (ptr == 0) {
409 if (EQUAL(table, *key, ptr->key)) {
410 table->bins[hash_val] = ptr->next;
412 if (value != 0) *value = ptr->record;
413 *key = ptr->key;
414 free(ptr);
418 for(; ptr->next != 0; ptr = ptr->next) {
419 if (EQUAL(table, ptr->next->key, *key)) {
420 tmp = ptr->next;
421 ptr->next = ptr->next->next;
441 register st_table_entry *ptr; local
444 ptr = table->bins[hash_val];
446 if (ptr == 0) {
451 for(; ptr != 0; ptr = ptr->next) {
452 if ((ptr->key != never) && EQUAL(table, ptr->key, *key)) {
454 *key = ptr->key;
455 if (value != 0) *value = ptr->record;
456 ptr->key = ptr->record = never;
494 st_table_entry *ptr, *last, *tmp; local
500 for(ptr = table->bins[i]; ptr != 0;) {
501 retval = (*func)(ptr->key, ptr->record, arg);
507 if (tmp == ptr) break;
516 last = ptr;
517 ptr = ptr->next;
522 tmp = ptr;
524 table->bins[i] = ptr->next;
527 last->next = ptr->next;
529 ptr = ptr->next;