From: Daniele Sciascia Date: Sat, 13 Jul 2013 19:22:53 +0000 (+0200) Subject: Document -1 extra return code in kh_put(). X-Git-Tag: spawn-final~23^2 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=70c0e397052d45e65fb970f15c10e9efcf3ac355;p=klib.git Document -1 extra return code in kh_put(). --- 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]