util: Add list_is_singular() helper function
authorEduardo Lima Mitev <elima@igalia.com>
Fri, 23 Oct 2015 14:31:41 +0000 (16:31 +0200)
committerEduardo Lima Mitev <elima@igalia.com>
Tue, 10 Nov 2015 20:13:35 +0000 (21:13 +0100)
commitfb3b5669cee85781b603f612228387e9a2e4120f
tree8492a7f852f6680384ef38d19cfbee78df7f71d0
parent94ff35204dba0ddbd7f5c4342206c8acba22d32f
util: Add list_is_singular() helper function

Returns whether the list has exactly one element.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/list.h