From 70c0e397052d45e65fb970f15c10e9efcf3ac355 Mon Sep 17 00:00:00 2001 From: Daniele Sciascia Date: Sat, 13 Jul 2013 21:22:53 +0200 Subject: [PATCH] Document -1 extra return code in kh_put(). --- khash.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/khash.h b/khash.h index 7513aa5..2d910de 100644 --- a/khash.h +++ b/khash.h @@ -455,7 +455,8 @@ static kh_inline khint_t __ac_Wang_hash(khint_t key) @param name Name of the hash table [symbol] @param h Pointer to the hash table [khash_t(name)*] @param k Key [type of keys] - @param r Extra return code: 0 if the key is present in the hash table; + @param r Extra return code: -1 if the operation failed; + 0 if the key is present in the hash table; 1 if the bucket is empty (never used); 2 if the element in the bucket has been deleted [int*] @return Iterator to the inserted element [khint_t] -- 2.47.3