|
|
@@ -220,7 +220,7 @@ extern int lh_table_insert(struct lh_table *t, const void *k, const void *v); |
|
|
|
* Insert a record into the table. This one accepts the key's hash in additon |
|
|
|
* to the key. This is an exension to support functions that need to calculate |
|
|
|
* the hash several times and allows them to do it just once and then pass |
|
|
|
* in the hash to all utility functions. Depending on use case, this can be a |
|
|
|
* in the hash to all utility functions. Depending on use case, this can be a |
|
|
|
* very considerate performance improvement. |
|
|
|
* @param t the table to insert into. |
|
|
|
* @param k a pointer to the key to insert. |
|
|
@@ -243,7 +243,7 @@ extern struct lh_entry* lh_table_lookup_entry(struct lh_table *t, const void *k) |
|
|
|
* Lookup a record into the table. This one accepts the key's hash in additon |
|
|
|
* to the key. This is an exension to support functions that need to calculate |
|
|
|
* the hash several times and allows them to do it just once and then pass |
|
|
|
* in the hash to all utility functions. Depending on use case, this can be a |
|
|
|
* in the hash to all utility functions. Depending on use case, this can be a |
|
|
|
* very considerate performance improvement. |
|
|
|
* @param t the table to lookup |
|
|
|
* @param k a pointer to the key to lookup |
|
|
@@ -308,7 +308,7 @@ extern int lh_table_length(struct lh_table *t); |
|
|
|
* However, because its interface is public, it will remain part of |
|
|
|
* the API on the off chance of legacy software using it externally. |
|
|
|
*/ |
|
|
|
void lh_abort(const char *msg, ...); |
|
|
|
THIS_FUNCTION_IS_DEPRECATED(void lh_abort(const char *msg, ...)); |
|
|
|
|
|
|
|
/** |
|
|
|
* Resizes the specified table. |
|
|
@@ -333,7 +333,7 @@ int lh_table_resize(struct lh_table *t, int new_size); |
|
|
|
* Calculate the hash of a key for a given table. |
|
|
|
* This is an exension to support functions that need to calculate |
|
|
|
* the hash several times and allows them to do it just once and then pass |
|
|
|
* in the hash to all utility functions. Depending on use case, this can be a |
|
|
|
* in the hash to all utility functions. Depending on use case, this can be a |
|
|
|
* very considerate performance improvement. |
|
|
|
* @param t the table (used to obtain hash function) |
|
|
|
* @param k a pointer to the key to lookup |
|
|
|