Skip to contentSkip to conversation

hlist: Add hlist_is_last_node() helper

PATCH George Spelvin 1 participant 1 message Jun 13, 2016

lore
Share & tools
lore
#0 lore raw

Shouldn't this function be called hlist_is_only_node()?

hlist_is_last_node would be simply !n->next, as "last" doesn't imply the lack of others.

I understand how the name might make sense in the context of removing entries from the list, but in other contexts, it's confusing.