First, when I built on OSX, u_char was not defined in event.c. I fixed
this problem by #include <sys/types.h> before "ev.h" & "event.h".

> >  - There's no event_active compatibility function defined.  I looked
>
> Its there now (I updated the tarball), the libev equivalent is
> ev_feed_event. I don't really feel well about exposing it, though, without
> actually having a use case that isn't served better by simply calling the
> callback immediatelly.
Small problem with MULTIPLICITY-apparently forgot dLOOPev & some EV_A_ defs.

Given the patch below, I was able to build and run the regression
tests on OSX. In addition, all test from eventxx were working except
for bench.cpp, which uses a strange copy constructor, and priority
test.

CB

a194-109-141-136:~/libev cbrody$ cvs diff -u event.c
Index: event.c
===================================================================
RCS file: /schmorpforge/libev/event.c,v
retrieving revision 1.22
diff -u -r1.22 event.c
--- event.c     8 Nov 2007 21:20:51 -0000       1.22
+++ event.c     8 Nov 2007 23:45:54 -0000
@@ -37,6 +37,8 @@
 # include <sys/time.h>
 #endif

+#include <sys/types.h>
+
 #include "ev.h"
 #include "event.h"

@@ -250,14 +252,16 @@

 void event_active (struct event *ev, int res, short ncalls)
 {
+  dLOOPev;
+
   if (res & EV_TIMEOUT)
-    ev_feed_event (&ev->to, res & EV_TIMEOUT);
+    ev_feed_event (EV_A_ &ev->to, res & EV_TIMEOUT);

   if (res & EV_SIGNAL)
-    ev_feed_event (&ev->iosig.sig, res & EV_SIGNAL);
+    ev_feed_event (EV_A_ &ev->iosig.sig, res & EV_SIGNAL);

   if (res & (EV_READ | EV_WRITE))
-    ev_feed_event (&ev->iosig.io, res & (EV_READ | EV_WRITE));
+    ev_feed_event (EV_A_ &ev->iosig.io, res & (EV_READ | EV_WRITE));
 }

 int event_pending (struct event *ev, short events, struct timeval *tv)
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to