]> rtime.felk.cvut.cz Git - sojka/libev.git/commitdiff
*** empty log message ***
authorMarc Alexander Lehmann <libev@schmorp.de>
Tue, 8 May 2012 15:50:49 +0000 (15:50 +0000)
committerMarc Alexander Lehmann <libev@schmorp.de>
Tue, 8 May 2012 15:50:49 +0000 (15:50 +0000)
Symbols.event
ev.c

index c2d16ebb2b7dea0ff136c3797a5b1c8ee8664012..799d4246e4e07ade73f87e6efdd050d4fe70fd65 100644 (file)
@@ -2,13 +2,16 @@ event_active
 event_add
 event_base_dispatch
 event_base_free
+event_base_get_method
 event_base_loop
 event_base_loopexit
+event_base_new
 event_base_once
 event_base_priority_init
 event_base_set
 event_del
 event_dispatch
+event_get_callback
 event_get_method
 event_get_version
 event_init
diff --git a/ev.c b/ev.c
index 5590f23f97c51fdd0596d64eda798169fc2d9931..fcd77077565198eb81c8c855a5b7f178b14b533c 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -2565,7 +2565,7 @@ void ecb_cold
 ev_verify (EV_P) EV_THROW
 {
 #if EV_VERIFY
-  int i, j;
+  int i;
   WL w, w2;
 
   assert (activecnt >= -1);
@@ -2575,20 +2575,24 @@ ev_verify (EV_P) EV_THROW
     assert (("libev: negative fd in fdchanges", fdchanges [i] >= 0));
 
   assert (anfdmax >= 0);
-  for (i = j = 0; i < anfdmax; ++i)
-    for (w = w2 = anfds [i].head; w; w = w->next)
-      {
-        verify_watcher (EV_A_ (W)w);
+  for (i = 0; i < anfdmax; ++i)
+    {
+      int j = 0;
 
-        if (j++ & 1)
-          {
-            assert (("libev: io watcher list contains a loop", w != w2));
-            w2 = w2->next;
-          }
+      for (w = w2 = anfds [i].head; w; w = w->next)
+        {
+          verify_watcher (EV_A_ (W)w);
 
-        assert (("libev: inactive fd watcher on anfd list", ev_active (w) == 1));
-        assert (("libev: fd mismatch between watcher and anfd", ((ev_io *)w)->fd == i));
-      }
+          if (j++ & 1)
+            {
+              assert (("libev: io watcher list contains a loop", w != w2));
+              w2 = w2->next;
+            }
+
+          assert (("libev: inactive fd watcher on anfd list", ev_active (w) == 1));
+          assert (("libev: fd mismatch between watcher and anfd", ((ev_io *)w)->fd == i));
+        }
+    }
 
   assert (timermax >= timercnt);
   verify_heap (EV_A_ timers, timercnt);