Browse Source

Remove the previously deprecated lh_table_lookup() function, in favor of lh_table_lookup_ex().

tags/json-c-0.14-20200419
Eric Haszlakiewicz 8 years ago
parent
commit
a19031411d
3 changed files with 1 additions and 17 deletions
  1. +1
    -0
      ChangeLog
  2. +0
    -7
      linkhash.c
  3. +0
    -10
      linkhash.h

+ 1
- 0
ChangeLog View File

@@ -6,6 +6,7 @@ Deprecated and removed features:
-------------------------------- --------------------------------
* bits.h has been removed * bits.h has been removed
* lh_abort() has been removed * lh_abort() has been removed
* lh_table_lookup() has been removed, use lh_table_lookup_ex() instead.




0.13 (up to commit 5dae561, 2017/11/29) 0.13 (up to commit 5dae561, 2017/11/29)


+ 0
- 7
linkhash.c View File

@@ -621,13 +621,6 @@ struct lh_entry* lh_table_lookup_entry(struct lh_table *t, const void *k)
return lh_table_lookup_entry_w_hash(t, k, lh_get_hash(t, k)); return lh_table_lookup_entry_w_hash(t, k, lh_get_hash(t, k));
} }


const void* lh_table_lookup(struct lh_table *t, const void *k)
{
void *result;
lh_table_lookup_ex(t, k, &result);
return result;
}

json_bool lh_table_lookup_ex(struct lh_table* t, const void* k, void **v) json_bool lh_table_lookup_ex(struct lh_table* t, const void* k, void **v)
{ {
struct lh_entry *e = lh_table_lookup_entry(t, k); struct lh_entry *e = lh_table_lookup_entry(t, k);


+ 0
- 10
linkhash.h View File

@@ -271,16 +271,6 @@ extern struct lh_entry* lh_table_lookup_entry(struct lh_table *t, const void *k)
*/ */
extern struct lh_entry* lh_table_lookup_entry_w_hash(struct lh_table *t, const void *k, const unsigned long h); extern struct lh_entry* lh_table_lookup_entry_w_hash(struct lh_table *t, const void *k, const unsigned long h);


/**
* Lookup a record into the table.
*
* @param t the table to lookup
* @param k a pointer to the key to lookup
* @return a pointer to the found value or NULL if it does not exist.
* @deprecated Use lh_table_lookup_ex() instead.
*/
THIS_FUNCTION_IS_DEPRECATED(extern const void* lh_table_lookup(struct lh_table *t, const void *k));

/** /**
* Lookup a record in the table. * Lookup a record in the table.
* *


Loading…
Cancel
Save