]> rtime.felk.cvut.cz Git - sojka/libev.git/commitdiff
*** empty log message ***
authorMarc Alexander Lehmann <libev@schmorp.de>
Sun, 24 Oct 2010 18:09:58 +0000 (18:09 +0000)
committerMarc Alexander Lehmann <libev@schmorp.de>
Sun, 24 Oct 2010 18:09:58 +0000 (18:09 +0000)
Symbols.ev
ev.h
ev_vars.h
ev_wrap.h

index 92d03b8d88da696c9e423abb69dae6c0b2124aa4..f401b300c9c713d53a6935abfc824b5d68a92744 100644 (file)
@@ -8,9 +8,7 @@ ev_check_stop
 ev_child_start
 ev_child_stop
 ev_clear_pending
-ev_default_destroy
-ev_default_fork
-ev_default_loop_init
+ev_default_loop
 ev_default_loop_ptr
 ev_depth
 ev_embed_start
diff --git a/ev.h b/ev.h
index adc038bced99cb1464231acc9fb6ef6b44b333c9..f0ffd4faa4fafb377f731bc5567c4f74bf115ab0 100644 (file)
--- a/ev.h
+++ b/ev.h
@@ -100,11 +100,11 @@ EV_CPP(extern "C" {)
 #endif
 
 #ifndef EV_FORK_ENABLE
-# define EV_FORK_ENABLE 0 /* not implemented */
+# define EV_FORK_ENABLE EV_FEATURE_WATCHERS
 #endif
 
 #ifndef EV_CLEANUP_ENABLE
-# define EV_CLEANUP_ENABLE EV_FEATURE_WATCHERS
+# define EV_CLEANUP_ENABLE 0 /* not implemented */
 #endif
 
 #ifndef EV_SIGNAL_ENABLE
@@ -427,7 +427,9 @@ typedef struct ev_embed
   ev_periodic periodic;  /* unused */
   ev_idle idle;          /* unused */
   ev_fork fork;          /* private */
+#if EV_CLEANUP_ENABLE
   ev_cleanup cleanup;    /* unused */
+#endif
 } ev_embed;
 #endif
 
index 3f8f8caefd833f709b1bab29d0af2670de5d9e1a..16d48ab6930d9c31dddcac5a85ce8c2287032626 100644 (file)
--- a/ev_vars.h
+++ b/ev_vars.h
@@ -156,6 +156,12 @@ VARx(int, forkmax)
 VARx(int, forkcnt)
 #endif
 
+#if EV_CLEANUP_ENABLE || EV_GENWRAP
+VARx(struct ev_cleanup **, cleanups)
+VARx(int, cleanupmax)
+VARx(int, cleanupcnt)
+#endif
+
 #if EV_ASYNC_ENABLE || EV_GENWRAP
 VARx(EV_ATOMIC_T, async_pending)
 VARx(struct ev_async **, asyncs)
index a67cca3942e912b8c33b07c6ec98b329cb538d04..9c19fe6245a5c9f35a5ca89ba033927c55c3f316 100644 (file)
--- a/ev_wrap.h
+++ b/ev_wrap.h
@@ -70,6 +70,9 @@
 #define forks ((loop)->forks)
 #define forkmax ((loop)->forkmax)
 #define forkcnt ((loop)->forkcnt)
+#define cleanups ((loop)->cleanups)
+#define cleanupmax ((loop)->cleanupmax)
+#define cleanupcnt ((loop)->cleanupcnt)
 #define async_pending ((loop)->async_pending)
 #define asyncs ((loop)->asyncs)
 #define asyncmax ((loop)->asyncmax)
 #undef forks
 #undef forkmax
 #undef forkcnt
+#undef cleanups
+#undef cleanupmax
+#undef cleanupcnt
 #undef async_pending
 #undef asyncs
 #undef asyncmax