diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-02-23 09:26:42 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-02-23 09:26:42 +0100 |
commit | 6af97522e5d98cd4618838be94635cf3d4559cb3 (patch) | |
tree | b36ab7b083c20773b50db78b2761bc4d776ed557 /src/cairo-list-private.h | |
parent | 0b05d5812d0ceaeb5a9db5a50be0d3f7f16b277a (diff) |
Import upstream version 1.9.6
Diffstat (limited to 'src/cairo-list-private.h')
-rw-r--r-- | src/cairo-list-private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-list-private.h b/src/cairo-list-private.h index b8254bb..6d65bf1 100644 --- a/src/cairo-list-private.h +++ b/src/cairo-list-private.h @@ -186,4 +186,11 @@ cairo_list_is_empty (const cairo_list_t *head) return head->next == head; } +static inline cairo_bool_t +cairo_list_is_singular (const cairo_list_t *head) +{ + cairo_list_validate (head); + return head->next == head || head->next == head->prev; +} + #endif /* CAIRO_LIST_PRIVATE_H */ |