Skip to content

Commit

Permalink
Issue#353: mark lh_abort as actually deprecated, not just in the docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawicz committed Sep 8, 2017
1 parent e1561ed commit edde8ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions linkhash.h
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit edde8ef

Please sign in to comment.