From edde8eff9fc84e911da3525a7e566a59600dc298 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Thu, 7 Sep 2017 22:21:29 -0400 Subject: [PATCH] Issue#353: mark lh_abort as actually deprecated, not just in the docs. --- linkhash.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linkhash.h b/linkhash.h index 1493c80..06047e2 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 -- 2.40.0