mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-27 11:40:43 +00:00
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:
1 parent
ebe3888d6f
commit
e6b99da0f5
7 files changed
+49
-675
No files matched your search
@@ -91,9 +91,6 @@ int uev_signal_set(uev_t *w, int signo)
|
||||
|
||||
/* Handle stopped signal watchers */
|
||||
if (w->fd < 0) {
|
||||
/* Remove from internal list */
|
||||
LIST_REMOVE(w, link);
|
||||
|
||||
if (uev_signal_init(w->ctx, w, (uev_cb_t *)w->cb, w->arg, signo))
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user