Refactor, replace BSD queue.h LIST_ macros with homegrown version

This patch replaces the BSD doubly linked list implementation with a
simplified homegrown version.  This not only reduces the dependency on
an external "library", but also greatly simplifies licensing and gives
us a clean name space that does not intrude on users who want to use
their own version of queue.h in their application that also includes
the libuEv header file.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2018-09-25 23:31:23 +02:00
parent ebe3888d6f
commit e6b99da0f5
7 changed files with 49 additions and 675 deletions
-3
View File
@@ -121,9 +121,6 @@ int uev_timer_set(uev_t *w, int timeout, int period)
if (!timeout && !period)
return 0;
/* Remove from internal list */
LIST_REMOVE(w, link);
if (uev_timer_init(w->ctx, w, (uev_cb_t *)w->cb, w->arg, timeout, period))
return -1;
}