Commit 707dcb03 authored by Denis Bilenko's avatar Denis Bilenko

regenerate core.c

parent 0e26d73a
/* Generated by Cython 0.11.2 on Sat Aug 1 16:26:56 2009 */
/* Generated by Cython 0.11.2 on Sun Aug 16 00:25:22 2009 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
......@@ -376,27 +376,27 @@ struct __pyx_obj_6gevent_4core_event {
PyObject *_arg;
};
/* "/home/denis/work/gevent/gevent/core.pyx":275
/* "/home/denis/work/gevent/gevent/core.pyx":316
*
*
* cdef class write(event): # <<<<<<<<<<<<<<
* cdef class active_event(event): # <<<<<<<<<<<<<<
* """An event that is scheduled to run in the current loop iteration"""
*
* def __init__(self, int handle, callback, timeout=-1, arg=None):
*/
struct __pyx_obj_6gevent_4core_write {
struct __pyx_obj_6gevent_4core_active_event {
struct __pyx_obj_6gevent_4core_event __pyx_base;
};
/* "/home/denis/work/gevent/gevent/core.pyx":268
*
*
* cdef class read(event): # <<<<<<<<<<<<<<
* cdef class read_event(event): # <<<<<<<<<<<<<<
*
* def __init__(self, int handle, callback, timeout=-1, arg=None):
*/
struct __pyx_obj_6gevent_4core_read {
struct __pyx_obj_6gevent_4core_read_event {
struct __pyx_obj_6gevent_4core_event __pyx_base;
};
......@@ -424,22 +424,22 @@ struct __pyx_obj_6gevent_4core_timer {
struct __pyx_obj_6gevent_4core_event __pyx_base;
};
/* "/home/denis/work/gevent/gevent/core.pyx":316
/* "/home/denis/work/gevent/gevent/core.pyx":275
*
*
* cdef class active_event(event): # <<<<<<<<<<<<<<
* """An event that is scheduled to run in _this_ loop iteration"""
* cdef class write_event(event): # <<<<<<<<<<<<<<
*
* def __init__(self, int handle, callback, timeout=-1, arg=None):
*/
struct __pyx_obj_6gevent_4core_active_event {
struct __pyx_obj_6gevent_4core_write_event {
struct __pyx_obj_6gevent_4core_event __pyx_base;
};
/* Module declarations from gevent.core */
static PyTypeObject *__pyx_ptype_6gevent_4core_event = 0;
static PyTypeObject *__pyx_ptype_6gevent_4core_read = 0;
static PyTypeObject *__pyx_ptype_6gevent_4core_write = 0;
static PyTypeObject *__pyx_ptype_6gevent_4core_read_event = 0;
static PyTypeObject *__pyx_ptype_6gevent_4core_write_event = 0;
static PyTypeObject *__pyx_ptype_6gevent_4core_timer = 0;
static PyTypeObject *__pyx_ptype_6gevent_4core_signal = 0;
static PyTypeObject *__pyx_ptype_6gevent_4core_active_event = 0;
......@@ -2707,15 +2707,15 @@ static PyObject *__pyx_pf_6gevent_4core_5event___exit__(PyObject *__pyx_v_self,
}
/* "/home/denis/work/gevent/gevent/core.pyx":270
* cdef class read(event):
* cdef class read_event(event):
*
* def __init__(self, int handle, callback, timeout=-1, arg=None): # <<<<<<<<<<<<<<
* event.__init__(self, EV_READ, handle, callback, arg)
* self.add(timeout)
*/
static int __pyx_pf_6gevent_4core_4read___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_6gevent_4core_4read___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
static int __pyx_pf_6gevent_4core_10read_event___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_6gevent_4core_10read_event___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
int __pyx_v_handle;
PyObject *__pyx_v_callback = 0;
PyObject *__pyx_v_timeout = 0;
......@@ -2788,7 +2788,7 @@ static int __pyx_pf_6gevent_4core_4read___init__(PyObject *__pyx_v_self, PyObjec
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("gevent.core.read.__init__");
__Pyx_AddTraceback("gevent.core.read_event.__init__");
return -1;
__pyx_L4_argument_unpacking_done:;
......@@ -2855,7 +2855,7 @@ static int __pyx_pf_6gevent_4core_4read___init__(PyObject *__pyx_v_self, PyObjec
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_AddTraceback("gevent.core.read.__init__");
__Pyx_AddTraceback("gevent.core.read_event.__init__");
__pyx_r = -1;
__pyx_L0:;
__Pyx_FinishRefcountContext();
......@@ -2863,15 +2863,15 @@ static int __pyx_pf_6gevent_4core_4read___init__(PyObject *__pyx_v_self, PyObjec
}
/* "/home/denis/work/gevent/gevent/core.pyx":277
* cdef class write(event):
* cdef class write_event(event):
*
* def __init__(self, int handle, callback, timeout=-1, arg=None): # <<<<<<<<<<<<<<
* event.__init__(self, EV_WRITE, handle, callback, arg)
* self.add(timeout)
*/
static int __pyx_pf_6gevent_4core_5write___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_6gevent_4core_5write___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
static int __pyx_pf_6gevent_4core_11write_event___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_6gevent_4core_11write_event___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
int __pyx_v_handle;
PyObject *__pyx_v_callback = 0;
PyObject *__pyx_v_timeout = 0;
......@@ -2944,7 +2944,7 @@ static int __pyx_pf_6gevent_4core_5write___init__(PyObject *__pyx_v_self, PyObje
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("gevent.core.write.__init__");
__Pyx_AddTraceback("gevent.core.write_event.__init__");
return -1;
__pyx_L4_argument_unpacking_done:;
......@@ -3011,7 +3011,7 @@ static int __pyx_pf_6gevent_4core_5write___init__(PyObject *__pyx_v_self, PyObje
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_AddTraceback("gevent.core.write.__init__");
__Pyx_AddTraceback("gevent.core.write_event.__init__");
__pyx_r = -1;
__pyx_L0:;
__Pyx_FinishRefcountContext();
......@@ -3689,7 +3689,7 @@ static int __pyx_pf_6gevent_4core_6signal___init__(PyObject *__pyx_v_self, PyObj
}
/* "/home/denis/work/gevent/gevent/core.pyx":319
* """An event that is scheduled to run in _this_ loop iteration"""
* """An event that is scheduled to run in the current loop iteration"""
*
* def __init__(self, callback, *args, **kwargs): # <<<<<<<<<<<<<<
* self._callback = callback
......@@ -3923,7 +3923,7 @@ static PyObject *__pyx_pf_6gevent_4core_init(PyObject *__pyx_self, PyObject *unu
* """Initialize event queue."""
* event_init() # <<<<<<<<<<<<<<
*
* def dispatch():
*
*/
event_init();
......@@ -3933,8 +3933,8 @@ static PyObject *__pyx_pf_6gevent_4core_init(PyObject *__pyx_self, PyObject *unu
return __pyx_r;
}
/* "/home/denis/work/gevent/gevent/core.pyx":334
* event_init()
/* "/home/denis/work/gevent/gevent/core.pyx":335
*
*
* def dispatch(): # <<<<<<<<<<<<<<
* """Dispatch all events on the event queue.
......@@ -3953,7 +3953,7 @@ static PyObject *__pyx_pf_6gevent_4core_dispatch(PyObject *__pyx_self, PyObject
__Pyx_SetupRefcountContext("dispatch");
__pyx_self = __pyx_self;
/* "/home/denis/work/gevent/gevent/core.pyx":340
/* "/home/denis/work/gevent/gevent/core.pyx":341
* """
* cdef int ret
* with nogil: # <<<<<<<<<<<<<<
......@@ -3964,7 +3964,7 @@ static PyObject *__pyx_pf_6gevent_4core_dispatch(PyObject *__pyx_self, PyObject
Py_UNBLOCK_THREADS
/*try:*/ {
/* "/home/denis/work/gevent/gevent/core.pyx":341
/* "/home/denis/work/gevent/gevent/core.pyx":342
* cdef int ret
* with nogil:
* ret = event_dispatch() # <<<<<<<<<<<<<<
......@@ -3978,7 +3978,7 @@ static PyObject *__pyx_pf_6gevent_4core_dispatch(PyObject *__pyx_self, PyObject
}
}
/* "/home/denis/work/gevent/gevent/core.pyx":342
/* "/home/denis/work/gevent/gevent/core.pyx":343
* with nogil:
* ret = event_dispatch()
* if ret < 0: # <<<<<<<<<<<<<<
......@@ -3988,18 +3988,18 @@ static PyObject *__pyx_pf_6gevent_4core_dispatch(PyObject *__pyx_self, PyObject
__pyx_t_1 = (__pyx_v_ret < 0);
if (__pyx_t_1) {
/* "/home/denis/work/gevent/gevent/core.pyx":343
/* "/home/denis/work/gevent/gevent/core.pyx":344
* ret = event_dispatch()
* if ret < 0:
* raise IOError(errno, strerror(errno)) # <<<<<<<<<<<<<<
* return ret
*
*/
__pyx_t_2 = PyInt_FromLong(errno); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = PyInt_FromLong(errno); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyBytes_FromString(strerror(errno)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = __Pyx_PyBytes_FromString(strerror(errno)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_2);
......@@ -4007,25 +4007,25 @@ static PyObject *__pyx_pf_6gevent_4core_dispatch(PyObject *__pyx_self, PyObject
__Pyx_GIVEREF(__pyx_t_3);
__pyx_t_2 = 0;
__pyx_t_3 = 0;
__pyx_t_3 = PyObject_Call(__pyx_builtin_IOError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = PyObject_Call(__pyx_builtin_IOError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
__Pyx_Raise(__pyx_t_3, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
goto __pyx_L8;
}
__pyx_L8:;
/* "/home/denis/work/gevent/gevent/core.pyx":344
/* "/home/denis/work/gevent/gevent/core.pyx":345
* if ret < 0:
* raise IOError(errno, strerror(errno))
* return ret # <<<<<<<<<<<<<<
*
* def loop(nonblock=False):
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_3 = PyInt_FromLong(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = PyInt_FromLong(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
......@@ -4045,8 +4045,8 @@ static PyObject *__pyx_pf_6gevent_4core_dispatch(PyObject *__pyx_self, PyObject
return __pyx_r;
}
/* "/home/denis/work/gevent/gevent/core.pyx":346
* return ret
/* "/home/denis/work/gevent/gevent/core.pyx":348
*
*
* def loop(nonblock=False): # <<<<<<<<<<<<<<
* """Dispatch all pending events on queue in a single pass.
......@@ -4084,7 +4084,7 @@ static PyObject *__pyx_pf_6gevent_4core_loop(PyObject *__pyx_self, PyObject *__p
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "loop") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "loop") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
}
__pyx_v_nonblock = values[0];
} else {
......@@ -4097,13 +4097,13 @@ static PyObject *__pyx_pf_6gevent_4core_loop(PyObject *__pyx_self, PyObject *__p
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("loop", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__Pyx_RaiseArgtupleInvalid("loop", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
__pyx_L3_error:;
__Pyx_AddTraceback("gevent.core.loop");
return NULL;
__pyx_L4_argument_unpacking_done:;
/* "/home/denis/work/gevent/gevent/core.pyx":352
/* "/home/denis/work/gevent/gevent/core.pyx":354
* """
* cdef int flags, ret
* flags = EVLOOP_ONCE # <<<<<<<<<<<<<<
......@@ -4112,17 +4112,17 @@ static PyObject *__pyx_pf_6gevent_4core_loop(PyObject *__pyx_self, PyObject *__p
*/
__pyx_v_flags = EVLOOP_ONCE;
/* "/home/denis/work/gevent/gevent/core.pyx":353
/* "/home/denis/work/gevent/gevent/core.pyx":355
* cdef int flags, ret
* flags = EVLOOP_ONCE
* if nonblock: # <<<<<<<<<<<<<<
* flags = EVLOOP_ONCE|EVLOOP_NONBLOCK
* with nogil:
*/
__pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_nonblock); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_nonblock); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__pyx_t_1) {
/* "/home/denis/work/gevent/gevent/core.pyx":354
/* "/home/denis/work/gevent/gevent/core.pyx":356
* flags = EVLOOP_ONCE
* if nonblock:
* flags = EVLOOP_ONCE|EVLOOP_NONBLOCK # <<<<<<<<<<<<<<
......@@ -4134,7 +4134,7 @@ static PyObject *__pyx_pf_6gevent_4core_loop(PyObject *__pyx_self, PyObject *__p
}
__pyx_L6:;
/* "/home/denis/work/gevent/gevent/core.pyx":355
/* "/home/denis/work/gevent/gevent/core.pyx":357
* if nonblock:
* flags = EVLOOP_ONCE|EVLOOP_NONBLOCK
* with nogil: # <<<<<<<<<<<<<<
......@@ -4145,7 +4145,7 @@ static PyObject *__pyx_pf_6gevent_4core_loop(PyObject *__pyx_self, PyObject *__p
Py_UNBLOCK_THREADS
/*try:*/ {
/* "/home/denis/work/gevent/gevent/core.pyx":356
/* "/home/denis/work/gevent/gevent/core.pyx":358
* flags = EVLOOP_ONCE|EVLOOP_NONBLOCK
* with nogil:
* ret = event_loop(flags) # <<<<<<<<<<<<<<
......@@ -4159,7 +4159,7 @@ static PyObject *__pyx_pf_6gevent_4core_loop(PyObject *__pyx_self, PyObject *__p
}
}
/* "/home/denis/work/gevent/gevent/core.pyx":357
/* "/home/denis/work/gevent/gevent/core.pyx":359
* with nogil:
* ret = event_loop(flags)
* if ret < 0: # <<<<<<<<<<<<<<
......@@ -4169,18 +4169,18 @@ static PyObject *__pyx_pf_6gevent_4core_loop(PyObject *__pyx_self, PyObject *__p
__pyx_t_1 = (__pyx_v_ret < 0);
if (__pyx_t_1) {
/* "/home/denis/work/gevent/gevent/core.pyx":358
/* "/home/denis/work/gevent/gevent/core.pyx":360
* ret = event_loop(flags)
* if ret < 0:
* raise IOError(errno, strerror(errno)) # <<<<<<<<<<<<<<
* return ret
*
*/
__pyx_t_2 = PyInt_FromLong(errno); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = PyInt_FromLong(errno); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyBytes_FromString(strerror(errno)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = __Pyx_PyBytes_FromString(strerror(errno)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_2);
......@@ -4188,17 +4188,17 @@ static PyObject *__pyx_pf_6gevent_4core_loop(PyObject *__pyx_self, PyObject *__p
__Pyx_GIVEREF(__pyx_t_3);
__pyx_t_2 = 0;
__pyx_t_3 = 0;
__pyx_t_3 = PyObject_Call(__pyx_builtin_IOError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = PyObject_Call(__pyx_builtin_IOError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
__Pyx_Raise(__pyx_t_3, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
goto __pyx_L10;
}
__pyx_L10:;
/* "/home/denis/work/gevent/gevent/core.pyx":359
/* "/home/denis/work/gevent/gevent/core.pyx":361
* if ret < 0:
* raise IOError(errno, strerror(errno))
* return ret # <<<<<<<<<<<<<<
......@@ -4206,7 +4206,7 @@ static PyObject *__pyx_pf_6gevent_4core_loop(PyObject *__pyx_self, PyObject *__p
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_3 = PyInt_FromLong(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = PyInt_FromLong(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 361; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
......@@ -4226,7 +4226,7 @@ static PyObject *__pyx_pf_6gevent_4core_loop(PyObject *__pyx_self, PyObject *__p
return __pyx_r;
}
/* "/home/denis/work/gevent/gevent/core.pyx":362
/* "/home/denis/work/gevent/gevent/core.pyx":364
*
*
* def get_version(): # <<<<<<<<<<<<<<
......@@ -4241,15 +4241,15 @@ static PyObject *__pyx_pf_6gevent_4core_get_version(PyObject *__pyx_self, PyObje
__Pyx_SetupRefcountContext("get_version");
__pyx_self = __pyx_self;
/* "/home/denis/work/gevent/gevent/core.pyx":363
/* "/home/denis/work/gevent/gevent/core.pyx":365
*
* def get_version():
* return event_get_version() # <<<<<<<<<<<<<<
*
* def get_method():
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = __Pyx_PyBytes_FromString(event_get_version()); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_1 = __Pyx_PyBytes_FromString(event_get_version()); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
......@@ -4267,8 +4267,8 @@ static PyObject *__pyx_pf_6gevent_4core_get_version(PyObject *__pyx_self, PyObje
return __pyx_r;
}
/* "/home/denis/work/gevent/gevent/core.pyx":365
* return event_get_version()
/* "/home/denis/work/gevent/gevent/core.pyx":368
*
*
* def get_method(): # <<<<<<<<<<<<<<
* return event_get_method()
......@@ -4282,7 +4282,7 @@ static PyObject *__pyx_pf_6gevent_4core_get_method(PyObject *__pyx_self, PyObjec
__Pyx_SetupRefcountContext("get_method");
__pyx_self = __pyx_self;
/* "/home/denis/work/gevent/gevent/core.pyx":366
/* "/home/denis/work/gevent/gevent/core.pyx":369
*
* def get_method():
* return event_get_method() # <<<<<<<<<<<<<<
......@@ -4290,7 +4290,7 @@ static PyObject *__pyx_pf_6gevent_4core_get_method(PyObject *__pyx_self, PyObjec
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = __Pyx_PyBytes_FromString(event_get_method()); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_1 = __Pyx_PyBytes_FromString(event_get_method()); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
......@@ -4308,7 +4308,7 @@ static PyObject *__pyx_pf_6gevent_4core_get_method(PyObject *__pyx_self, PyObjec
return __pyx_r;
}
/* "/home/denis/work/gevent/gevent/core.pyx":376
/* "/home/denis/work/gevent/gevent/core.pyx":379
* # _EVENT_VERSION is available since libevent 1.4.0-beta
*
* def get_header_version(): # <<<<<<<<<<<<<<
......@@ -4323,7 +4323,7 @@ static PyObject *__pyx_pf_6gevent_4core_get_header_version(PyObject *__pyx_self,
__Pyx_SetupRefcountContext("get_header_version");
__pyx_self = __pyx_self;
/* "/home/denis/work/gevent/gevent/core.pyx":377
/* "/home/denis/work/gevent/gevent/core.pyx":380
*
* def get_header_version():
* emit_ifdef() # <<<<<<<<<<<<<<
......@@ -4332,7 +4332,7 @@ static PyObject *__pyx_pf_6gevent_4core_get_header_version(PyObject *__pyx_self,
*/
#if defined(_EVENT_VERSION) //();
/* "/home/denis/work/gevent/gevent/core.pyx":378
/* "/home/denis/work/gevent/gevent/core.pyx":381
* def get_header_version():
* emit_ifdef()
* return _EVENT_VERSION # <<<<<<<<<<<<<<
......@@ -4340,13 +4340,13 @@ static PyObject *__pyx_pf_6gevent_4core_get_header_version(PyObject *__pyx_self,
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = __Pyx_PyBytes_FromString(_EVENT_VERSION); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_1 = __Pyx_PyBytes_FromString(_EVENT_VERSION); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "/home/denis/work/gevent/gevent/core.pyx":379
/* "/home/denis/work/gevent/gevent/core.pyx":382
* emit_ifdef()
* return _EVENT_VERSION
* emit_endif() # <<<<<<<<<<<<<<
......@@ -4367,7 +4367,7 @@ static PyObject *__pyx_pf_6gevent_4core_get_header_version(PyObject *__pyx_self,
return __pyx_r;
}
/* "/home/denis/work/gevent/gevent/core.pyx":386
/* "/home/denis/work/gevent/gevent/core.pyx":389
* # which will work in every version other than 1.4.0-beta
*
* def reinit(): # <<<<<<<<<<<<<<
......@@ -4382,7 +4382,7 @@ static PyObject *__pyx_pf_6gevent_4core_reinit(PyObject *__pyx_self, PyObject *u
__Pyx_SetupRefcountContext("reinit");
__pyx_self = __pyx_self;
/* "/home/denis/work/gevent/gevent/core.pyx":387
/* "/home/denis/work/gevent/gevent/core.pyx":390
*
* def reinit():
* emit_ifdef() # <<<<<<<<<<<<<<
......@@ -4391,7 +4391,7 @@ static PyObject *__pyx_pf_6gevent_4core_reinit(PyObject *__pyx_self, PyObject *u
*/
#if defined(_EVENT_VERSION) //();
/* "/home/denis/work/gevent/gevent/core.pyx":388
/* "/home/denis/work/gevent/gevent/core.pyx":391
* def reinit():
* emit_ifdef()
* return event_reinit(current_base) # <<<<<<<<<<<<<<
......@@ -4399,13 +4399,13 @@ static PyObject *__pyx_pf_6gevent_4core_reinit(PyObject *__pyx_self, PyObject *u
*
*/
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyInt_FromLong(event_reinit(current_base)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_1 = PyInt_FromLong(event_reinit(current_base)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "/home/denis/work/gevent/gevent/core.pyx":389
/* "/home/denis/work/gevent/gevent/core.pyx":392
* emit_ifdef()
* return event_reinit(current_base)
* emit_endif() # <<<<<<<<<<<<<<
......@@ -4682,17 +4682,17 @@ PyTypeObject __pyx_type_6gevent_4core_event = {
0, /*tp_weaklist*/
};
static PyObject *__pyx_tp_new_6gevent_4core_read(PyTypeObject *t, PyObject *a, PyObject *k) {
static PyObject *__pyx_tp_new_6gevent_4core_read_event(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_6gevent_4core_event(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_6gevent_4core_read[] = {
static struct PyMethodDef __pyx_methods_6gevent_4core_read_event[] = {
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_read = {
static PyNumberMethods __pyx_tp_as_number_read_event = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
......@@ -4750,7 +4750,7 @@ static PyNumberMethods __pyx_tp_as_number_read = {
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_read = {
static PySequenceMethods __pyx_tp_as_sequence_read_event = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
......@@ -4763,13 +4763,13 @@ static PySequenceMethods __pyx_tp_as_sequence_read = {
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_read = {
static PyMappingMethods __pyx_tp_as_mapping_read_event = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_read = {
static PyBufferProcs __pyx_tp_as_buffer_read_event = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
......@@ -4790,10 +4790,10 @@ static PyBufferProcs __pyx_tp_as_buffer_read = {
#endif
};
PyTypeObject __pyx_type_6gevent_4core_read = {
PyTypeObject __pyx_type_6gevent_4core_read_event = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("gevent.core.read"), /*tp_name*/
sizeof(struct __pyx_obj_6gevent_4core_read), /*tp_basicsize*/
__Pyx_NAMESTR("gevent.core.read_event"), /*tp_name*/
sizeof(struct __pyx_obj_6gevent_4core_read_event), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_6gevent_4core_event, /*tp_dealloc*/
0, /*tp_print*/
......@@ -4801,15 +4801,15 @@ PyTypeObject __pyx_type_6gevent_4core_read = {
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_read, /*tp_as_number*/
&__pyx_tp_as_sequence_read, /*tp_as_sequence*/
&__pyx_tp_as_mapping_read, /*tp_as_mapping*/
&__pyx_tp_as_number_read_event, /*tp_as_number*/
&__pyx_tp_as_sequence_read_event, /*tp_as_sequence*/
&__pyx_tp_as_mapping_read_event, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_read, /*tp_as_buffer*/
&__pyx_tp_as_buffer_read_event, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
0, /*tp_doc*/
__pyx_tp_traverse_6gevent_4core_event, /*tp_traverse*/
......@@ -4818,7 +4818,7 @@ PyTypeObject __pyx_type_6gevent_4core_read = {
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_6gevent_4core_read, /*tp_methods*/
__pyx_methods_6gevent_4core_read_event, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
......@@ -4826,9 +4826,9 @@ PyTypeObject __pyx_type_6gevent_4core_read = {
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
__pyx_pf_6gevent_4core_4read___init__, /*tp_init*/
__pyx_pf_6gevent_4core_10read_event___init__, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_6gevent_4core_read, /*tp_new*/
__pyx_tp_new_6gevent_4core_read_event, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
......@@ -4838,17 +4838,17 @@ PyTypeObject __pyx_type_6gevent_4core_read = {
0, /*tp_weaklist*/
};
static PyObject *__pyx_tp_new_6gevent_4core_write(PyTypeObject *t, PyObject *a, PyObject *k) {
static PyObject *__pyx_tp_new_6gevent_4core_write_event(PyTypeObject *t, PyObject *a, PyObject *k) {
PyObject *o = __pyx_tp_new_6gevent_4core_event(t, a, k);
if (!o) return 0;
return o;
}
static struct PyMethodDef __pyx_methods_6gevent_4core_write[] = {
static struct PyMethodDef __pyx_methods_6gevent_4core_write_event[] = {
{0, 0, 0, 0}
};
static PyNumberMethods __pyx_tp_as_number_write = {
static PyNumberMethods __pyx_tp_as_number_write_event = {
0, /*nb_add*/
0, /*nb_subtract*/
0, /*nb_multiply*/
......@@ -4906,7 +4906,7 @@ static PyNumberMethods __pyx_tp_as_number_write = {
#endif
};
static PySequenceMethods __pyx_tp_as_sequence_write = {
static PySequenceMethods __pyx_tp_as_sequence_write_event = {
0, /*sq_length*/
0, /*sq_concat*/
0, /*sq_repeat*/
......@@ -4919,13 +4919,13 @@ static PySequenceMethods __pyx_tp_as_sequence_write = {
0, /*sq_inplace_repeat*/
};
static PyMappingMethods __pyx_tp_as_mapping_write = {
static PyMappingMethods __pyx_tp_as_mapping_write_event = {
0, /*mp_length*/
0, /*mp_subscript*/
0, /*mp_ass_subscript*/
};
static PyBufferProcs __pyx_tp_as_buffer_write = {
static PyBufferProcs __pyx_tp_as_buffer_write_event = {
#if PY_MAJOR_VERSION < 3
0, /*bf_getreadbuffer*/
#endif
......@@ -4946,10 +4946,10 @@ static PyBufferProcs __pyx_tp_as_buffer_write = {
#endif
};
PyTypeObject __pyx_type_6gevent_4core_write = {
PyTypeObject __pyx_type_6gevent_4core_write_event = {
PyVarObject_HEAD_INIT(0, 0)
__Pyx_NAMESTR("gevent.core.write"), /*tp_name*/
sizeof(struct __pyx_obj_6gevent_4core_write), /*tp_basicsize*/
__Pyx_NAMESTR("gevent.core.write_event"), /*tp_name*/
sizeof(struct __pyx_obj_6gevent_4core_write_event), /*tp_basicsize*/
0, /*tp_itemsize*/
__pyx_tp_dealloc_6gevent_4core_event, /*tp_dealloc*/
0, /*tp_print*/
......@@ -4957,15 +4957,15 @@ PyTypeObject __pyx_type_6gevent_4core_write = {
0, /*tp_setattr*/
0, /*tp_compare*/
0, /*tp_repr*/
&__pyx_tp_as_number_write, /*tp_as_number*/
&__pyx_tp_as_sequence_write, /*tp_as_sequence*/
&__pyx_tp_as_mapping_write, /*tp_as_mapping*/
&__pyx_tp_as_number_write_event, /*tp_as_number*/
&__pyx_tp_as_sequence_write_event, /*tp_as_sequence*/
&__pyx_tp_as_mapping_write_event, /*tp_as_mapping*/
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/
0, /*tp_getattro*/
0, /*tp_setattro*/
&__pyx_tp_as_buffer_write, /*tp_as_buffer*/
&__pyx_tp_as_buffer_write_event, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
0, /*tp_doc*/
__pyx_tp_traverse_6gevent_4core_event, /*tp_traverse*/
......@@ -4974,7 +4974,7 @@ PyTypeObject __pyx_type_6gevent_4core_write = {
0, /*tp_weaklistoffset*/
0, /*tp_iter*/
0, /*tp_iternext*/
__pyx_methods_6gevent_4core_write, /*tp_methods*/
__pyx_methods_6gevent_4core_write_event, /*tp_methods*/
0, /*tp_members*/
0, /*tp_getset*/
0, /*tp_base*/
......@@ -4982,9 +4982,9 @@ PyTypeObject __pyx_type_6gevent_4core_write = {
0, /*tp_descr_get*/
0, /*tp_descr_set*/
0, /*tp_dictoffset*/
__pyx_pf_6gevent_4core_5write___init__, /*tp_init*/
__pyx_pf_6gevent_4core_11write_event___init__, /*tp_init*/
0, /*tp_alloc*/
__pyx_tp_new_6gevent_4core_write, /*tp_new*/
__pyx_tp_new_6gevent_4core_write_event, /*tp_new*/
0, /*tp_free*/
0, /*tp_is_gc*/
0, /*tp_bases*/
......@@ -5436,7 +5436,7 @@ PyTypeObject __pyx_type_6gevent_4core_active_event = {
0, /*tp_setattro*/
&__pyx_tp_as_buffer_active_event, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
__Pyx_DOCSTR("An event that is scheduled to run in _this_ loop iteration"), /*tp_doc*/
__Pyx_DOCSTR("An event that is scheduled to run in the current loop iteration"), /*tp_doc*/
__pyx_tp_traverse_6gevent_4core_event, /*tp_traverse*/
__pyx_tp_clear_6gevent_4core_event, /*tp_clear*/
0, /*tp_richcompare*/
......@@ -5581,7 +5581,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = {
{0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
__pyx_builtin_UserWarning = __Pyx_GetName(__pyx_b, __pyx_kp_UserWarning); if (!__pyx_builtin_UserWarning) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_builtin_UserWarning = __Pyx_GetName(__pyx_b, __pyx_kp_UserWarning); if (!__pyx_builtin_UserWarning) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_builtin_hex = __Pyx_GetName(__pyx_b, __pyx_kp_hex); if (!__pyx_builtin_hex) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_builtin_IOError = __Pyx_GetName(__pyx_b, __pyx_kp_IOError); if (!__pyx_builtin_IOError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_builtin_id = __Pyx_GetName(__pyx_b, __pyx_kp_id); if (!__pyx_builtin_id) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
......@@ -5669,14 +5669,14 @@ PyMODINIT_FUNC PyInit_core(void)
if (PyType_Ready(&__pyx_type_6gevent_4core_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "event", (PyObject *)&__pyx_type_6gevent_4core_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_6gevent_4core_event = &__pyx_type_6gevent_4core_event;
__pyx_type_6gevent_4core_read.tp_base = __pyx_ptype_6gevent_4core_event;
if (PyType_Ready(&__pyx_type_6gevent_4core_read) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "read", (PyObject *)&__pyx_type_6gevent_4core_read) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_6gevent_4core_read = &__pyx_type_6gevent_4core_read;
__pyx_type_6gevent_4core_write.tp_base = __pyx_ptype_6gevent_4core_event;
if (PyType_Ready(&__pyx_type_6gevent_4core_write) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "write", (PyObject *)&__pyx_type_6gevent_4core_write) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_6gevent_4core_write = &__pyx_type_6gevent_4core_write;
__pyx_type_6gevent_4core_read_event.tp_base = __pyx_ptype_6gevent_4core_event;
if (PyType_Ready(&__pyx_type_6gevent_4core_read_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "read_event", (PyObject *)&__pyx_type_6gevent_4core_read_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_6gevent_4core_read_event = &__pyx_type_6gevent_4core_read_event;
__pyx_type_6gevent_4core_write_event.tp_base = __pyx_ptype_6gevent_4core_event;
if (PyType_Ready(&__pyx_type_6gevent_4core_write_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "write_event", (PyObject *)&__pyx_type_6gevent_4core_write_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_ptype_6gevent_4core_write_event = &__pyx_type_6gevent_4core_write_event;
__pyx_type_6gevent_4core_timer.tp_base = __pyx_ptype_6gevent_4core_event;
if (PyType_Ready(&__pyx_type_6gevent_4core_timer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (__Pyx_SetAttrString(__pyx_m, "timer", (PyObject *)&__pyx_type_6gevent_4core_timer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
......@@ -5846,60 +5846,60 @@ PyMODINIT_FUNC PyInit_core(void)
*/
if (PyObject_SetAttr(__pyx_m, __pyx_kp_EV_PERSIST, __pyx_int_0x10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
/* "/home/denis/work/gevent/gevent/core.pyx":346
* return ret
/* "/home/denis/work/gevent/gevent/core.pyx":348
*
*
* def loop(nonblock=False): # <<<<<<<<<<<<<<
* """Dispatch all pending events on queue in a single pass.
* Returns 0 on success, and 1 if no events are registered.
*/
__pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__pyx_k_8 = __pyx_t_1;
__pyx_t_1 = 0;
__Pyx_GIVEREF(__pyx_k_8);
/* "/home/denis/work/gevent/gevent/core.pyx":392
/* "/home/denis/work/gevent/gevent/core.pyx":395
*
* # XXX - make sure event queue is always initialized.
* init() # <<<<<<<<<<<<<<
*
* if get_version() != get_header_version() and get_header_version() is not None:
*/
__pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_init); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_init); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_1);
__pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_1); __pyx_1 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "/home/denis/work/gevent/gevent/core.pyx":394
/* "/home/denis/work/gevent/gevent/core.pyx":397
* init()
*
* if get_version() != get_header_version() and get_header_version() is not None: # <<<<<<<<<<<<<<
* import warnings
* msg = "version mismatch: system libevent version is %r but this gevent is compiled against %r" % (get_version(), get_header_version())
*/
__pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp_get_version); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp_get_version); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_2);
__pyx_t_1 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_1 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_2); __pyx_2 = 0;
__pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_get_header_version); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_get_header_version); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_1);
__pyx_t_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_4) {
__pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp_get_header_version); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp_get_header_version); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_2);
__pyx_t_3 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_2); __pyx_2 = 0;
__pyx_t_5 = (__pyx_t_3 != Py_None);
......@@ -5910,36 +5910,36 @@ PyMODINIT_FUNC PyInit_core(void)
}
if (__pyx_t_6) {
/* "/home/denis/work/gevent/gevent/core.pyx":395
/* "/home/denis/work/gevent/gevent/core.pyx":398
*
* if get_version() != get_header_version() and get_header_version() is not None:
* import warnings # <<<<<<<<<<<<<<
* msg = "version mismatch: system libevent version is %r but this gevent is compiled against %r" % (get_version(), get_header_version())
* warnings.warn(msg, UserWarning, stacklevel=2)
*/
__pyx_1 = __Pyx_Import(__pyx_kp_warnings, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_1 = __Pyx_Import(__pyx_kp_warnings, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_1);
if (PyObject_SetAttr(__pyx_m, __pyx_kp_warnings, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttr(__pyx_m, __pyx_kp_warnings, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_1); __pyx_1 = 0;
/* "/home/denis/work/gevent/gevent/core.pyx":396
/* "/home/denis/work/gevent/gevent/core.pyx":399
* if get_version() != get_header_version() and get_header_version() is not None:
* import warnings
* msg = "version mismatch: system libevent version is %r but this gevent is compiled against %r" % (get_version(), get_header_version()) # <<<<<<<<<<<<<<
* warnings.warn(msg, UserWarning, stacklevel=2)
*
*/
__pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp_get_version); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp_get_version); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_2);
__pyx_t_3 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_2); __pyx_2 = 0;
__pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_get_header_version); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_get_header_version); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_1);
__pyx_t_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
__Pyx_GIVEREF(__pyx_t_3);
......@@ -5947,26 +5947,26 @@ PyMODINIT_FUNC PyInit_core(void)
__Pyx_GIVEREF(__pyx_t_2);
__pyx_t_3 = 0;
__pyx_t_2 = 0;
__pyx_t_2 = PyNumber_Remainder(__pyx_kp_9, ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = PyNumber_Remainder(__pyx_kp_9, ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
if (PyObject_SetAttr(__pyx_m, __pyx_kp_msg, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyObject_SetAttr(__pyx_m, __pyx_kp_msg, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
/* "/home/denis/work/gevent/gevent/core.pyx":397
/* "/home/denis/work/gevent/gevent/core.pyx":400
* import warnings
* msg = "version mismatch: system libevent version is %r but this gevent is compiled against %r" % (get_version(), get_header_version())
* warnings.warn(msg, UserWarning, stacklevel=2) # <<<<<<<<<<<<<<
*
*/
__pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp_warnings); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp_warnings); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_2);
__pyx_t_2 = PyObject_GetAttr(__pyx_2, __pyx_kp_warn); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_2 = PyObject_GetAttr(__pyx_2, __pyx_kp_warn); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_2); __pyx_2 = 0;
__pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_msg); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_msg); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_1);
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_1);
__Pyx_GIVEREF(__pyx_1);
......@@ -5974,10 +5974,10 @@ PyMODINIT_FUNC PyInit_core(void)
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_builtin_UserWarning);
__Pyx_GIVEREF(__pyx_builtin_UserWarning);
__pyx_1 = 0;
__pyx_2 = PyDict_New(); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_2 = PyDict_New(); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(((PyObject *)__pyx_2));
if (PyDict_SetItem(__pyx_2, __pyx_kp_stacklevel, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = PyEval_CallObjectWithKeywords(__pyx_t_2, ((PyObject *)__pyx_t_1), ((PyObject *)__pyx_2)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
if (PyDict_SetItem(__pyx_2, __pyx_kp_stacklevel, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__pyx_t_3 = PyEval_CallObjectWithKeywords(__pyx_t_2, ((PyObject *)__pyx_t_1), ((PyObject *)__pyx_2)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment