projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bab6d6b
)
util: Add a new macro for testing empty lists.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 23 Mar 2009 12:05:07 +0000
(12:05 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 23 Mar 2009 12:05:07 +0000
(12:05 +0000)
src/gallium/auxiliary/util/u_double_list.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_double_list.h
b/src/gallium/auxiliary/util/u_double_list.h
index d108d92e52b28fcd5096d5585aafba08a4dcb832..53bb1342ddcba9e1712e0d11f3f44ecd2c22d130 100644
(file)
--- a/
src/gallium/auxiliary/util/u_double_list.h
+++ b/
src/gallium/auxiliary/util/u_double_list.h
@@
-95,5
+95,8
@@
struct list_head
#define LIST_ENTRY(__type, __item, __field) \
((__type *)(((char *)(__item)) - offsetof(__type, __field)))
+#define LIST_IS_EMPTY(__list) \
+ ((__list)->next == (__list))
+
#endif /*_U_DOUBLE_LIST_H_*/