projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[idzebra-moved-to-github.git]
/
include
/
dict.h
diff --git
a/include/dict.h
b/include/dict.h
index
f5f9b7a
..
1b86e1f
100644
(file)
--- a/
include/dict.h
+++ b/
include/dict.h
@@
-4,7
+4,13
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dict.h,v $
* 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.
*
* 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_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);
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_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));
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));