X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fdict.h;h=1b86e1f3e0767b551bee7c0e2a5de2895a9ab7e6;hb=85df66537199c30a492ad54be4fbe25fa77e18c8;hp=f5f9b7a57437d87d8f3023a4f7a548ae76d58cd4;hpb=9a3fbd4b27ac261b0d68f73d8f9b3a762b2c33e9;p=idzebra-moved-to-github.git diff --git a/include/dict.h b/include/dict.h index f5f9b7a..1b86e1f 100644 --- a/include/dict.h +++ b/include/dict.h @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: dict.h,v $ - * Revision 1.15 1995-10-27 13:59:17 adam + * Revision 1.17 1995-12-07 11:47:04 adam + * Default pagesize is 4k instead of 8k. + * + * Revision 1.16 1995/12/06 14:41:13 adam + * New function: dict_delete. + * + * Revision 1.15 1995/10/27 13:59:17 adam * Function dict_look_grep got extra parameter max_pos that upon return * hold length of longest prefix that matches pattern. * @@ -105,7 +111,7 @@ typedef struct Dict_struct { #define DICT_MAGIC "dict00" -#define DICT_DEFAULT_PAGESIZE "8192" +#define DICT_DEFAULT_PAGESIZE "4096" int dict_bf_readp (Dict_BFile bf, int no, void **bufp); int dict_bf_newp (Dict_BFile bf, int no, void **bufp); @@ -118,6 +124,7 @@ Dict dict_open (const char *name, int cache, int rw); int dict_close (Dict dict); int dict_insert (Dict dict, const Dict_char *p, int userlen, void *userinfo); +int dict_delete (Dict dict, const Dict_char *p); char *dict_lookup (Dict dict, const Dict_char *p); int dict_lookup_ec (Dict dict, Dict_char *p, int range, int (*f)(Dict_char *name));