shared/c-list: reimport

git subtree pull --prefix shared/c-list git@github.com:c-util/c-list.git master --squash
This commit is contained in:
Thomas Haller 2021-01-20 11:07:14 +01:00
commit 3096d31155
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -87,10 +87,12 @@ static inline _Bool c_list_is_linked(const CList *what) {
* c_list_is_empty() - check whether a list is empty
* @list: list to check, or NULL
*
* This is the same as !c_list_is_linked().
*
* Return: True if @list is empty, false if not.
*/
static inline _Bool c_list_is_empty(const CList *list) {
return !list || !c_list_is_linked(list);
return !c_list_is_linked(list);
}
/**