X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=x2p%2Fhash.h;h=0c202d0af34089c28e0f1e284e7ccd9766807b2d;hb=91e09a610c67b89c771cab2084dbd4490cd4351a;hp=06d803a12dcbe19baec64e4dab3e30e1fd413b62;hpb=8d063cd8450e59ea1c611a2f4f5a21059a2804f1;p=p5sagit%2Fp5-mst-13.2.git diff --git a/x2p/hash.h b/x2p/hash.h index 06d803a..0c202d0 100644 --- a/x2p/hash.h +++ b/x2p/hash.h @@ -1,9 +1,11 @@ -/* $Header: hash.h,v 1.0 87/12/18 13:07:23 root Exp $ +/* $RCSfile: hash.h,v $$Revision: 4.1 $$Date: 92/08/07 18:29:21 $ + * + * Copyright (c) 1991-2003, 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.h,v $ - * Revision 1.0 87/12/18 13:07:23 root - * Initial revision - * */ #define FILLPCT 60 /* don't make greater than 99 */ @@ -39,11 +41,12 @@ struct htbl { HENT *tbl_eiter; /* current entry of iterator */ }; -STR *hfetch(); -bool hstore(); -bool hdelete(); -HASH *hnew(); -int hiterinit(); -HENT *hiternext(); -char *hiterkey(); -STR *hiterval(); +bool hdelete (HASH *tb, char *key); +STR * hfetch ( HASH *tb, char *key ); +int hiterinit ( HASH *tb ); +char * hiterkey ( HENT *entry ); +HENT * hiternext ( HASH *tb ); +STR * hiterval ( HENT *entry ); +HASH * hnew ( void ); +void hsplit ( HASH *tb ); +bool hstore ( HASH *tb, char *key, STR *val );