mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
ht.h: improve documentation for HT_NEXT_RMV.
This commit is contained in:
parent
da15448eb8
commit
cf22841e3b
@ -370,7 +370,8 @@ ht_string_hash(const char *s)
|
||||
/* Return the next element in 'head' after 'elm', under the arbitrary \
|
||||
* order used by HT_START. If there are no more elements, return \
|
||||
* NULL. If 'elm' is to be removed from the table, you must call \
|
||||
* this function for the next value before you remove it. \
|
||||
* this function for the next value before you remove it, or use \
|
||||
* HT_NEXT_RMV instead. \
|
||||
*/ \
|
||||
ATTR_UNUSED static inline struct type ** \
|
||||
name##_HT_NEXT(struct name *head, struct type **elm) \
|
||||
@ -392,6 +393,8 @@ ht_string_hash(const char *s)
|
||||
return NULL; \
|
||||
} \
|
||||
} \
|
||||
/* As HT_NEXT, but also remove the current element 'elm' from the \
|
||||
* table. */ \
|
||||
ATTR_UNUSED static inline struct type ** \
|
||||
name##_HT_NEXT_RMV(struct name *head, struct type **elm) \
|
||||
{ \
|
||||
@ -617,4 +620,3 @@ ht_string_hash(const char *s)
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user