Issue#353: mark lh_abort as actually deprecated, not just in the docs.

This commit is contained in:
Eric Haszlakiewicz
2017-09-07 22:21:29 -04:00
parent e1561ed1df
commit edde8eff9f

View File

@@ -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 * 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 * 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 * 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. * very considerate performance improvement.
* @param t the table to insert into. * @param t the table to insert into.
* @param k a pointer to the key to insert. * @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 * 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 * 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 * 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. * very considerate performance improvement.
* @param t the table to lookup * @param t the table to lookup
* @param k a pointer to the key 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 * However, because its interface is public, it will remain part of
* the API on the off chance of legacy software using it externally. * 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. * 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. * Calculate the hash of a key for a given table.
* This is an exension to support functions that need to calculate * 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 * 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. * very considerate performance improvement.
* @param t the table (used to obtain hash function) * @param t the table (used to obtain hash function)
* @param k a pointer to the key to lookup * @param k a pointer to the key to lookup