Commit 168887fa by Richard Kenner

(hash_is_key_in_hash): New function.

From-SVN: r11979
parent 7cd3c88d
...@@ -27,7 +27,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -27,7 +27,6 @@ Boston, MA 02111-1307, USA. */
#include "assert.h" #include "assert.h"
#include "objc/hash.h" #include "objc/hash.h"
#include "objc/objc.h"
#include "runtime.h" /* for DEBUG_PRINTF */ #include "runtime.h" /* for DEBUG_PRINTF */
...@@ -245,7 +244,7 @@ hash_value_for_key (cache_ptr cache, const void *key) ...@@ -245,7 +244,7 @@ hash_value_for_key (cache_ptr cache, const void *key)
do { do {
if ((*cache->compare_func)(node->key, key)) { if ((*cache->compare_func)(node->key, key)) {
retval = node->value; retval = node->value;
break; break;
} else } else
node = node->next; node = node->next;
} while (!retval && node); } while (!retval && node);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment