-/* $Header: hash.c,v 2.0 88/06/05 00:15:50 root Exp $
+/* $RCSfile: hash.c,v $$Revision: 4.1 $$Date: 92/08/07 18:29:20 $
+ *
+ * Copyright (c) 1991, Larry Wall
+ *
+ * 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 $
- * Revision 2.0 88/06/05 00:15:50 root
- * Baseline version 2.0.
- *
*/
#include <stdio.h>
#include "EXTERN.h"
-#include "handy.h"
-#include "util.h"
#include "a2p.h"
+#include "util.h"
STR *
hfetch(tb,key)
continue;
if (strNE(entry->hent_key,key)) /* is this it? */
continue;
- safefree((char*)entry->hent_val);
+ /*NOSTRICT*/
+ Safefree(entry->hent_val);
entry->hent_val = val;
return TRUE;
}
+ /*NOSTRICT*/
entry = (HENT*) safemalloc(sizeof(HENT));
entry->hent_key = savestr(key);
}
#endif
+void
hsplit(tb)
HASH *tb;
{
}
#endif
+int
hiterinit(tb)
register HASH *tb;
{