]> rtime.felk.cvut.cz Git - sojka/libev.git/commitdiff
*** empty log message ***
authorMarc Alexander Lehmann <libev@schmorp.de>
Tue, 20 Oct 2009 00:50:31 +0000 (00:50 +0000)
committerMarc Alexander Lehmann <libev@schmorp.de>
Tue, 20 Oct 2009 00:50:31 +0000 (00:50 +0000)
Changes
ev.h

diff --git a/Changes b/Changes
index 303a3818363b74b4ab2bd8638daf546d9e051527..807e32c5f3388bf7e45309d7501a9d4d4264cf25 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,6 @@
 Revision history for libev, a high-performance and full-featured event loop.
 
+TODO: somehow unblock procmask?
        - backport inotify code to C89.
         - inotify file descriptors could leak into child processes.
         - implement EV_WIN32_HANDLE_TO_FD and EV_WIN32_CLOSE_FD configuration
diff --git a/ev.h b/ev.h
index 372e8953d65caa85148623149466174bffb5a3c7..e6af59a7b7b49729256a2415413f54a6e9031106 100644 (file)
--- a/ev.h
+++ b/ev.h
@@ -365,7 +365,7 @@ typedef struct ev_async
   EV_ATOMIC_T sent; /* private */
 } ev_async;
 
-# define ev_async_pending(w) ((w)->sent + 0)
+# define ev_async_pending(w) (+(w)->sent)
 #endif
 
 /* the presence of this union forces similar struct layout */
@@ -613,11 +613,11 @@ void ev_resume  (EV_P);
 # define ev_priority(ev)                     ((ev), EV_MINPRI)
 # define ev_set_priority(ev,pri)             ((ev), (pri))
 #else
-# define ev_priority(ev)                     ((((ev_watcher *)(void *)(ev))->priority) + 0)
+# define ev_priority(ev)                     (+(((ev_watcher *)(void *)(ev))->priority))
 # define ev_set_priority(ev,pri)             (  (ev_watcher *)(void *)(ev))->priority = (pri)
 #endif
 
-#define ev_periodic_at(ev)                   (((ev_watcher_time *)(ev))->at + 0.)
+#define ev_periodic_at(ev)                   (+((ev_watcher_time *)(ev))->at)
 
 #ifndef ev_set_cb
 # define ev_set_cb(ev,cb_)                   ev_cb (ev) = (cb_)