mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +00:00
Slist update
This commit is contained in:
parent
23d6702952
commit
02a9eeeb85
@ -61,6 +61,9 @@ s_get(siterator *i)
|
|||||||
f->next = g;
|
f->next = g;
|
||||||
if (g)
|
if (g)
|
||||||
g->prev = f;
|
g->prev = f;
|
||||||
|
|
||||||
|
i->prev = NULL;
|
||||||
|
i->next = NULL;
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,5 +84,6 @@ void s_insert_node(snode *, snode *);
|
|||||||
snode *s_get(siterator *);
|
snode *s_get(siterator *);
|
||||||
void s_put(siterator *, snode *n);
|
void s_put(siterator *, snode *n);
|
||||||
static inline void s_init(siterator *i, slist *l) { s_put(i, SHEAD(*l)); }
|
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
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user