Commit 02a9eeeb authored by Ondřej Zajíček's avatar Ondřej Zajíček

Slist update

parent 23d67029
......@@ -61,6 +61,9 @@ s_get(siterator *i)
f->next = g;
if (g)
g->prev = f;
i->prev = NULL;
i->next = NULL;
return n;
}
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment