aboutsummaryrefslogtreecommitdiff
path: root/doc/gdbm.3
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2019-11-13 16:47:27 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2019-11-13 16:47:27 +0200
commit6534535f18c41304b6623c4afd42e20da941e061 (patch)
tree623d07f88a2f6900c24b97b81faca6f6825f9d80 /doc/gdbm.3
parent5144dd6833fa60ba443d4d36c6cee64d0a382240 (diff)
downloadgdbm-6534535f18c41304b6623c4afd42e20da941e061.tar.gz
gdbm-6534535f18c41304b6623c4afd42e20da941e061.tar.bz2
Move cache element allocation to bucket.c.
* src/bucket.c (_gdbm_cache_elem_new): Rename to cache_elem_new. Make static. (cache_lookup): Allocate new elem if _gdbm_cache_tree_lookup returned node_new. * src/cachetree.c (cache_tree): Remove dbf. (_gdbm_cache_tree_delete): Use node->adr. (cache_tree_lookup): Rename to _gdbm_cache_tree_lookup. Change signature. Return pointer to the (found or inserted) node. Don't allocate elem, this is responsibility of the caller. (_gdbm_cache_tree_alloc): Change signature. * src/gdbmdefs.h (cache_node): New definition (from cachetree.c) * src/proto.h: Fix protos.
Diffstat (limited to 'doc/gdbm.3')
0 files changed, 0 insertions, 0 deletions

Return to:

Send suggestions and report system problems to the System administrator.