summaryrefslogtreecommitdiff
path: root/lib/slists.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/slists.h')
-rw-r--r--lib/slists.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/slists.h b/lib/slists.h
index 27520c9f..2334e36a 100644
--- a/lib/slists.h
+++ b/lib/slists.h
@@ -84,5 +84,6 @@ void s_insert_node(snode *, snode *);
snode *s_get(siterator *);
void s_put(siterator *, snode *n);
static inline void s_init(siterator *i, slist *l) { s_put(i, SHEAD(*l)); }
+static inline int s_is_used(siterator *i) { return (i->prev != NULL); }
#endif