projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d95533
)
statlist: statlist_last()
author
Marko Kreen
<markokr@gmail.com>
Wed, 26 Jan 2011 12:04:16 +0000
(14:04 +0200)
committer
Marko Kreen
<markokr@gmail.com>
Wed, 26 Jan 2011 12:04:16 +0000
(14:04 +0200)
usual/statlist.h
patch
|
blob
|
blame
|
history
diff --git
a/usual/statlist.h
b/usual/statlist.h
index 070cd7f9559ed2290b7209c1a98df97456239c29..ff41dbce336765e67c4a0c1adedd53dee3a0a369 100644
(file)
--- a/
usual/statlist.h
+++ b/
usual/statlist.h
@@
-110,6
+110,12
@@
static inline struct List *statlist_first(const struct StatList *list)
return list_first(&list->head);
}
+/** Return last element */
+static inline struct List *statlist_last(const struct StatList *list)
+{
+ return list_last(&list->head);
+}
+
/** Is list empty */
static inline bool statlist_empty(const struct StatList *list)
{