From 64ca8195974724944e2d098ee0799ad511c8e949 Mon Sep 17 00:00:00 2001 From: obrien Date: Sat, 13 Apr 2002 10:05:30 +0000 Subject: De'register. --- usr.bin/make/hash.c | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) (limited to 'usr.bin/make/hash.c') diff --git a/usr.bin/make/hash.c b/usr.bin/make/hash.c index 1e03dd3..478d3c8 100644 --- a/usr.bin/make/hash.c +++ b/usr.bin/make/hash.c @@ -87,15 +87,15 @@ static void RebuildTable(Hash_Table *); void Hash_InitTable(t, numBuckets) - register Hash_Table *t; /* Structure to use to hold table. */ + Hash_Table *t; /* Structure to use to hold table. */ int numBuckets; /* How many buckets to create for starters. * This number is rounded up to a power of * two. If <= 0, a reasonable default is * chosen. The table will grow in size later * as needed. */ { - register int i; - register struct Hash_Entry **hp; + int i; + struct Hash_Entry **hp; /* * Round up the size to a power of two. @@ -136,8 +136,8 @@ void Hash_DeleteTable(t) Hash_Table *t; { - register struct Hash_Entry **hp, *h, *nexth = NULL; - register int i; + struct Hash_Entry **hp, *h, *nexth = NULL; + int i; for (hp = t->bucketPtr, i = t->size; --i >= 0;) { for (h = *hp++; h != NULL; h = nexth) { @@ -177,9 +177,9 @@ Hash_FindEntry(t, key) Hash_Table *t; /* Hash table to search. */ char *key; /* A hash key. */ { - register Hash_Entry *e; - register unsigned h; - register char *p; + Hash_Entry *e; + unsigned h; + char *p; for (h = 0, p = key; *p;) h = (h << 5) - h + *p++; @@ -211,14 +211,14 @@ Hash_FindEntry(t, key) Hash_Entry * Hash_CreateEntry(t, key, newPtr) - register Hash_Table *t; /* Hash table to search. */ + Hash_Table *t; /* Hash table to search. */ char *key; /* A hash key. */ Boolean *newPtr; /* Filled in with TRUE if new entry created, * FALSE otherwise. */ { - register Hash_Entry *e; - register unsigned h; - register char *p; + Hash_Entry *e; + unsigned h; + char *p; int keylen; struct Hash_Entry **hp; @@ -281,7 +281,7 @@ Hash_DeleteEntry(t, e) Hash_Table *t; Hash_Entry *e; { - register Hash_Entry **hp, *p; + Hash_Entry **hp, *p; if (e == NULL) return; @@ -320,7 +320,7 @@ Hash_DeleteEntry(t, e) Hash_Entry * Hash_EnumFirst(t, searchPtr) Hash_Table *t; /* Table to be searched. */ - register Hash_Search *searchPtr;/* Area in which to keep state + Hash_Search *searchPtr; /* Area in which to keep state * about search.*/ { searchPtr->tablePtr = t; @@ -349,10 +349,9 @@ Hash_EnumFirst(t, searchPtr) Hash_Entry * Hash_EnumNext(searchPtr) - register Hash_Search *searchPtr; /* Area used to keep state about - search. */ + Hash_Search *searchPtr; /* Area used to keep state about search. */ { - register Hash_Entry *e; + Hash_Entry *e; Hash_Table *t = searchPtr->tablePtr; /* @@ -395,11 +394,11 @@ Hash_EnumNext(searchPtr) static void RebuildTable(t) - register Hash_Table *t; + Hash_Table *t; { - register Hash_Entry *e, *next = NULL, **hp, **xp; - register int i, mask; - register Hash_Entry **oldhp; + Hash_Entry *e, *next = NULL, **hp, **xp; + int i, mask; + Hash_Entry **oldhp; int oldsize; oldhp = t->bucketPtr; -- cgit v1.1