/* $RCSfile: hash.c,v $$Revision: 4.1 $$Date: 92/08/07 18:29:20 $
*
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1999, 2000, 2001, 2002,
* by Larry Wall and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
* $Log: hash.c,v $
*/
#include <stdio.h>
#include "EXTERN.h"
#include "a2p.h"
#include "util.h"
#ifdef NETWARE
#endif
STR *
{
register char *s;
register int i;
register int hash;
if (!tb)
return Nullstr;
/* while */ *s;
s++, i++, hash *= 5) {
}
continue;
continue;
}
return Nullstr;
}
bool
{
register char *s;
register int i;
register int hash;
if (!tb)
return FALSE;
/* while */ *s;
s++, i++, hash *= 5) {
}
i = 1;
continue;
continue;
/*NOSTRICT*/
return TRUE;
}
/*NOSTRICT*/
if (i) { /* initial entry? */
}
return FALSE;
}
#ifdef NOTUSED
bool
{
register char *s;
register int i;
register int hash;
if (!tb)
return FALSE;
/* while */ *s;
s++, i++, hash *= 5) {
}
i = 1;
continue;
continue;
if (i)
return TRUE;
}
return FALSE;
}
#endif
void
{
register int i;
register HENT **a;
register HENT **b;
for (i=0; i<oldsize; i++,a++) {
if (!*a) /* non-existent */
continue;
b = a+oldsize;
if (!*b)
*b = entry;
continue;
}
else
}
if (!*a) /* everything moved */
}
}
HASH *
hnew(void)
{
return tb;
}
#ifdef NOTUSED
{
}
#endif
int
{
}
HENT *
{
do {
if (entry)
if (!entry) {
break;
}
}
} while (!entry);
return entry;
}
char *
{
}
STR *
{
}