]> andersk Git - moira.git/commitdiff
added hint to hash_step
authormar <mar>
Thu, 4 Aug 1988 10:48:21 +0000 (10:48 +0000)
committermar <mar>
Thu, 4 Aug 1988 10:48:21 +0000 (10:48 +0000)
lib/hash.c

index c04fd171819c1ed4fcb368947a82a393a866265f..1d61cbb310abd5ddb7ef0e172edc379a42555d70 100644 (file)
@@ -121,15 +121,16 @@ void (*callback)();
 /* Step through the hash table, calling the callback proc with each key.
  */
 
-hash_step(h, callback)
+hash_step(h, callback, hint)
 struct hash *h;
 void (*callback)();
+char *hint;
 {
     register struct bucket *b, **p;
 
     for (p = &(h->data[h->size - 1]); p >= h->data; p--) {
        for (b = *p; b; b = b->next) {
-           (*callback)(b->key, b->data);
+           (*callback)(b->key, b->data, hint);
        }
     }
 }
This page took 0.066069 seconds and 5 git commands to generate.