Updated configure scripts

This commit is contained in:
Michiel Broek 2003-12-23 18:33:42 +00:00
parent 74cf98c9c5
commit b70a0945a7

View File

@ -223,9 +223,9 @@ char *lh_insert(LHASH *lh, char *data)
return(NULL); return(NULL);
nn->data=data; nn->data=data;
nn->next=NULL; nn->next=NULL;
#ifndef NO_HASH_COMP //#ifndef NO_HASH_COMP
nn->hash=hash; nn->hash=hash;
#endif //#endif
*rn=nn; *rn=nn;
ret=NULL; ret=NULL;
lh->num_insert++; lh->num_insert++;
@ -348,12 +348,12 @@ static void expand(LHASH *lh)
for (np= *n1; np != NULL; ) for (np= *n1; np != NULL; )
{ {
#ifndef NO_HASH_COMP //#ifndef NO_HASH_COMP
hash=np->hash; hash=np->hash;
#else //#else
hash=(*(lh->hash))(np->data); // hash=(*(lh->hash))(np->data);
lh->num_hash_calls++; // lh->num_hash_calls++;
#endif //#endif
if ((hash%nni) != p) if ((hash%nni) != p)
{ /* move it */ { /* move it */
*n1= (*n1)->next; *n1= (*n1)->next;
@ -447,14 +447,14 @@ static LHASH_NODE **getrn(LHASH *lh, char *data, unsigned long *rhash)
ret= &(lh->b[(int)nn]); ret= &(lh->b[(int)nn]);
for (n1= *ret; n1 != NULL; n1=n1->next) for (n1= *ret; n1 != NULL; n1=n1->next)
{ {
#ifndef NO_HASH_COMP //#ifndef NO_HASH_COMP
lh->num_hash_comps++; lh->num_hash_comps++;
if (n1->hash != hash) if (n1->hash != hash)
{ {
ret= &(n1->next); ret= &(n1->next);
continue; continue;
} }
#endif //#endif
lh->num_comp_calls++; lh->num_comp_calls++;
if ((*cf)(n1->data,data) == 0) if ((*cf)(n1->data,data) == 0)
break; break;