X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=x2p%2Fhash.h;h=0c202d0af34089c28e0f1e284e7ccd9766807b2d;hb=91e09a610c67b89c771cab2084dbd4490cd4351a;hp=a977ae5cfcc45aa303f7e3cbd9559417d7400feb;hpb=79072805bf63abe5b5978b5928ab00d360ea3e7f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/x2p/hash.h b/x2p/hash.h index a977ae5..0c202d0 100644 --- a/x2p/hash.h +++ b/x2p/hash.h @@ -1,19 +1,11 @@ /* $RCSfile: hash.h,v $$Revision: 4.1 $$Date: 92/08/07 18:29:21 $ * - * Copyright (c) 1991, Larry Wall + * 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 4.1 92/08/07 18:29:21 lwall - * - * Revision 4.0.1.1 91/06/07 12:16:04 lwall - * patch4: new copyright notice - * - * Revision 4.0 91/03/20 01:57:53 lwall - * 4.0 baseline. - * */ #define FILLPCT 60 /* don't make greater than 99 */ @@ -49,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 );