diff options
author | root <root> | 2010-10-28 04:55:19 +0000 |
---|---|---|
committer | root <root> | 2010-10-28 04:55:19 +0000 |
commit | 84d2ac4060205af81c55bf81ab802cd57ce08c19 (patch) | |
tree | 43282a63ff8241e245f31e2f6ad04e500ff07710 | |
parent | 93b21fb8113aed841153140e44034cb02c8e36b6 (diff) |
EV_UNDEF
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | ev++.h | 3 | ||||
-rw-r--r-- | ev.h | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,7 @@ Revision history for libev, a high-performance and full-featured event loop. + - change EV_UNDEF to 0xffffffff to silence some overzealous compilers. + 4.00 Mon Oct 25 12:32:12 CEST 2010 - "PORTING FROM LIBEV 3.X TO 4.X" (in ev.pod) is recommended reading. - ev_embed_stop did not correctly stop the watcher (very good @@ -58,8 +58,7 @@ namespace ev { typedef ev_tstamp tstamp; - enum - { + enum { UNDEF = EV_UNDEF, NONE = EV_NONE, READ = EV_READ, @@ -197,7 +197,7 @@ struct ev_loop; /* eventmask, revents, events... */ enum { - EV_UNDEF = -1, /* guaranteed to be invalid */ + EV_UNDEF = 0xFFFFFFFF, /* guaranteed to be invalid */ EV_NONE = 0x00, /* no events */ EV_READ = 0x01, /* ev_io detected read will not block */ EV_WRITE = 0x02, /* ev_io detected write will not block */ |