aboutsummaryrefslogtreecommitdiffstats
path: root/python/gevent/libev/callbacks.h
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-09-14 19:32:27 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-09-14 19:32:27 -0700
commit4212164e91ba2f49583cf44ad623a29b36db8f77 (patch)
tree47aefe3c0162f03e0c823b43873356f69c1cd636 /python/gevent/libev/callbacks.h
parent6ca20ff7010f2bafc7fefcb8cad982be27a8aeae (diff)
downloadyt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.tar.lz
yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.tar.xz
yt-local-4212164e91ba2f49583cf44ad623a29b36db8f77.zip
Windows: Use 32-bit distribution of python
Diffstat (limited to 'python/gevent/libev/callbacks.h')
-rw-r--r--python/gevent/libev/callbacks.h35
1 files changed, 15 insertions, 20 deletions
diff --git a/python/gevent/libev/callbacks.h b/python/gevent/libev/callbacks.h
index 669ea9e..ed87224 100644
--- a/python/gevent/libev/callbacks.h
+++ b/python/gevent/libev/callbacks.h
@@ -1,5 +1,9 @@
+struct ev_loop;
+struct PyGeventLoopObject;
+struct PyGeventCallbackObject;
+
#define DEFINE_CALLBACK(WATCHER_LC, WATCHER_TYPE) \
- static void gevent_callback_##WATCHER_LC(struct ev_loop *, void *, int);
+ void gevent_callback_##WATCHER_LC(struct ev_loop *, void *, int);
#define DEFINE_CALLBACKS0 \
@@ -11,33 +15,24 @@
DEFINE_CALLBACK(check, Check); \
DEFINE_CALLBACK(fork, Fork); \
DEFINE_CALLBACK(async, Async); \
- DEFINE_CALLBACK(stat, Stat);
+ DEFINE_CALLBACK(stat, Stat); \
+ DEFINE_CALLBACK(child, Child);
-#ifndef _WIN32
-
-#define DEFINE_CALLBACKS \
- DEFINE_CALLBACKS0 \
- DEFINE_CALLBACK(child, Child)
+#define DEFINE_CALLBACKS DEFINE_CALLBACKS0
-#else
-#define DEFINE_CALLBACKS DEFINE_CALLBACKS0
+DEFINE_CALLBACKS
-#endif
+void gevent_run_callbacks(struct ev_loop *, void *, int);
-DEFINE_CALLBACKS
-static void gevent_run_callbacks(struct ev_loop *, void *, int);
-struct PyGeventLoopObject;
-static void gevent_handle_error(struct PyGeventLoopObject* loop, PyObject* context);
-struct PyGeventCallbackObject;
-static void gevent_call(struct PyGeventLoopObject* loop, struct PyGeventCallbackObject* cb);
+void gevent_call(struct PyGeventLoopObject* loop, struct PyGeventCallbackObject* cb);
-#if defined(_WIN32)
-static void gevent_periodic_signal_check(struct ev_loop *, void *, int);
-#endif
+static void gevent_noop(struct ev_loop *_loop, void *watcher, int revents) {
+}
-static void gevent_noop(struct ev_loop *_loop, void *watcher, int revents) { }
+/* Only used on Win32 */
+void gevent_periodic_signal_check(struct ev_loop *, void *, int);