summaryrefslogtreecommitdiffstats
path: root/contrib/libobjc/hash.c
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-07-11 03:42:15 +0000
committerkan <kan@FreeBSD.org>2003-07-11 03:42:15 +0000
commitbb754981e6f83bc1f224dc4b7f478d80024e6c9f (patch)
treeb912048c8df69db39da9eded7043642b2854fa0d /contrib/libobjc/hash.c
parentc7bbbdd036d3dd7ae253fb13c9994215af06f073 (diff)
downloadFreeBSD-src-bb754981e6f83bc1f224dc4b7f478d80024e6c9f.zip
FreeBSD-src-bb754981e6f83bc1f224dc4b7f478d80024e6c9f.tar.gz
Gcc 3.3.1-pre 2003-07-11 Objective C support bits.
Diffstat (limited to 'contrib/libobjc/hash.c')
-rw-r--r--contrib/libobjc/hash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libobjc/hash.c b/contrib/libobjc/hash.c
index 223991f..2f58b2c 100644
--- a/contrib/libobjc/hash.c
+++ b/contrib/libobjc/hash.c
@@ -47,7 +47,7 @@ hash_new (unsigned int size, hash_func_type hash_func,
/* Pass me a value greater than 0 and a power of 2. */
assert (size);
- assert (!(size & (size - 1)));
+ assert (! (size & (size - 1)));
/* Allocate the cache structure. calloc insures
its initialization for default values. */
@@ -196,7 +196,7 @@ hash_remove (cache_ptr cache, const void *key)
objc_free(node);
} else
prev = node, node = node->next;
- } while (!removed && node);
+ } while (! removed && node);
assert (removed);
}
@@ -210,7 +210,7 @@ hash_next (cache_ptr cache, node_ptr node)
{
/* If the scan is being started then reset the last node
visitied pointer and bucket index. */
- if (!node)
+ if (! node)
cache->last_bucket = 0;
/* If there is a node visited last then check for another
@@ -258,7 +258,7 @@ hash_value_for_key (cache_ptr cache, const void *key)
break;
} else
node = node->next;
- } while (!retval && node);
+ } while (! retval && node);
return retval;
}
OpenPOWER on IntegriCloud