]> git.llucax.com Git - software/libev.git/commitdiff
Move typedef and constant to the top.
authorllucax <llucax>
Fri, 18 Jan 2008 18:13:21 +0000 (18:13 +0000)
committerllucax <llucax>
Fri, 18 Jan 2008 18:13:21 +0000 (18:13 +0000)
ev++.h

diff --git a/ev++.h b/ev++.h
index e921852db2f07f6ab254af210e5a6abdada9bcd6..af51609d23e44dbe225c0d2a6a8eb12984c84f8d 100644 (file)
--- a/ev++.h
+++ b/ev++.h
 
 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)
   {