Kouhei Sutou
null+****@clear*****
Tue Jan 12 12:50:15 JST 2016
Kouhei Sutou 2016-01-12 12:50:15 +0900 (Tue, 12 Jan 2016) New Revision: 2ded1c9bbf27595a32802d157ff36d035145b467 https://github.com/groonga/groonga/commit/2ded1c9bbf27595a32802d157ff36d035145b467 Message: Export grn_hash_size() Modified files: include/groonga/hash.h lib/grn_hash.h Modified: include/groonga/hash.h (+2 -0) =================================================================== --- include/groonga/hash.h 2016-01-12 12:47:59 +0900 (aa9cb92) +++ include/groonga/hash.h 2016-01-12 12:50:15 +0900 (abe9c95) @@ -49,6 +49,8 @@ GRN_API grn_rc grn_hash_delete(grn_ctx *ctx, grn_hash *hash, const void *key, unsigned int key_size, grn_table_delete_optarg *optarg); +GRN_API uint32_t grn_hash_size(grn_ctx *ctx, grn_hash *hash); + GRN_API grn_hash_cursor *grn_hash_cursor_open(grn_ctx *ctx, grn_hash *hash, const void *min, unsigned int min_size, const void *max, unsigned int max_size, Modified: lib/grn_hash.h (+0 -7) =================================================================== --- lib/grn_hash.h 2016-01-12 12:47:59 +0900 (62b725f) +++ lib/grn_hash.h 2016-01-12 12:50:15 +0900 (7c56509) @@ -330,13 +330,6 @@ grn_rc grn_hash_clear_lock(grn_ctx *ctx, grn_hash *hash); #define GRN_HASH_SIZE(hash) (*((hash)->n_entries)) -/* - * grn_hash_size() returns the number of entries in a hash. - * Note that grn_hash_size() detects `truncate` by another process and returns - * 0 in such a case. - */ -uint32_t grn_hash_size(grn_ctx *ctx, grn_hash *hash); - /* private */ typedef enum { grn_rec_document = 0, -------------- next part -------------- HTML����������������������������...Download