mirror of
https://github.com/json-c/json-c.git
synced 2026-04-04 12:59:07 +08:00
1.make it can been compiled with Visual Studio 2010
2.replace json_object_get/put API with json_object_retain/release, as they operate the reference counter, and confused with array_list_get/put_idx. 3.replace array_list_get/put_idx API with array_list_get/insert to make them more clear to use.
This commit is contained in:
@@ -332,10 +332,7 @@ int lh_table_resize(struct lh_table *t, int new_size);
|
||||
* @param k a pointer to the key to lookup
|
||||
* @return the key's hash
|
||||
*/
|
||||
static inline unsigned long lh_get_hash(const struct lh_table *t, const void *k)
|
||||
{
|
||||
return t->hash_fn(k);
|
||||
}
|
||||
unsigned long lh_get_hash(const struct lh_table *t, const void *k);
|
||||
|
||||
/* Don't use this outside of linkhash.h: */
|
||||
#ifdef __UNCONST
|
||||
|
||||
Reference in New Issue
Block a user