From: Eric Haszlakiewicz Date: Fri, 8 Sep 2017 02:21:29 +0000 (-0400) Subject: Issue#353: mark lh_abort as actually deprecated, not just in the docs. X-Git-Tag: json-c-0.13-20171207~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=edde8eff9fc84e911da3525a7e566a59600dc298;p=thirdparty%2Fjson-c.git Issue#353: mark lh_abort as actually deprecated, not just in the docs. --- diff --git a/linkhash.h b/linkhash.h index 1493c808..06047e27 100644 --- a/linkhash.h +++ b/linkhash.h @@ -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