comparison src/hash.c @ 241:f955c73f5258 r20-5b19

Import from CVS: tag r20-5b19
author cvs
date Mon, 13 Aug 2007 10:16:16 +0200
parents 3d6bfa290dbd
children 966663fcf606
comparison
equal deleted inserted replaced
240:835e739f3c17 241:f955c73f5258
451 { 451 {
452 hentry *e; 452 hentry *e;
453 hentry *limit; 453 hentry *limit;
454 454
455 if (hash->zero_set) 455 if (hash->zero_set)
456 ((*mf) (0, hash->zero_entry, arg)); 456 {
457 if (((*mf) (0, hash->zero_entry, arg)))
458 return;
459 }
457 460
458 for (e = hash->harray, limit = e + hash->size; e < limit; e++) 461 for (e = hash->harray, limit = e + hash->size; e < limit; e++)
459 { 462 {
460 if (e->key) 463 if (e->key)
461 ((*mf) (e->key, e->contents, arg)); 464 {
465 if (((*mf) (e->key, e->contents, arg)))
466 return;
467 }
462 } 468 }
463 } 469 }
464 470
465 void 471 void
466 map_remhash (remhash_predicate predicate, c_hashtable hash, void *arg) 472 map_remhash (remhash_predicate predicate, c_hashtable hash, void *arg)