gen: New emp_quelen(), replacing open-coded counting loops
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
9b33a4c598
commit
4f83ce27b4
4 changed files with 18 additions and 24 deletions
|
@ -27,7 +27,7 @@
|
|||
* queue.h: Generic vax-like doubly linked list queues
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
* Markus Armbruster, 2014
|
||||
*/
|
||||
|
||||
#ifndef QUEUE_H
|
||||
|
@ -42,6 +42,7 @@ struct emp_qelem {
|
|||
|
||||
extern void emp_remque(struct emp_qelem *);
|
||||
extern void emp_initque(struct emp_qelem *);
|
||||
extern int emp_quelen(struct emp_qelem *);
|
||||
extern struct emp_qelem *emp_searchque(struct emp_qelem *, void *,
|
||||
int (*)(struct emp_qelem *, void *));
|
||||
extern void emp_insque(struct emp_qelem *, struct emp_qelem *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue