summaryrefslogtreecommitdiff
path: root/ev++.h
diff options
context:
space:
mode:
authorllucax <llucax>2008-01-18 18:13:21 +0000
committerllucax <llucax>2008-01-18 18:13:21 +0000
commit9e5e5be057ed4c6db83225f0aea72e708de89b68 (patch)
tree69996a450676208260f126677bf28d6c622b7849 /ev++.h
parentf279f2b7372a6523b4055dea41bc75e0a3d7b253 (diff)
Move typedef and constant to the top.
Diffstat (limited to 'ev++.h')
-rw-r--r--ev++.h39
1 files changed, 20 insertions, 19 deletions
diff --git a/ev++.h b/ev++.h
index e921852..af51609 100644
--- a/ev++.h
+++ b/ev++.h
@@ -48,6 +48,26 @@
namespace ev {
+ typedef ev_tstamp tstamp;
+
+ enum {
+ UNDEF = EV_UNDEF,
+ NONE = EV_NONE,
+ READ = EV_READ,
+ WRITE = EV_WRITE,
+ TIMEOUT = EV_TIMEOUT,
+ PERIODIC = EV_PERIODIC,
+ SIGNAL = EV_SIGNAL,
+ CHILD = EV_CHILD,
+ STAT = EV_STAT,
+ IDLE = EV_IDLE,
+ CHECK = EV_CHECK,
+ PREPARE = EV_PREPARE,
+ FORK = EV_FORK,
+ EMBED = EV_EMBED,
+ ERROR = EV_ERROR,
+ };
+
template<class ev_watcher, class watcher>
struct base : ev_watcher
{
@@ -143,25 +163,6 @@ namespace ev {
}
};
- enum {
- UNDEF = EV_UNDEF,
- NONE = EV_NONE,
- READ = EV_READ,
- WRITE = EV_WRITE,
- TIMEOUT = EV_TIMEOUT,
- PERIODIC = EV_PERIODIC,
- SIGNAL = EV_SIGNAL,
- CHILD = EV_CHILD,
- STAT = EV_STAT,
- IDLE = EV_IDLE,
- CHECK = EV_CHECK,
- PREPARE = EV_PREPARE,
- FORK = EV_FORK,
- EMBED = EV_EMBED,
- ERROR = EV_ERROR,
- };
-
- typedef ev_tstamp tstamp;
inline ev_tstamp now (EV_P)
{