diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-07-14 21:02:05 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-07-14 21:02:05 +0300 |
commit | 5580c3248794803a8e45dd58b45933a32637954d (patch) | |
tree | 3067db40ccf49fab472d7fe3df31bae17d24df5b /doc | |
parent | 66eb071ce6202a33dbf53dfc46e52b25d683290c (diff) | |
download | gdbm-5580c3248794803a8e45dd58b45933a32637954d.tar.gz gdbm-5580c3248794803a8e45dd58b45933a32637954d.tar.bz2 |
Don't use hardcoded constant
* src/gdbmconst.h (GDBM_HASH_BITS): New constant.
* src/bucket.c: Use GDBM_HASH_BITS instead of the
hardcoded value.
* src/findkey.c (_gdbm_findkey): Use _gdbm_hash_key.
* src/gdbmtool.c (hash_handler): Use _gdbm_hash_key if the
database is open.
* src/hash.c (_gdbm_bucket_dir, _gdbm_hash_key): New functions.
* src/proto.h (_gdbm_bucket_dir, _gdbm_hash_key): New protos.
* src/systems.h (STATBLKSIZE): Take a struct stat as argument.
* src/gdbmopen.c (STATBLKSIZE): Takes argument now.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions