IDZEBRA
2.2.7
|
Go to the source code of this file.
Functions | |
static void | dict_del_subtree (Dict dict, Dict_ptr ptr, void *client, int(*f)(const char *, void *)) |
static int | dict_del_string (Dict dict, const Dict_char *str, Dict_ptr ptr, int sub_flag, void *client, int(*f)(const char *, void *)) |
int | dict_delete (Dict dict, const char *p) |
deletes item from dictionary More... | |
int | dict_delete_subtree (Dict dict, const char *p, void *client, int(*f)(const char *info, void *client)) |
delete items with a given prefix from dictionary More... | |
|
static |
Definition at line 87 of file delete.c.
References Dict_struct::dbf, dict, DICT_backptr, dict_bf_readp(), dict_bf_touch(), DICT_bsize, dict_del_subtree(), DICT_EOS, DICT_nodir, dict_strcmp(), dict_strlen(), dict_strncmp(), DICT_type, Dict_head::freelist, Dict_struct::head, and Dict_head::root.
Referenced by dict_delete(), and dict_delete_subtree().
|
static |
Definition at line 30 of file delete.c.
References Dict_struct::dbf, dict, DICT_backptr, dict_bf_readp(), dict_bf_touch(), DICT_bsize, DICT_nodir, dict_strlen(), Dict_head::freelist, and Dict_struct::head.
Referenced by dict_del_string().
int dict_delete | ( | Dict | dict, |
const char * | p | ||
) |
deletes item from dictionary
dict | dictionary handle |
p | string-z with lookup string |
0 | p not found |
1 | p found and deleted |
-1 | error |
Definition at line 260 of file delete.c.
References dict, dict_del_string(), Dict_struct::head, and Dict_head::root.
Referenced by dict_delete_ord(), dirs_del(), dirs_rmdir(), heap_inpb(), heap_inpc(), and main().
int dict_delete_subtree | ( | Dict | dict, |
const char * | p, | ||
void * | client, | ||
int(*)(const char *info, void *client) | f | ||
) |
delete items with a given prefix from dictionary
dict | dictionary handle |
p | string-z with prefix |
client | client data to be supplied to function f |
f | function which gets called for each item in tree |
0 | OK (0 or more entries deleted) |
1 | OK (1 or more entries delete) |
-1 | ERROR |
Function f is called for each item to be deleted.
Definition at line 266 of file delete.c.
References dict, dict_del_string(), Dict_struct::head, and Dict_head::root.
Referenced by delete_SU_handle(), dict_delete_subtree_ord(), and main().