summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-05-21 23:30:52 +0000
committerroot <root>2008-05-21 23:30:52 +0000
commit8ddd8acbba9f80fef5a7fd9b84c664fd8136f955 (patch)
treecc31137b6f80ffb9a8a1ee41ae1eba0530476f10
parent04eca7307d84fef57bc40c6efe8475dfb80fa01f (diff)
*** empty log message ***
-rw-r--r--Changes2
-rw-r--r--configure.ac2
-rw-r--r--ev.c18
3 files changed, 15 insertions, 7 deletions
diff --git a/Changes b/Changes
index 939db5c..604168b 100644
--- a/Changes
+++ b/Changes
@@ -18,6 +18,8 @@ Revision history for libev, a high-performance and full-featured event loop.
- add portability requirements section.
- fix manpage headers etc.
- normalise WSA error codes to lower range on windows.
+ - start some (internal only) consistency check code that
+ can be called frequently to catch bugs.
3.31 Wed Apr 16 20:45:04 CEST 2008
- added last minute fix for ev_poll.c by Brandon Black.
diff --git a/configure.ac b/configure.ac
index 4d2593a..4d5188c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
AC_INIT
AC_CONFIG_SRCDIR([ev_epoll.c])
-AM_INIT_AUTOMAKE(libev,3.4)
+AM_INIT_AUTOMAKE(libev,3.41)
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
diff --git a/ev.c b/ev.c
index 53828e2..b0ab266 100644
--- a/ev.c
+++ b/ev.c
@@ -237,6 +237,12 @@ extern "C" {
# endif
#endif
+#if 0 /* debugging */
+# define EV_VERIFY 1
+# define EV_USE_4HEAP 1
+# define EV_HEAP_CACHE_AT 1
+#endif
+
#ifndef EV_USE_4HEAP
# define EV_USE_4HEAP !EV_MINIMAL
#endif
@@ -290,12 +296,12 @@ int eventfd (unsigned int initval, int flags);
/**/
-/* undefined or zero: no verification done or available */
-/* 1 or higher: ev_loop_verify function available */
-/* 2 or higher: ev_loop_verify is called frequently */
-#define EV_VERIFY 1
-
-#if EV_VERIFY > 1
+/* EV_VERIFY: enable internal consistency checks
+ * undefined or zero: no verification done or available
+ * 1 or higher: ev_loop_verify function available
+ * 2 or higher: ev_loop_verify is called frequently
+ */
+#if EV_VERIFY >= 1
# define EV_FREQUENT_CHECK ev_loop_verify (EV_A)
#else
# define EV_FREQUENT_CHECK do { } while (0)