summaryrefslogtreecommitdiff
path: root/eorepo/eodefault.c
diff options
context:
space:
mode:
Diffstat (limited to 'eorepo/eodefault.c')
-rw-r--r--eorepo/eodefault.c4095
1 files changed, 4095 insertions, 0 deletions
diff --git a/eorepo/eodefault.c b/eorepo/eodefault.c
new file mode 100644
index 0000000..5c71278
--- /dev/null
+++ b/eorepo/eodefault.c
@@ -0,0 +1,4095 @@
1/* Generated by Cython 0.17.2 on Thu Dec 13 18:28:03 2012 */
2
3#define PY_SSIZE_T_CLEAN
4#include "Python.h"
5#ifndef Py_PYTHON_H
6 #error Python headers needed to compile C extensions, please install development version of Python.
7#elif PY_VERSION_HEX < 0x02040000
8 #error Cython requires Python 2.4+.
9#else
10#include <stddef.h> /* For offsetof */
11#ifndef offsetof
12#define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
13#endif
14#if !defined(WIN32) && !defined(MS_WINDOWS)
15 #ifndef __stdcall
16 #define __stdcall
17 #endif
18 #ifndef __cdecl
19 #define __cdecl
20 #endif
21 #ifndef __fastcall
22 #define __fastcall
23 #endif
24#endif
25#ifndef DL_IMPORT
26 #define DL_IMPORT(t) t
27#endif
28#ifndef DL_EXPORT
29 #define DL_EXPORT(t) t
30#endif
31#ifndef PY_LONG_LONG
32 #define PY_LONG_LONG LONG_LONG
33#endif
34#ifndef Py_HUGE_VAL
35 #define Py_HUGE_VAL HUGE_VAL
36#endif
37#ifdef PYPY_VERSION
38#define CYTHON_COMPILING_IN_PYPY 1
39#define CYTHON_COMPILING_IN_CPYTHON 0
40#else
41#define CYTHON_COMPILING_IN_PYPY 0
42#define CYTHON_COMPILING_IN_CPYTHON 1
43#endif
44#if PY_VERSION_HEX < 0x02050000
45 typedef int Py_ssize_t;
46 #define PY_SSIZE_T_MAX INT_MAX
47 #define PY_SSIZE_T_MIN INT_MIN
48 #define PY_FORMAT_SIZE_T ""
49 #define CYTHON_FORMAT_SSIZE_T ""
50 #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
51 #define PyInt_AsSsize_t(o) __Pyx_PyInt_AsInt(o)
52 #define PyNumber_Index(o) ((PyNumber_Check(o) && !PyFloat_Check(o)) ? PyNumber_Int(o) : \
53 (PyErr_Format(PyExc_TypeError, \
54 "expected index value, got %.200s", Py_TYPE(o)->tp_name), \
55 (PyObject*)0))
56 #define __Pyx_PyIndex_Check(o) (PyNumber_Check(o) && !PyFloat_Check(o) && \
57 !PyComplex_Check(o))
58 #define PyIndex_Check __Pyx_PyIndex_Check
59 #define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)
60 #define __PYX_BUILD_PY_SSIZE_T "i"
61#else
62 #define __PYX_BUILD_PY_SSIZE_T "n"
63 #define CYTHON_FORMAT_SSIZE_T "z"
64 #define __Pyx_PyIndex_Check PyIndex_Check
65#endif
66#if PY_VERSION_HEX < 0x02060000
67 #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
68 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
69 #define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
70 #define PyVarObject_HEAD_INIT(type, size) \
71 PyObject_HEAD_INIT(type) size,
72 #define PyType_Modified(t)
73 typedef struct {
74 void *buf;
75 PyObject *obj;
76 Py_ssize_t len;
77 Py_ssize_t itemsize;
78 int readonly;
79 int ndim;
80 char *format;
81 Py_ssize_t *shape;
82 Py_ssize_t *strides;
83 Py_ssize_t *suboffsets;
84 void *internal;
85 } Py_buffer;
86 #define PyBUF_SIMPLE 0
87 #define PyBUF_WRITABLE 0x0001
88 #define PyBUF_FORMAT 0x0004
89 #define PyBUF_ND 0x0008
90 #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
91 #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
92 #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
93 #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
94 #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
95 #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_FORMAT | PyBUF_WRITABLE)
96 #define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_FORMAT | PyBUF_WRITABLE)
97 typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
98 typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
99#endif
100#if PY_MAJOR_VERSION < 3
101 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
102 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \
103 PyCode_New(a, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
104#else
105 #define __Pyx_BUILTIN_MODULE_NAME "builtins"
106 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \
107 PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
108#endif
109#if PY_MAJOR_VERSION < 3 && PY_MINOR_VERSION < 6
110 #define PyUnicode_FromString(s) PyUnicode_Decode(s, strlen(s), "UTF-8", "strict")
111#endif
112#if PY_MAJOR_VERSION >= 3
113 #define Py_TPFLAGS_CHECKTYPES 0
114 #define Py_TPFLAGS_HAVE_INDEX 0
115#endif
116#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
117 #define Py_TPFLAGS_HAVE_NEWBUFFER 0
118#endif
119#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
120 #define CYTHON_PEP393_ENABLED 1
121 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ? \
122 0 : _PyUnicode_Ready((PyObject *)(op)))
123 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
124 #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
125 #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
126#else
127 #define CYTHON_PEP393_ENABLED 0
128 #define __Pyx_PyUnicode_READY(op) (0)
129 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
130 #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
131 #define __Pyx_PyUnicode_READ(k, d, i) ((k=k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
132#endif
133#if PY_MAJOR_VERSION >= 3
134 #define PyBaseString_Type PyUnicode_Type
135 #define PyStringObject PyUnicodeObject
136 #define PyString_Type PyUnicode_Type
137 #define PyString_Check PyUnicode_Check
138 #define PyString_CheckExact PyUnicode_CheckExact
139#endif
140#if PY_VERSION_HEX < 0x02060000
141 #define PyBytesObject PyStringObject
142 #define PyBytes_Type PyString_Type
143 #define PyBytes_Check PyString_Check
144 #define PyBytes_CheckExact PyString_CheckExact
145 #define PyBytes_FromString PyString_FromString
146 #define PyBytes_FromStringAndSize PyString_FromStringAndSize
147 #define PyBytes_FromFormat PyString_FromFormat
148 #define PyBytes_DecodeEscape PyString_DecodeEscape
149 #define PyBytes_AsString PyString_AsString
150 #define PyBytes_AsStringAndSize PyString_AsStringAndSize
151 #define PyBytes_Size PyString_Size
152 #define PyBytes_AS_STRING PyString_AS_STRING
153 #define PyBytes_GET_SIZE PyString_GET_SIZE
154 #define PyBytes_Repr PyString_Repr
155 #define PyBytes_Concat PyString_Concat
156 #define PyBytes_ConcatAndDel PyString_ConcatAndDel
157#endif
158#if PY_VERSION_HEX < 0x02060000
159 #define PySet_Check(obj) PyObject_TypeCheck(obj, &PySet_Type)
160 #define PyFrozenSet_Check(obj) PyObject_TypeCheck(obj, &PyFrozenSet_Type)
161#endif
162#ifndef PySet_CheckExact
163 #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
164#endif
165#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
166#if PY_MAJOR_VERSION >= 3
167 #define PyIntObject PyLongObject
168 #define PyInt_Type PyLong_Type
169 #define PyInt_Check(op) PyLong_Check(op)
170 #define PyInt_CheckExact(op) PyLong_CheckExact(op)
171 #define PyInt_FromString PyLong_FromString
172 #define PyInt_FromUnicode PyLong_FromUnicode
173 #define PyInt_FromLong PyLong_FromLong
174 #define PyInt_FromSize_t PyLong_FromSize_t
175 #define PyInt_FromSsize_t PyLong_FromSsize_t
176 #define PyInt_AsLong PyLong_AsLong
177 #define PyInt_AS_LONG PyLong_AS_LONG
178 #define PyInt_AsSsize_t PyLong_AsSsize_t
179 #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
180 #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
181#endif
182#if PY_MAJOR_VERSION >= 3
183 #define PyBoolObject PyLongObject
184#endif
185#if PY_VERSION_HEX < 0x03020000
186 typedef long Py_hash_t;
187 #define __Pyx_PyInt_FromHash_t PyInt_FromLong
188 #define __Pyx_PyInt_AsHash_t PyInt_AsLong
189#else
190 #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
191 #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t
192#endif
193#if (PY_MAJOR_VERSION < 3) || (PY_VERSION_HEX >= 0x03010300)
194 #define __Pyx_PySequence_GetSlice(obj, a, b) PySequence_GetSlice(obj, a, b)
195 #define __Pyx_PySequence_SetSlice(obj, a, b, value) PySequence_SetSlice(obj, a, b, value)
196 #define __Pyx_PySequence_DelSlice(obj, a, b) PySequence_DelSlice(obj, a, b)
197#else
198 #define __Pyx_PySequence_GetSlice(obj, a, b) (unlikely(!(obj)) ? \
199 (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), (PyObject*)0) : \
200 (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_GetSlice(obj, a, b)) : \
201 (PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", (obj)->ob_type->tp_name), (PyObject*)0)))
202 #define __Pyx_PySequence_SetSlice(obj, a, b, value) (unlikely(!(obj)) ? \
203 (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
204 (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_SetSlice(obj, a, b, value)) : \
205 (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice assignment", (obj)->ob_type->tp_name), -1)))
206 #define __Pyx_PySequence_DelSlice(obj, a, b) (unlikely(!(obj)) ? \
207 (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
208 (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_DelSlice(obj, a, b)) : \
209 (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice deletion", (obj)->ob_type->tp_name), -1)))
210#endif
211#if PY_MAJOR_VERSION >= 3
212 #define PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
213#endif
214#if PY_VERSION_HEX < 0x02050000
215 #define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),((char *)(n)))
216 #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
217 #define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),((char *)(n)))
218#else
219 #define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),(n))
220 #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
221 #define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),(n))
222#endif
223#if PY_VERSION_HEX < 0x02050000
224 #define __Pyx_NAMESTR(n) ((char *)(n))
225 #define __Pyx_DOCSTR(n) ((char *)(n))
226#else
227 #define __Pyx_NAMESTR(n) (n)
228 #define __Pyx_DOCSTR(n) (n)
229#endif
230
231
232#if PY_MAJOR_VERSION >= 3
233 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
234 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
235#else
236 #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
237 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
238#endif
239
240#ifndef __PYX_EXTERN_C
241 #ifdef __cplusplus
242 #define __PYX_EXTERN_C extern "C"
243 #else
244 #define __PYX_EXTERN_C extern
245 #endif
246#endif
247
248#if defined(WIN32) || defined(MS_WINDOWS)
249#define _USE_MATH_DEFINES
250#endif
251#include <math.h>
252#define __PYX_HAVE__eorepo__eodefault
253#define __PYX_HAVE_API__eorepo__eodefault
254#include "Eina.h"
255#include "Eo.h"
256#ifdef _OPENMP
257#include <omp.h>
258#endif /* _OPENMP */
259
260#ifdef PYREX_WITHOUT_ASSERTIONS
261#define CYTHON_WITHOUT_ASSERTIONS
262#endif
263
264
265/* inline attribute */
266#ifndef CYTHON_INLINE
267 #if defined(__GNUC__)
268 #define CYTHON_INLINE __inline__
269 #elif defined(_MSC_VER)
270 #define CYTHON_INLINE __inline
271 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
272 #define CYTHON_INLINE inline
273 #else
274 #define CYTHON_INLINE
275 #endif
276#endif
277
278/* unused attribute */
279#ifndef CYTHON_UNUSED
280# if defined(__GNUC__)
281# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
282# define CYTHON_UNUSED __attribute__ ((__unused__))
283# else
284# define CYTHON_UNUSED
285# endif
286# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
287# define CYTHON_UNUSED __attribute__ ((__unused__))
288# else
289# define CYTHON_UNUSED
290# endif
291#endif
292
293typedef struct {PyObject **p; char *s; const long n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/
294
295
296/* Type Conversion Predeclarations */
297
298#define __Pyx_PyBytes_FromUString(s) PyBytes_FromString((char*)s)
299#define __Pyx_PyBytes_AsUString(s) ((unsigned char*) PyBytes_AsString(s))
300
301#define __Pyx_Owned_Py_None(b) (Py_INCREF(Py_None), Py_None)
302#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
303static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
304static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
305
306static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
307static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
308static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
309
310#if CYTHON_COMPILING_IN_CPYTHON
311#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
312#else
313#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
314#endif
315#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
316
317#ifdef __GNUC__
318 /* Test for GCC > 2.95 */
319 #if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))
320 #define likely(x) __builtin_expect(!!(x), 1)
321 #define unlikely(x) __builtin_expect(!!(x), 0)
322 #else /* __GNUC__ > 2 ... */
323 #define likely(x) (x)
324 #define unlikely(x) (x)
325 #endif /* __GNUC__ > 2 ... */
326#else /* __GNUC__ */
327 #define likely(x) (x)
328 #define unlikely(x) (x)
329#endif /* __GNUC__ */
330
331static PyObject *__pyx_m;
332static PyObject *__pyx_b;
333static PyObject *__pyx_empty_tuple;
334static PyObject *__pyx_empty_bytes;
335static int __pyx_lineno;
336static int __pyx_clineno = 0;
337static const char * __pyx_cfilenm= __FILE__;
338static const char *__pyx_filename;
339
340
341static const char *__pyx_f[] = {
342 "eodefault.pyx",
343};
344
345/*--- Type declarations ---*/
346struct __pyx_obj_6eorepo_9eodefault_EoDefault;
347
348/* "eorepo/eodefault.pxd":73
349 *
350 *
351 * cdef class EoDefault: # <<<<<<<<<<<<<<
352 * cdef Eo *eo
353 * cdef object name
354 */
355struct __pyx_obj_6eorepo_9eodefault_EoDefault {
356 PyObject_HEAD
357 struct __pyx_vtabstruct_6eorepo_9eodefault_EoDefault *__pyx_vtab;
358 Eo *eo;
359 PyObject *name;
360};
361
362
363
364/* "eorepo/eodefault.pyx":48
365 * #===========
366 *
367 * cdef class EoDefault: # <<<<<<<<<<<<<<
368 *
369 * PY_EO_NAME = "python-eo"
370 */
371
372struct __pyx_vtabstruct_6eorepo_9eodefault_EoDefault {
373 int (*print_func_name)(struct __pyx_obj_6eorepo_9eodefault_EoDefault *, PyObject *);
374 int (*_eo_instance_set)(struct __pyx_obj_6eorepo_9eodefault_EoDefault *, Eo *);
375 PyObject *(*_eo_instance_set2)(struct __pyx_obj_6eorepo_9eodefault_EoDefault *, unsigned PY_LONG_LONG, struct __pyx_obj_6eorepo_9eodefault_EoDefault *, int __pyx_skip_dispatch);
376};
377static struct __pyx_vtabstruct_6eorepo_9eodefault_EoDefault *__pyx_vtabptr_6eorepo_9eodefault_EoDefault;
378#ifndef CYTHON_REFNANNY
379 #define CYTHON_REFNANNY 0
380#endif
381#if CYTHON_REFNANNY
382 typedef struct {
383 void (*INCREF)(void*, PyObject*, int);
384 void (*DECREF)(void*, PyObject*, int);
385 void (*GOTREF)(void*, PyObject*, int);
386 void (*GIVEREF)(void*, PyObject*, int);
387 void* (*SetupContext)(const char*, int, const char*);
388 void (*FinishContext)(void**);
389 } __Pyx_RefNannyAPIStruct;
390 static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
391 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); /*proto*/
392 #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
393#ifdef WITH_THREAD
394 #define __Pyx_RefNannySetupContext(name, acquire_gil) \
395 if (acquire_gil) { \
396 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure(); \
397 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__); \
398 PyGILState_Release(__pyx_gilstate_save); \
399 } else { \
400 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__); \
401 }
402#else
403 #define __Pyx_RefNannySetupContext(name, acquire_gil) \
404 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
405#endif
406 #define __Pyx_RefNannyFinishContext() \
407 __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
408 #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
409 #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
410 #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
411 #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
412 #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
413 #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
414 #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
415 #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
416#else
417 #define __Pyx_RefNannyDeclarations
418 #define __Pyx_RefNannySetupContext(name, acquire_gil)
419 #define __Pyx_RefNannyFinishContext()
420 #define __Pyx_INCREF(r) Py_INCREF(r)
421 #define __Pyx_DECREF(r) Py_DECREF(r)
422 #define __Pyx_GOTREF(r)
423 #define __Pyx_GIVEREF(r)
424 #define __Pyx_XINCREF(r) Py_XINCREF(r)
425 #define __Pyx_XDECREF(r) Py_XDECREF(r)
426 #define __Pyx_XGOTREF(r)
427 #define __Pyx_XGIVEREF(r)
428#endif /* CYTHON_REFNANNY */
429#define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
430#define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
431
432static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
433
434static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
435static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
436
437static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /*proto*/
438
439static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
440 Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/
441
442static CYTHON_INLINE int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed); /*proto*/
443
444static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /*proto*/
445
446static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[], \
447 PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, \
448 const char* function_name); /*proto*/
449
450static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
451 const char *name, int exact); /*proto*/
452
453static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
454 PyObject *r;
455 if (!j) return NULL;
456 r = PyObject_GetItem(o, j);
457 Py_DECREF(j);
458 return r;
459}
460#define __Pyx_GetItemInt_List(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
461 __Pyx_GetItemInt_List_Fast(o, i) : \
462 __Pyx_GetItemInt_Generic(o, to_py_func(i)))
463static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i) {
464#if CYTHON_COMPILING_IN_CPYTHON
465 if (likely((0 <= i) & (i < PyList_GET_SIZE(o)))) {
466 PyObject *r = PyList_GET_ITEM(o, i);
467 Py_INCREF(r);
468 return r;
469 }
470 else if ((-PyList_GET_SIZE(o) <= i) & (i < 0)) {
471 PyObject *r = PyList_GET_ITEM(o, PyList_GET_SIZE(o) + i);
472 Py_INCREF(r);
473 return r;
474 }
475 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
476#else
477 return PySequence_GetItem(o, i);
478#endif
479}
480#define __Pyx_GetItemInt_Tuple(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
481 __Pyx_GetItemInt_Tuple_Fast(o, i) : \
482 __Pyx_GetItemInt_Generic(o, to_py_func(i)))
483static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i) {
484#if CYTHON_COMPILING_IN_CPYTHON
485 if (likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
486 PyObject *r = PyTuple_GET_ITEM(o, i);
487 Py_INCREF(r);
488 return r;
489 }
490 else if ((-PyTuple_GET_SIZE(o) <= i) & (i < 0)) {
491 PyObject *r = PyTuple_GET_ITEM(o, PyTuple_GET_SIZE(o) + i);
492 Py_INCREF(r);
493 return r;
494 }
495 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
496#else
497 return PySequence_GetItem(o, i);
498#endif
499}
500#define __Pyx_GetItemInt(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
501 __Pyx_GetItemInt_Fast(o, i) : \
502 __Pyx_GetItemInt_Generic(o, to_py_func(i)))
503static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i) {
504#if CYTHON_COMPILING_IN_CPYTHON
505 if (PyList_CheckExact(o)) {
506 Py_ssize_t n = (likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
507 if (likely((n >= 0) & (n < PyList_GET_SIZE(o)))) {
508 PyObject *r = PyList_GET_ITEM(o, n);
509 Py_INCREF(r);
510 return r;
511 }
512 }
513 else if (PyTuple_CheckExact(o)) {
514 Py_ssize_t n = (likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
515 if (likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) {
516 PyObject *r = PyTuple_GET_ITEM(o, n);
517 Py_INCREF(r);
518 return r;
519 }
520 } else { /* inlined PySequence_GetItem() */
521 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
522 if (likely(m && m->sq_item)) {
523 if (unlikely(i < 0) && likely(m->sq_length)) {
524 Py_ssize_t l = m->sq_length(o);
525 if (unlikely(l < 0)) return NULL;
526 i += l;
527 }
528 return m->sq_item(o, i);
529 }
530 }
531#else
532 if (PySequence_Check(o)) {
533 return PySequence_GetItem(o, i);
534 }
535#endif
536 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
537}
538
539static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, long level); /*proto*/
540
541static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_Eina_Bool(Eina_Bool);
542
543static int __Pyx_Print(PyObject*, PyObject *, int); /*proto*/
544#if CYTHON_COMPILING_IN_PYPY || PY_MAJOR_VERSION >= 3
545static PyObject* __pyx_print = 0;
546static PyObject* __pyx_print_kwargs = 0;
547#endif
548
549static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
550
551static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
552
553static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
554
555static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject *);
556
557static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject *);
558
559static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject *);
560
561static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
562
563static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
564
565static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
566
567static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject *);
568
569static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
570
571static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
572
573static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject *);
574
575static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
576
577static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
578
579static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
580
581static void __Pyx_WriteUnraisable(const char *name, int clineno,
582 int lineno, const char *filename); /*proto*/
583
584static int __Pyx_check_binary_version(void);
585
586static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig); /*proto*/
587
588static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/
589
590typedef struct {
591 int code_line;
592 PyCodeObject* code_object;
593} __Pyx_CodeObjectCacheEntry;
594struct __Pyx_CodeObjectCache {
595 int count;
596 int max_count;
597 __Pyx_CodeObjectCacheEntry* entries;
598};
599static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
600static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
601static PyCodeObject *__pyx_find_code_object(int code_line);
602static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
603
604static void __Pyx_AddTraceback(const char *funcname, int c_line,
605 int py_line, const char *filename); /*proto*/
606
607static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
608
609
610/* Module declarations from 'eorepo.eodefault' */
611static PyTypeObject *__pyx_ptype_6eorepo_9eodefault_EoDefault = 0;
612static Eo *__pyx_f_6eorepo_9eodefault__eo_instance_get(struct __pyx_obj_6eorepo_9eodefault_EoDefault *); /*proto*/
613#define __Pyx_MODULE_NAME "eorepo.eodefault"
614int __pyx_module_is_main_eorepo__eodefault = 0;
615
616/* Implementation of 'eorepo.eodefault' */
617static PyObject *__pyx_builtin_basestring;
618static PyObject *__pyx_builtin_TypeError;
619static PyObject *__pyx_pf_6eorepo_9eodefault_init(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
620static PyObject *__pyx_pf_6eorepo_9eodefault_2pytext_to_utf8(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text); /* proto */
621static int __pyx_pf_6eorepo_9eodefault_9EoDefault___cinit__(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self); /* proto */
622static void __pyx_pf_6eorepo_9eodefault_9EoDefault_2__dealloc__(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self); /* proto */
623static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_4delete(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self); /* proto */
624static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_6ref(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self); /* proto */
625static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_8unref(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self); /* proto */
626static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_10ref_get(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self); /* proto */
627static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_12parent_get(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self); /* proto */
628static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_14class_name_get(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self); /* proto */
629static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_16name_get(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self); /* proto */
630static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_18_eo_instance_set2(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v__kl, struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_p); /* proto */
631static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_20_eo_instance_set3(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v__eo); /* proto */
632static char __pyx_k_1[] = "Argument '%s' has incorrect type (expected %s, got %s)";
633static char __pyx_k_2[] = "";
634static char __pyx_k_3[] = "UTF-8";
635static char __pyx_k_5[] = "Object must be clean";
636static char __pyx_k_6[] = " :: ";
637static char __pyx_k_8[] = "/home/yakov/eo_bindings/eorepo/eodefault.pyx";
638static char __pyx_k_9[] = "eorepo.eodefault";
639static char __pyx_k_12[] = "python-eo";
640static char __pyx_k__p[] = "p";
641static char __pyx_k___kl[] = "_kl";
642static char __pyx_k__ref[] = "ref";
643static char __pyx_k__sys[] = "sys";
644static char __pyx_k__init[] = "init";
645static char __pyx_k__text[] = "text";
646static char __pyx_k__encode[] = "encode";
647static char __pyx_k____main__[] = "__main__";
648static char __pyx_k____name__[] = "__name__";
649static char __pyx_k____test__[] = "__test__";
650static char __pyx_k__operator[] = "operator";
651static char __pyx_k__TypeError[] = "TypeError";
652static char __pyx_k____class__[] = "__class__";
653static char __pyx_k___data_set[] = "_data_set";
654static char __pyx_k__getsizeof[] = "getsizeof";
655static char __pyx_k__utf8_data[] = "utf8_data";
656static char __pyx_k__PY_EO_NAME[] = "PY_EO_NAME";
657static char __pyx_k__basestring[] = "basestring";
658static char __pyx_k__CALLBACK_STOP[] = "CALLBACK_STOP";
659static char __pyx_k__PRIORITY_AFTER[] = "PRIORITY_AFTER";
660static char __pyx_k__pytext_to_utf8[] = "pytext_to_utf8";
661static char __pyx_k__PRIORITY_BEFORE[] = "PRIORITY_BEFORE";
662static char __pyx_k__PRIORITY_DEFAULT[] = "PRIORITY_DEFAULT";
663static char __pyx_k___eo_instance_set2[] = "_eo_instance_set2";
664static PyObject *__pyx_kp_s_1;
665static PyObject *__pyx_kp_s_12;
666static PyObject *__pyx_kp_s_2;
667static PyObject *__pyx_kp_s_3;
668static PyObject *__pyx_kp_s_5;
669static PyObject *__pyx_kp_s_6;
670static PyObject *__pyx_kp_s_8;
671static PyObject *__pyx_n_s_9;
672static PyObject *__pyx_n_s__CALLBACK_STOP;
673static PyObject *__pyx_n_s__PRIORITY_AFTER;
674static PyObject *__pyx_n_s__PRIORITY_BEFORE;
675static PyObject *__pyx_n_s__PRIORITY_DEFAULT;
676static PyObject *__pyx_n_s__PY_EO_NAME;
677static PyObject *__pyx_n_s__TypeError;
678static PyObject *__pyx_n_s____class__;
679static PyObject *__pyx_n_s____main__;
680static PyObject *__pyx_n_s____name__;
681static PyObject *__pyx_n_s____test__;
682static PyObject *__pyx_n_s___data_set;
683static PyObject *__pyx_n_s___eo_instance_set2;
684static PyObject *__pyx_n_s___kl;
685static PyObject *__pyx_n_s__basestring;
686static PyObject *__pyx_n_s__encode;
687static PyObject *__pyx_n_s__getsizeof;
688static PyObject *__pyx_n_s__init;
689static PyObject *__pyx_n_s__operator;
690static PyObject *__pyx_n_s__p;
691static PyObject *__pyx_n_s__pytext_to_utf8;
692static PyObject *__pyx_n_s__ref;
693static PyObject *__pyx_n_s__sys;
694static PyObject *__pyx_n_s__text;
695static PyObject *__pyx_n_s__utf8_data;
696static PyObject *__pyx_int_12345;
697static PyObject *__pyx_k_tuple_4;
698static PyObject *__pyx_k_tuple_10;
699static PyObject *__pyx_k_codeobj_7;
700static PyObject *__pyx_k_codeobj_11;
701
702/* Python wrapper */
703static PyObject *__pyx_pw_6eorepo_9eodefault_1init(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
704static PyMethodDef __pyx_mdef_6eorepo_9eodefault_1init = {__Pyx_NAMESTR("init"), (PyCFunction)__pyx_pw_6eorepo_9eodefault_1init, METH_NOARGS, __Pyx_DOCSTR(0)};
705static PyObject *__pyx_pw_6eorepo_9eodefault_1init(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
706 PyObject *__pyx_r = 0;
707 __Pyx_RefNannyDeclarations
708 __Pyx_RefNannySetupContext("init (wrapper)", 0);
709 __pyx_r = __pyx_pf_6eorepo_9eodefault_init(__pyx_self);
710 __Pyx_RefNannyFinishContext();
711 return __pyx_r;
712}
713
714/* "eorepo/eodefault.pyx":18
715 *
716 *
717 * def init(): # <<<<<<<<<<<<<<
718 * return bool(eodefault.eo_init())
719 *
720 */
721
722static PyObject *__pyx_pf_6eorepo_9eodefault_init(CYTHON_UNUSED PyObject *__pyx_self) {
723 PyObject *__pyx_r = NULL;
724 __Pyx_RefNannyDeclarations
725 PyObject *__pyx_t_1 = NULL;
726 int __pyx_t_2;
727 int __pyx_lineno = 0;
728 const char *__pyx_filename = NULL;
729 int __pyx_clineno = 0;
730 __Pyx_RefNannySetupContext("init", 0);
731
732 /* "eorepo/eodefault.pyx":19
733 *
734 * def init():
735 * return bool(eodefault.eo_init()) # <<<<<<<<<<<<<<
736 *
737 * #########################################################
738 */
739 __Pyx_XDECREF(__pyx_r);
740 __pyx_t_1 = __Pyx_PyInt_to_py_Eina_Bool(eo_init()); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
741 __Pyx_GOTREF(__pyx_t_1);
742 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
743 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
744 __pyx_t_1 = __Pyx_PyBool_FromLong((!(!__pyx_t_2))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
745 __Pyx_GOTREF(__pyx_t_1);
746 __pyx_r = __pyx_t_1;
747 __pyx_t_1 = 0;
748 goto __pyx_L0;
749
750 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
751 goto __pyx_L0;
752 __pyx_L1_error:;
753 __Pyx_XDECREF(__pyx_t_1);
754 __Pyx_AddTraceback("eorepo.eodefault.init", __pyx_clineno, __pyx_lineno, __pyx_filename);
755 __pyx_r = NULL;
756 __pyx_L0:;
757 __Pyx_XGIVEREF(__pyx_r);
758 __Pyx_RefNannyFinishContext();
759 return __pyx_r;
760}
761
762/* "eorepo/eodefault.pyx":23
763 * #########################################################
764 *
765 * cdef Eo *_eo_instance_get(EoDefault pyobj): # <<<<<<<<<<<<<<
766 * """
767 * if x is a Python object, (x is None) and (x is not None) are very efficient because they translate directly to C pointer comparisons.
768 */
769
770static Eo *__pyx_f_6eorepo_9eodefault__eo_instance_get(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_pyobj) {
771 Eo *__pyx_r;
772 __Pyx_RefNannyDeclarations
773 int __pyx_t_1;
774 __Pyx_RefNannySetupContext("_eo_instance_get", 0);
775
776 /* "eorepo/eodefault.pyx":28
777 * Whereas (x == None) and (x != None), or simply using x as a boolean value (as in if x: ...) will invoke Python operations and therefore be much slower.
778 * """
779 * if pyobj is not None: # <<<<<<<<<<<<<<
780 * return pyobj.eo
781 * else:
782 */
783 __pyx_t_1 = (((PyObject *)__pyx_v_pyobj) != Py_None);
784 if (__pyx_t_1) {
785
786 /* "eorepo/eodefault.pyx":29
787 * """
788 * if pyobj is not None:
789 * return pyobj.eo # <<<<<<<<<<<<<<
790 * else:
791 * NULL
792 */
793 __pyx_r = __pyx_v_pyobj->eo;
794 goto __pyx_L0;
795 goto __pyx_L3;
796 }
797 /*else*/ {
798
799 /* "eorepo/eodefault.pyx":31
800 * return pyobj.eo
801 * else:
802 * NULL # <<<<<<<<<<<<<<
803 *
804 * def pytext_to_utf8(text):
805 */
806 NULL;
807 }
808 __pyx_L3:;
809
810 __pyx_r = 0;
811 __pyx_L0:;
812 __Pyx_RefNannyFinishContext();
813 return __pyx_r;
814}
815
816/* Python wrapper */
817static PyObject *__pyx_pw_6eorepo_9eodefault_3pytext_to_utf8(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/
818static PyMethodDef __pyx_mdef_6eorepo_9eodefault_3pytext_to_utf8 = {__Pyx_NAMESTR("pytext_to_utf8"), (PyCFunction)__pyx_pw_6eorepo_9eodefault_3pytext_to_utf8, METH_O, __Pyx_DOCSTR(0)};
819static PyObject *__pyx_pw_6eorepo_9eodefault_3pytext_to_utf8(PyObject *__pyx_self, PyObject *__pyx_v_text) {
820 PyObject *__pyx_r = 0;
821 __Pyx_RefNannyDeclarations
822 __Pyx_RefNannySetupContext("pytext_to_utf8 (wrapper)", 0);
823 __pyx_r = __pyx_pf_6eorepo_9eodefault_2pytext_to_utf8(__pyx_self, ((PyObject *)__pyx_v_text));
824 __Pyx_RefNannyFinishContext();
825 return __pyx_r;
826}
827
828/* "eorepo/eodefault.pyx":33
829 * NULL
830 *
831 * def pytext_to_utf8(text): # <<<<<<<<<<<<<<
832 *
833 * if not isinstance(text, basestring):
834 */
835
836static PyObject *__pyx_pf_6eorepo_9eodefault_2pytext_to_utf8(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_text) {
837 PyObject *__pyx_v_utf8_data = NULL;
838 PyObject *__pyx_r = NULL;
839 __Pyx_RefNannyDeclarations
840 PyObject *__pyx_t_1 = NULL;
841 int __pyx_t_2;
842 int __pyx_t_3;
843 PyObject *__pyx_t_4 = NULL;
844 int __pyx_lineno = 0;
845 const char *__pyx_filename = NULL;
846 int __pyx_clineno = 0;
847 __Pyx_RefNannySetupContext("pytext_to_utf8", 0);
848
849 /* "eorepo/eodefault.pyx":35
850 * def pytext_to_utf8(text):
851 *
852 * if not isinstance(text, basestring): # <<<<<<<<<<<<<<
853 * raise TypeError("Argument '%s' has incorrect type (expected %s, got %s)"%("text", "basestring", type(text).__name__))
854 * utf8_data = ""
855 */
856 __pyx_t_1 = __pyx_builtin_basestring;
857 __Pyx_INCREF(__pyx_t_1);
858 __pyx_t_2 = PyObject_IsInstance(__pyx_v_text, __pyx_t_1); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
859 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
860 __pyx_t_3 = (!__pyx_t_2);
861 if (__pyx_t_3) {
862
863 /* "eorepo/eodefault.pyx":36
864 *
865 * if not isinstance(text, basestring):
866 * raise TypeError("Argument '%s' has incorrect type (expected %s, got %s)"%("text", "basestring", type(text).__name__)) # <<<<<<<<<<<<<<
867 * utf8_data = ""
868 *
869 */
870 __pyx_t_1 = PyObject_GetAttr(((PyObject *)Py_TYPE(__pyx_v_text)), __pyx_n_s____name__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
871 __Pyx_GOTREF(__pyx_t_1);
872 __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
873 __Pyx_GOTREF(__pyx_t_4);
874 __Pyx_INCREF(((PyObject *)__pyx_n_s__text));
875 PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_n_s__text));
876 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__text));
877 __Pyx_INCREF(((PyObject *)__pyx_n_s__basestring));
878 PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_n_s__basestring));
879 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__basestring));
880 PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_1);
881 __Pyx_GIVEREF(__pyx_t_1);
882 __pyx_t_1 = 0;
883 __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_1), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
884 __Pyx_GOTREF(((PyObject *)__pyx_t_1));
885 __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
886 __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
887 __Pyx_GOTREF(__pyx_t_4);
888 PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_1));
889 __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
890 __pyx_t_1 = 0;
891 __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
892 __Pyx_GOTREF(__pyx_t_1);
893 __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
894 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
895 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
896 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
897 goto __pyx_L3;
898 }
899 __pyx_L3:;
900
901 /* "eorepo/eodefault.pyx":37
902 * if not isinstance(text, basestring):
903 * raise TypeError("Argument '%s' has incorrect type (expected %s, got %s)"%("text", "basestring", type(text).__name__))
904 * utf8_data = "" # <<<<<<<<<<<<<<
905 *
906 * if isinstance(text, unicode):
907 */
908 __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
909 __pyx_v_utf8_data = ((PyObject *)__pyx_kp_s_2);
910
911 /* "eorepo/eodefault.pyx":39
912 * utf8_data = ""
913 *
914 * if isinstance(text, unicode): # <<<<<<<<<<<<<<
915 * utf8_data = text.encode('UTF-8')
916 * elif isinstance(text, str):
917 */
918 __pyx_t_1 = ((PyObject *)((PyObject*)(&PyUnicode_Type)));
919 __Pyx_INCREF(__pyx_t_1);
920 __pyx_t_3 = __Pyx_TypeCheck(__pyx_v_text, __pyx_t_1);
921 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
922 if (__pyx_t_3) {
923
924 /* "eorepo/eodefault.pyx":40
925 *
926 * if isinstance(text, unicode):
927 * utf8_data = text.encode('UTF-8') # <<<<<<<<<<<<<<
928 * elif isinstance(text, str):
929 * utf8_data = text
930 */
931 __pyx_t_1 = PyObject_GetAttr(__pyx_v_text, __pyx_n_s__encode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
932 __Pyx_GOTREF(__pyx_t_1);
933 __pyx_t_4 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_4), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
934 __Pyx_GOTREF(__pyx_t_4);
935 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
936 __Pyx_DECREF(__pyx_v_utf8_data);
937 __pyx_v_utf8_data = __pyx_t_4;
938 __pyx_t_4 = 0;
939 goto __pyx_L4;
940 }
941
942 /* "eorepo/eodefault.pyx":41
943 * if isinstance(text, unicode):
944 * utf8_data = text.encode('UTF-8')
945 * elif isinstance(text, str): # <<<<<<<<<<<<<<
946 * utf8_data = text
947 *
948 */
949 __pyx_t_4 = ((PyObject *)((PyObject*)(&PyString_Type)));
950 __Pyx_INCREF(__pyx_t_4);
951 __pyx_t_3 = __Pyx_TypeCheck(__pyx_v_text, __pyx_t_4);
952 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
953 if (__pyx_t_3) {
954
955 /* "eorepo/eodefault.pyx":42
956 * utf8_data = text.encode('UTF-8')
957 * elif isinstance(text, str):
958 * utf8_data = text # <<<<<<<<<<<<<<
959 *
960 * return utf8_data
961 */
962 __Pyx_INCREF(__pyx_v_text);
963 __Pyx_DECREF(__pyx_v_utf8_data);
964 __pyx_v_utf8_data = __pyx_v_text;
965 goto __pyx_L4;
966 }
967 __pyx_L4:;
968
969 /* "eorepo/eodefault.pyx":44
970 * utf8_data = text
971 *
972 * return utf8_data # <<<<<<<<<<<<<<
973 *
974 * #===========
975 */
976 __Pyx_XDECREF(__pyx_r);
977 __Pyx_INCREF(__pyx_v_utf8_data);
978 __pyx_r = __pyx_v_utf8_data;
979 goto __pyx_L0;
980
981 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
982 goto __pyx_L0;
983 __pyx_L1_error:;
984 __Pyx_XDECREF(__pyx_t_1);
985 __Pyx_XDECREF(__pyx_t_4);
986 __Pyx_AddTraceback("eorepo.eodefault.pytext_to_utf8", __pyx_clineno, __pyx_lineno, __pyx_filename);
987 __pyx_r = NULL;
988 __pyx_L0:;
989 __Pyx_XDECREF(__pyx_v_utf8_data);
990 __Pyx_XGIVEREF(__pyx_r);
991 __Pyx_RefNannyFinishContext();
992 return __pyx_r;
993}
994
995/* Python wrapper */
996static int __pyx_pw_6eorepo_9eodefault_9EoDefault_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
997static int __pyx_pw_6eorepo_9eodefault_9EoDefault_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
998 int __pyx_r;
999 __Pyx_RefNannyDeclarations
1000 __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
1001 if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
1002 __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
1003 if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
1004 __pyx_r = __pyx_pf_6eorepo_9eodefault_9EoDefault___cinit__(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_v_self));
1005 __Pyx_RefNannyFinishContext();
1006 return __pyx_r;
1007}
1008
1009/* "eorepo/eodefault.pyx":51
1010 *
1011 * PY_EO_NAME = "python-eo"
1012 * def __cinit__(self): # <<<<<<<<<<<<<<
1013 * self.eo = NULL
1014 *
1015 */
1016
1017static int __pyx_pf_6eorepo_9eodefault_9EoDefault___cinit__(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self) {
1018 int __pyx_r;
1019 __Pyx_RefNannyDeclarations
1020 __Pyx_RefNannySetupContext("__cinit__", 0);
1021
1022 /* "eorepo/eodefault.pyx":52
1023 * PY_EO_NAME = "python-eo"
1024 * def __cinit__(self):
1025 * self.eo = NULL # <<<<<<<<<<<<<<
1026 *
1027 * def __dealloc__(self):
1028 */
1029 __pyx_v_self->eo = NULL;
1030
1031 __pyx_r = 0;
1032 __Pyx_RefNannyFinishContext();
1033 return __pyx_r;
1034}
1035
1036/* Python wrapper */
1037static void __pyx_pw_6eorepo_9eodefault_9EoDefault_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
1038static void __pyx_pw_6eorepo_9eodefault_9EoDefault_3__dealloc__(PyObject *__pyx_v_self) {
1039 __Pyx_RefNannyDeclarations
1040 __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
1041 __pyx_pf_6eorepo_9eodefault_9EoDefault_2__dealloc__(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_v_self));
1042 __Pyx_RefNannyFinishContext();
1043}
1044
1045/* "eorepo/eodefault.pyx":54
1046 * self.eo = NULL
1047 *
1048 * def __dealloc__(self): # <<<<<<<<<<<<<<
1049 * cdef Eo *eo
1050 * #self.print_func_name("__dealloc__base__")
1051 */
1052
1053static void __pyx_pf_6eorepo_9eodefault_9EoDefault_2__dealloc__(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self) {
1054 Eo *__pyx_v_eo;
1055 __Pyx_RefNannyDeclarations
1056 Eo *__pyx_t_1;
1057 int __pyx_t_2;
1058 PyObject *__pyx_t_3 = NULL;
1059 const char* __pyx_t_4;
1060 int __pyx_lineno = 0;
1061 const char *__pyx_filename = NULL;
1062 int __pyx_clineno = 0;
1063 __Pyx_RefNannySetupContext("__dealloc__", 0);
1064
1065 /* "eorepo/eodefault.pyx":58
1066 * #self.print_func_name("__dealloc__base__")
1067 *
1068 * eo = self.eo # <<<<<<<<<<<<<<
1069 * if eo == NULL:
1070 * return
1071 */
1072 __pyx_t_1 = __pyx_v_self->eo;
1073 __pyx_v_eo = __pyx_t_1;
1074
1075 /* "eorepo/eodefault.pyx":59
1076 *
1077 * eo = self.eo
1078 * if eo == NULL: # <<<<<<<<<<<<<<
1079 * return
1080 * #eodefault._eo_instance_get(self)
1081 */
1082 __pyx_t_2 = (__pyx_v_eo == NULL);
1083 if (__pyx_t_2) {
1084
1085 /* "eorepo/eodefault.pyx":60
1086 * eo = self.eo
1087 * if eo == NULL:
1088 * return # <<<<<<<<<<<<<<
1089 * #eodefault._eo_instance_get(self)
1090 * eodefault.eo_do(eo, eodefault.EO_BASE_BASE_ID + eodefault.EO_BASE_SUB_ID_DATA_DEL, <const_char_ptr>EoDefault.PY_EO_NAME)
1091 */
1092 goto __pyx_L0;
1093 goto __pyx_L3;
1094 }
1095 __pyx_L3:;
1096
1097 /* "eorepo/eodefault.pyx":62
1098 * return
1099 * #eodefault._eo_instance_get(self)
1100 * eodefault.eo_do(eo, eodefault.EO_BASE_BASE_ID + eodefault.EO_BASE_SUB_ID_DATA_DEL, <const_char_ptr>EoDefault.PY_EO_NAME) # <<<<<<<<<<<<<<
1101 * eodefault.eo_unref(eo)
1102 * self.eo = NULL
1103 */
1104 __pyx_t_3 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_6eorepo_9eodefault_EoDefault)), __pyx_n_s__PY_EO_NAME); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1105 __Pyx_GOTREF(__pyx_t_3);
1106 __pyx_t_4 = PyBytes_AsString(__pyx_t_3); if (unlikely((__pyx_t_4 == (const char*)NULL) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1107 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1108 eo_do(__pyx_v_eo, (EO_BASE_BASE_ID + EO_BASE_SUB_ID_DATA_DEL), ((const char*)__pyx_t_4));
1109
1110 /* "eorepo/eodefault.pyx":63
1111 * #eodefault._eo_instance_get(self)
1112 * eodefault.eo_do(eo, eodefault.EO_BASE_BASE_ID + eodefault.EO_BASE_SUB_ID_DATA_DEL, <const_char_ptr>EoDefault.PY_EO_NAME)
1113 * eodefault.eo_unref(eo) # <<<<<<<<<<<<<<
1114 * self.eo = NULL
1115 *
1116 */
1117 eo_unref(__pyx_v_eo);
1118
1119 /* "eorepo/eodefault.pyx":64
1120 * eodefault.eo_do(eo, eodefault.EO_BASE_BASE_ID + eodefault.EO_BASE_SUB_ID_DATA_DEL, <const_char_ptr>EoDefault.PY_EO_NAME)
1121 * eodefault.eo_unref(eo)
1122 * self.eo = NULL # <<<<<<<<<<<<<<
1123 *
1124 * # eo_del()
1125 */
1126 __pyx_v_self->eo = NULL;
1127
1128 goto __pyx_L0;
1129 __pyx_L1_error:;
1130 __Pyx_XDECREF(__pyx_t_3);
1131 __Pyx_AddTraceback("eorepo.eodefault.EoDefault.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename);
1132 __pyx_L0:;
1133 __Pyx_RefNannyFinishContext();
1134}
1135
1136/* Python wrapper */
1137static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_5delete(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
1138static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_5delete(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
1139 PyObject *__pyx_r = 0;
1140 __Pyx_RefNannyDeclarations
1141 __Pyx_RefNannySetupContext("delete (wrapper)", 0);
1142 __pyx_r = __pyx_pf_6eorepo_9eodefault_9EoDefault_4delete(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_v_self));
1143 __Pyx_RefNannyFinishContext();
1144 return __pyx_r;
1145}
1146
1147/* "eorepo/eodefault.pyx":67
1148 *
1149 * # eo_del()
1150 * def delete(self): # <<<<<<<<<<<<<<
1151 * self.ref()
1152 * eodefault.eo_del(self.eo)
1153 */
1154
1155static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_4delete(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self) {
1156 PyObject *__pyx_r = NULL;
1157 __Pyx_RefNannyDeclarations
1158 PyObject *__pyx_t_1 = NULL;
1159 PyObject *__pyx_t_2 = NULL;
1160 int __pyx_lineno = 0;
1161 const char *__pyx_filename = NULL;
1162 int __pyx_clineno = 0;
1163 __Pyx_RefNannySetupContext("delete", 0);
1164
1165 /* "eorepo/eodefault.pyx":68
1166 * # eo_del()
1167 * def delete(self):
1168 * self.ref() # <<<<<<<<<<<<<<
1169 * eodefault.eo_del(self.eo)
1170 *
1171 */
1172 __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__ref); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1173 __Pyx_GOTREF(__pyx_t_1);
1174 __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1175 __Pyx_GOTREF(__pyx_t_2);
1176 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1177 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
1178
1179 /* "eorepo/eodefault.pyx":69
1180 * def delete(self):
1181 * self.ref()
1182 * eodefault.eo_del(self.eo) # <<<<<<<<<<<<<<
1183 *
1184 * # eo_ref()
1185 */
1186 eo_del(__pyx_v_self->eo);
1187
1188 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1189 goto __pyx_L0;
1190 __pyx_L1_error:;
1191 __Pyx_XDECREF(__pyx_t_1);
1192 __Pyx_XDECREF(__pyx_t_2);
1193 __Pyx_AddTraceback("eorepo.eodefault.EoDefault.delete", __pyx_clineno, __pyx_lineno, __pyx_filename);
1194 __pyx_r = NULL;
1195 __pyx_L0:;
1196 __Pyx_XGIVEREF(__pyx_r);
1197 __Pyx_RefNannyFinishContext();
1198 return __pyx_r;
1199}
1200
1201/* Python wrapper */
1202static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_7ref(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
1203static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_7ref(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
1204 PyObject *__pyx_r = 0;
1205 __Pyx_RefNannyDeclarations
1206 __Pyx_RefNannySetupContext("ref (wrapper)", 0);
1207 __pyx_r = __pyx_pf_6eorepo_9eodefault_9EoDefault_6ref(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_v_self));
1208 __Pyx_RefNannyFinishContext();
1209 return __pyx_r;
1210}
1211
1212/* "eorepo/eodefault.pyx":72
1213 *
1214 * # eo_ref()
1215 * def ref(self): # <<<<<<<<<<<<<<
1216 * eodefault.eo_ref(self.eo)
1217 * return self
1218 */
1219
1220static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_6ref(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self) {
1221 PyObject *__pyx_r = NULL;
1222 __Pyx_RefNannyDeclarations
1223 __Pyx_RefNannySetupContext("ref", 0);
1224
1225 /* "eorepo/eodefault.pyx":73
1226 * # eo_ref()
1227 * def ref(self):
1228 * eodefault.eo_ref(self.eo) # <<<<<<<<<<<<<<
1229 * return self
1230 *
1231 */
1232 eo_ref(__pyx_v_self->eo);
1233
1234 /* "eorepo/eodefault.pyx":74
1235 * def ref(self):
1236 * eodefault.eo_ref(self.eo)
1237 * return self # <<<<<<<<<<<<<<
1238 *
1239 * def unref(self):
1240 */
1241 __Pyx_XDECREF(__pyx_r);
1242 __Pyx_INCREF(((PyObject *)__pyx_v_self));
1243 __pyx_r = ((PyObject *)__pyx_v_self);
1244 goto __pyx_L0;
1245
1246 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1247 __pyx_L0:;
1248 __Pyx_XGIVEREF(__pyx_r);
1249 __Pyx_RefNannyFinishContext();
1250 return __pyx_r;
1251}
1252
1253/* Python wrapper */
1254static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_9unref(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
1255static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_9unref(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
1256 PyObject *__pyx_r = 0;
1257 __Pyx_RefNannyDeclarations
1258 __Pyx_RefNannySetupContext("unref (wrapper)", 0);
1259 __pyx_r = __pyx_pf_6eorepo_9eodefault_9EoDefault_8unref(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_v_self));
1260 __Pyx_RefNannyFinishContext();
1261 return __pyx_r;
1262}
1263
1264/* "eorepo/eodefault.pyx":76
1265 * return self
1266 *
1267 * def unref(self): # <<<<<<<<<<<<<<
1268 * eodefault.eo_unref(self.eo)
1269 *
1270 */
1271
1272static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_8unref(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self) {
1273 PyObject *__pyx_r = NULL;
1274 __Pyx_RefNannyDeclarations
1275 __Pyx_RefNannySetupContext("unref", 0);
1276
1277 /* "eorepo/eodefault.pyx":77
1278 *
1279 * def unref(self):
1280 * eodefault.eo_unref(self.eo) # <<<<<<<<<<<<<<
1281 *
1282 * # eo_ref_get()
1283 */
1284 eo_unref(__pyx_v_self->eo);
1285
1286 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1287 __Pyx_XGIVEREF(__pyx_r);
1288 __Pyx_RefNannyFinishContext();
1289 return __pyx_r;
1290}
1291
1292/* Python wrapper */
1293static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_11ref_get(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
1294static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_11ref_get(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
1295 PyObject *__pyx_r = 0;
1296 __Pyx_RefNannyDeclarations
1297 __Pyx_RefNannySetupContext("ref_get (wrapper)", 0);
1298 __pyx_r = __pyx_pf_6eorepo_9eodefault_9EoDefault_10ref_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_v_self));
1299 __Pyx_RefNannyFinishContext();
1300 return __pyx_r;
1301}
1302
1303/* "eorepo/eodefault.pyx":80
1304 *
1305 * # eo_ref_get()
1306 * def ref_get(self): # <<<<<<<<<<<<<<
1307 * ref_count = <object>eodefault.eo_ref_get(self.eo)
1308 * return ref_count
1309 */
1310
1311static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_10ref_get(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self) {
1312 PyObject *__pyx_v_ref_count = NULL;
1313 PyObject *__pyx_r = NULL;
1314 __Pyx_RefNannyDeclarations
1315 PyObject *__pyx_t_1 = NULL;
1316 int __pyx_lineno = 0;
1317 const char *__pyx_filename = NULL;
1318 int __pyx_clineno = 0;
1319 __Pyx_RefNannySetupContext("ref_get", 0);
1320
1321 /* "eorepo/eodefault.pyx":81
1322 * # eo_ref_get()
1323 * def ref_get(self):
1324 * ref_count = <object>eodefault.eo_ref_get(self.eo) # <<<<<<<<<<<<<<
1325 * return ref_count
1326 *
1327 */
1328 __pyx_t_1 = PyInt_FromLong(eo_ref_get(__pyx_v_self->eo)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1329 __Pyx_GOTREF(__pyx_t_1);
1330 __Pyx_INCREF(((PyObject *)__pyx_t_1));
1331 __pyx_v_ref_count = __pyx_t_1;
1332 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1333
1334 /* "eorepo/eodefault.pyx":82
1335 * def ref_get(self):
1336 * ref_count = <object>eodefault.eo_ref_get(self.eo)
1337 * return ref_count # <<<<<<<<<<<<<<
1338 *
1339 * # eo_parent_get()
1340 */
1341 __Pyx_XDECREF(__pyx_r);
1342 __Pyx_INCREF(__pyx_v_ref_count);
1343 __pyx_r = __pyx_v_ref_count;
1344 goto __pyx_L0;
1345
1346 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1347 goto __pyx_L0;
1348 __pyx_L1_error:;
1349 __Pyx_XDECREF(__pyx_t_1);
1350 __Pyx_AddTraceback("eorepo.eodefault.EoDefault.ref_get", __pyx_clineno, __pyx_lineno, __pyx_filename);
1351 __pyx_r = NULL;
1352 __pyx_L0:;
1353 __Pyx_XDECREF(__pyx_v_ref_count);
1354 __Pyx_XGIVEREF(__pyx_r);
1355 __Pyx_RefNannyFinishContext();
1356 return __pyx_r;
1357}
1358
1359/* Python wrapper */
1360static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_13parent_get(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
1361static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_13parent_get(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
1362 PyObject *__pyx_r = 0;
1363 __Pyx_RefNannyDeclarations
1364 __Pyx_RefNannySetupContext("parent_get (wrapper)", 0);
1365 __pyx_r = __pyx_pf_6eorepo_9eodefault_9EoDefault_12parent_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_v_self));
1366 __Pyx_RefNannyFinishContext();
1367 return __pyx_r;
1368}
1369
1370/* "eorepo/eodefault.pyx":85
1371 *
1372 * # eo_parent_get()
1373 * def parent_get(self): # <<<<<<<<<<<<<<
1374 * cdef Eo * parent
1375 * cdef void * data
1376 */
1377
1378static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_12parent_get(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self) {
1379 Eo *__pyx_v_parent;
1380 void *__pyx_v_data;
1381 PyObject *__pyx_v_obj = NULL;
1382 PyObject *__pyx_r = NULL;
1383 __Pyx_RefNannyDeclarations
1384 PyObject *__pyx_t_1 = NULL;
1385 const char* __pyx_t_2;
1386 int __pyx_lineno = 0;
1387 const char *__pyx_filename = NULL;
1388 int __pyx_clineno = 0;
1389 __Pyx_RefNannySetupContext("parent_get", 0);
1390
1391 /* "eorepo/eodefault.pyx":88
1392 * cdef Eo * parent
1393 * cdef void * data
1394 * parent = eodefault.eo_parent_get(self.eo) # <<<<<<<<<<<<<<
1395 * eodefault.eo_do(parent, eodefault.EO_BASE_BASE_ID+eodefault.EO_BASE_SUB_ID_DATA_GET, <const_char_ptr>EoDefault.PY_EO_NAME, &data)
1396 * obj = <object>data
1397 */
1398 __pyx_v_parent = eo_parent_get(__pyx_v_self->eo);
1399
1400 /* "eorepo/eodefault.pyx":89
1401 * cdef void * data
1402 * parent = eodefault.eo_parent_get(self.eo)
1403 * eodefault.eo_do(parent, eodefault.EO_BASE_BASE_ID+eodefault.EO_BASE_SUB_ID_DATA_GET, <const_char_ptr>EoDefault.PY_EO_NAME, &data) # <<<<<<<<<<<<<<
1404 * obj = <object>data
1405 * return obj
1406 */
1407 __pyx_t_1 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_6eorepo_9eodefault_EoDefault)), __pyx_n_s__PY_EO_NAME); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1408 __Pyx_GOTREF(__pyx_t_1);
1409 __pyx_t_2 = PyBytes_AsString(__pyx_t_1); if (unlikely((__pyx_t_2 == (const char*)NULL) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1410 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1411 eo_do(__pyx_v_parent, (EO_BASE_BASE_ID + EO_BASE_SUB_ID_DATA_GET), ((const char*)__pyx_t_2), (&__pyx_v_data));
1412
1413 /* "eorepo/eodefault.pyx":90
1414 * parent = eodefault.eo_parent_get(self.eo)
1415 * eodefault.eo_do(parent, eodefault.EO_BASE_BASE_ID+eodefault.EO_BASE_SUB_ID_DATA_GET, <const_char_ptr>EoDefault.PY_EO_NAME, &data)
1416 * obj = <object>data # <<<<<<<<<<<<<<
1417 * return obj
1418 *
1419 */
1420 __Pyx_INCREF(((PyObject *)__pyx_v_data));
1421 __pyx_v_obj = ((PyObject *)__pyx_v_data);
1422
1423 /* "eorepo/eodefault.pyx":91
1424 * eodefault.eo_do(parent, eodefault.EO_BASE_BASE_ID+eodefault.EO_BASE_SUB_ID_DATA_GET, <const_char_ptr>EoDefault.PY_EO_NAME, &data)
1425 * obj = <object>data
1426 * return obj # <<<<<<<<<<<<<<
1427 *
1428 * # eo_class_name_get()
1429 */
1430 __Pyx_XDECREF(__pyx_r);
1431 __Pyx_INCREF(__pyx_v_obj);
1432 __pyx_r = __pyx_v_obj;
1433 goto __pyx_L0;
1434
1435 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1436 goto __pyx_L0;
1437 __pyx_L1_error:;
1438 __Pyx_XDECREF(__pyx_t_1);
1439 __Pyx_AddTraceback("eorepo.eodefault.EoDefault.parent_get", __pyx_clineno, __pyx_lineno, __pyx_filename);
1440 __pyx_r = NULL;
1441 __pyx_L0:;
1442 __Pyx_XDECREF(__pyx_v_obj);
1443 __Pyx_XGIVEREF(__pyx_r);
1444 __Pyx_RefNannyFinishContext();
1445 return __pyx_r;
1446}
1447
1448/* Python wrapper */
1449static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_15class_name_get(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
1450static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_15class_name_get(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
1451 PyObject *__pyx_r = 0;
1452 __Pyx_RefNannyDeclarations
1453 __Pyx_RefNannySetupContext("class_name_get (wrapper)", 0);
1454 __pyx_r = __pyx_pf_6eorepo_9eodefault_9EoDefault_14class_name_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_v_self));
1455 __Pyx_RefNannyFinishContext();
1456 return __pyx_r;
1457}
1458
1459/* "eorepo/eodefault.pyx":94
1460 *
1461 * # eo_class_name_get()
1462 * def class_name_get(self): # <<<<<<<<<<<<<<
1463 * name = eodefault.eo_class_name_get(eodefault.eo_class_get(self.eo))
1464 * return name
1465 */
1466
1467static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_14class_name_get(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self) {
1468 char *__pyx_v_name;
1469 PyObject *__pyx_r = NULL;
1470 __Pyx_RefNannyDeclarations
1471 PyObject *__pyx_t_1 = NULL;
1472 int __pyx_lineno = 0;
1473 const char *__pyx_filename = NULL;
1474 int __pyx_clineno = 0;
1475 __Pyx_RefNannySetupContext("class_name_get", 0);
1476
1477 /* "eorepo/eodefault.pyx":95
1478 * # eo_class_name_get()
1479 * def class_name_get(self):
1480 * name = eodefault.eo_class_name_get(eodefault.eo_class_get(self.eo)) # <<<<<<<<<<<<<<
1481 * return name
1482 *
1483 */
1484 __pyx_v_name = eo_class_name_get(eo_class_get(__pyx_v_self->eo));
1485
1486 /* "eorepo/eodefault.pyx":96
1487 * def class_name_get(self):
1488 * name = eodefault.eo_class_name_get(eodefault.eo_class_get(self.eo))
1489 * return name # <<<<<<<<<<<<<<
1490 *
1491 * def name_get(self):
1492 */
1493 __Pyx_XDECREF(__pyx_r);
1494 __pyx_t_1 = PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1495 __Pyx_GOTREF(((PyObject *)__pyx_t_1));
1496 __pyx_r = ((PyObject *)__pyx_t_1);
1497 __pyx_t_1 = 0;
1498 goto __pyx_L0;
1499
1500 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1501 goto __pyx_L0;
1502 __pyx_L1_error:;
1503 __Pyx_XDECREF(__pyx_t_1);
1504 __Pyx_AddTraceback("eorepo.eodefault.EoDefault.class_name_get", __pyx_clineno, __pyx_lineno, __pyx_filename);
1505 __pyx_r = NULL;
1506 __pyx_L0:;
1507 __Pyx_XGIVEREF(__pyx_r);
1508 __Pyx_RefNannyFinishContext();
1509 return __pyx_r;
1510}
1511
1512/* Python wrapper */
1513static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_17name_get(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
1514static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_17name_get(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
1515 PyObject *__pyx_r = 0;
1516 __Pyx_RefNannyDeclarations
1517 __Pyx_RefNannySetupContext("name_get (wrapper)", 0);
1518 __pyx_r = __pyx_pf_6eorepo_9eodefault_9EoDefault_16name_get(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_v_self));
1519 __Pyx_RefNannyFinishContext();
1520 return __pyx_r;
1521}
1522
1523/* "eorepo/eodefault.pyx":98
1524 * return name
1525 *
1526 * def name_get(self): # <<<<<<<<<<<<<<
1527 * return self.name
1528 * #this func can be called only from this (c-styled)module
1529 */
1530
1531static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_16name_get(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self) {
1532 PyObject *__pyx_r = NULL;
1533 __Pyx_RefNannyDeclarations
1534 __Pyx_RefNannySetupContext("name_get", 0);
1535
1536 /* "eorepo/eodefault.pyx":99
1537 *
1538 * def name_get(self):
1539 * return self.name # <<<<<<<<<<<<<<
1540 * #this func can be called only from this (c-styled)module
1541 * cdef int _eo_instance_set(self, Eo *eo):
1542 */
1543 __Pyx_XDECREF(__pyx_r);
1544 __Pyx_INCREF(__pyx_v_self->name);
1545 __pyx_r = __pyx_v_self->name;
1546 goto __pyx_L0;
1547
1548 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1549 __pyx_L0:;
1550 __Pyx_XGIVEREF(__pyx_r);
1551 __Pyx_RefNannyFinishContext();
1552 return __pyx_r;
1553}
1554
1555/* "eorepo/eodefault.pyx":101
1556 * return self.name
1557 * #this func can be called only from this (c-styled)module
1558 * cdef int _eo_instance_set(self, Eo *eo): # <<<<<<<<<<<<<<
1559 * assert self.eo == NULL, "Object must be clean"
1560 * self.eo = eo
1561 */
1562
1563static int __pyx_f_6eorepo_9eodefault_9EoDefault__eo_instance_set(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self, Eo *__pyx_v_eo) {
1564 int __pyx_r;
1565 __Pyx_RefNannyDeclarations
1566 PyObject *__pyx_t_1 = NULL;
1567 PyObject *__pyx_t_2 = NULL;
1568 int __pyx_lineno = 0;
1569 const char *__pyx_filename = NULL;
1570 int __pyx_clineno = 0;
1571 __Pyx_RefNannySetupContext("_eo_instance_set", 0);
1572
1573 /* "eorepo/eodefault.pyx":102
1574 * #this func can be called only from this (c-styled)module
1575 * cdef int _eo_instance_set(self, Eo *eo):
1576 * assert self.eo == NULL, "Object must be clean" # <<<<<<<<<<<<<<
1577 * self.eo = eo
1578 * self.name = self.__class__.__name__
1579 */
1580 #ifndef CYTHON_WITHOUT_ASSERTIONS
1581 if (unlikely(!(__pyx_v_self->eo == NULL))) {
1582 PyErr_SetObject(PyExc_AssertionError, ((PyObject *)__pyx_kp_s_5));
1583 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1584 }
1585 #endif
1586
1587 /* "eorepo/eodefault.pyx":103
1588 * cdef int _eo_instance_set(self, Eo *eo):
1589 * assert self.eo == NULL, "Object must be clean"
1590 * self.eo = eo # <<<<<<<<<<<<<<
1591 * self.name = self.__class__.__name__
1592 *
1593 */
1594 __pyx_v_self->eo = __pyx_v_eo;
1595
1596 /* "eorepo/eodefault.pyx":104
1597 * assert self.eo == NULL, "Object must be clean"
1598 * self.eo = eo
1599 * self.name = self.__class__.__name__ # <<<<<<<<<<<<<<
1600 *
1601 * # this func is main routine to add new object
1602 */
1603 __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s____class__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1604 __Pyx_GOTREF(__pyx_t_1);
1605 __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s____name__); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1606 __Pyx_GOTREF(__pyx_t_2);
1607 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1608 __Pyx_GIVEREF(__pyx_t_2);
1609 __Pyx_GOTREF(__pyx_v_self->name);
1610 __Pyx_DECREF(__pyx_v_self->name);
1611 __pyx_v_self->name = __pyx_t_2;
1612 __pyx_t_2 = 0;
1613
1614 __pyx_r = 0;
1615 goto __pyx_L0;
1616 __pyx_L1_error:;
1617 __Pyx_XDECREF(__pyx_t_1);
1618 __Pyx_XDECREF(__pyx_t_2);
1619 __Pyx_WriteUnraisable("eorepo.eodefault.EoDefault._eo_instance_set", __pyx_clineno, __pyx_lineno, __pyx_filename);
1620 __pyx_r = 0;
1621 __pyx_L0:;
1622 __Pyx_RefNannyFinishContext();
1623 return __pyx_r;
1624}
1625
1626/* "eorepo/eodefault.pyx":109
1627 * # using default constructor
1628 * # and connect C and Py objects
1629 * cpdef _eo_instance_set2(self, unsigned long long _kl, EoDefault p): # <<<<<<<<<<<<<<
1630 * cdef Eo_Class *kl = <Eo_Class*>_kl
1631 * cdef Eo *o = eodefault.eo_add(kl, eodefault._eo_instance_get(p))
1632 */
1633
1634static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_19_eo_instance_set2(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1635static PyObject *__pyx_f_6eorepo_9eodefault_9EoDefault__eo_instance_set2(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v__kl, struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_p, int __pyx_skip_dispatch) {
1636 Eo_Class *__pyx_v_kl;
1637 Eo *__pyx_v_o;
1638 PyObject *__pyx_r = NULL;
1639 __Pyx_RefNannyDeclarations
1640 PyObject *__pyx_t_1 = NULL;
1641 PyObject *__pyx_t_2 = NULL;
1642 PyObject *__pyx_t_3 = NULL;
1643 int __pyx_lineno = 0;
1644 const char *__pyx_filename = NULL;
1645 int __pyx_clineno = 0;
1646 __Pyx_RefNannySetupContext("_eo_instance_set2", 0);
1647 /* Check if called by wrapper */
1648 if (unlikely(__pyx_skip_dispatch)) ;
1649 /* Check if overriden in Python */
1650 else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
1651 __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s___eo_instance_set2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1652 __Pyx_GOTREF(__pyx_t_1);
1653 if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_6eorepo_9eodefault_9EoDefault_19_eo_instance_set2)) {
1654 __Pyx_XDECREF(__pyx_r);
1655 __pyx_t_2 = PyLong_FromUnsignedLongLong(__pyx_v__kl); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1656 __Pyx_GOTREF(__pyx_t_2);
1657 __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1658 __Pyx_GOTREF(__pyx_t_3);
1659 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
1660 __Pyx_GIVEREF(__pyx_t_2);
1661 __Pyx_INCREF(((PyObject *)__pyx_v_p));
1662 PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_p));
1663 __Pyx_GIVEREF(((PyObject *)__pyx_v_p));
1664 __pyx_t_2 = 0;
1665 __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1666 __Pyx_GOTREF(__pyx_t_2);
1667 __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
1668 __pyx_r = __pyx_t_2;
1669 __pyx_t_2 = 0;
1670 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1671 goto __pyx_L0;
1672 }
1673 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1674 }
1675
1676 /* "eorepo/eodefault.pyx":110
1677 * # and connect C and Py objects
1678 * cpdef _eo_instance_set2(self, unsigned long long _kl, EoDefault p):
1679 * cdef Eo_Class *kl = <Eo_Class*>_kl # <<<<<<<<<<<<<<
1680 * cdef Eo *o = eodefault.eo_add(kl, eodefault._eo_instance_get(p))
1681 * self._eo_instance_set(o)
1682 */
1683 __pyx_v_kl = ((Eo_Class *)__pyx_v__kl);
1684
1685 /* "eorepo/eodefault.pyx":111
1686 * cpdef _eo_instance_set2(self, unsigned long long _kl, EoDefault p):
1687 * cdef Eo_Class *kl = <Eo_Class*>_kl
1688 * cdef Eo *o = eodefault.eo_add(kl, eodefault._eo_instance_get(p)) # <<<<<<<<<<<<<<
1689 * self._eo_instance_set(o)
1690 * self._data_set(EoDefault.PY_EO_NAME, self)
1691 */
1692 __pyx_v_o = eo_add(__pyx_v_kl, __pyx_f_6eorepo_9eodefault__eo_instance_get(__pyx_v_p));
1693
1694 /* "eorepo/eodefault.pyx":112
1695 * cdef Eo_Class *kl = <Eo_Class*>_kl
1696 * cdef Eo *o = eodefault.eo_add(kl, eodefault._eo_instance_get(p))
1697 * self._eo_instance_set(o) # <<<<<<<<<<<<<<
1698 * self._data_set(EoDefault.PY_EO_NAME, self)
1699 *
1700 */
1701 ((struct __pyx_vtabstruct_6eorepo_9eodefault_EoDefault *)__pyx_v_self->__pyx_vtab)->_eo_instance_set(__pyx_v_self, __pyx_v_o);
1702
1703 /* "eorepo/eodefault.pyx":113
1704 * cdef Eo *o = eodefault.eo_add(kl, eodefault._eo_instance_get(p))
1705 * self._eo_instance_set(o)
1706 * self._data_set(EoDefault.PY_EO_NAME, self) # <<<<<<<<<<<<<<
1707 *
1708 * # this func can be called outside(this c-styled module), because receives Eo* as long.
1709 */
1710 __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s___data_set); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1711 __Pyx_GOTREF(__pyx_t_1);
1712 __pyx_t_2 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_6eorepo_9eodefault_EoDefault)), __pyx_n_s__PY_EO_NAME); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1713 __Pyx_GOTREF(__pyx_t_2);
1714 __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1715 __Pyx_GOTREF(__pyx_t_3);
1716 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
1717 __Pyx_GIVEREF(__pyx_t_2);
1718 __Pyx_INCREF(((PyObject *)__pyx_v_self));
1719 PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_self));
1720 __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
1721 __pyx_t_2 = 0;
1722 __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1723 __Pyx_GOTREF(__pyx_t_2);
1724 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1725 __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
1726 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
1727
1728 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1729 goto __pyx_L0;
1730 __pyx_L1_error:;
1731 __Pyx_XDECREF(__pyx_t_1);
1732 __Pyx_XDECREF(__pyx_t_2);
1733 __Pyx_XDECREF(__pyx_t_3);
1734 __Pyx_AddTraceback("eorepo.eodefault.EoDefault._eo_instance_set2", __pyx_clineno, __pyx_lineno, __pyx_filename);
1735 __pyx_r = 0;
1736 __pyx_L0:;
1737 __Pyx_XGIVEREF(__pyx_r);
1738 __Pyx_RefNannyFinishContext();
1739 return __pyx_r;
1740}
1741
1742/* Python wrapper */
1743static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_19_eo_instance_set2(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
1744static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_19_eo_instance_set2(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1745 unsigned PY_LONG_LONG __pyx_v__kl;
1746 struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_p = 0;
1747 PyObject *__pyx_r = 0;
1748 __Pyx_RefNannyDeclarations
1749 __Pyx_RefNannySetupContext("_eo_instance_set2 (wrapper)", 0);
1750 {
1751 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s___kl,&__pyx_n_s__p,0};
1752 PyObject* values[2] = {0,0};
1753 if (unlikely(__pyx_kwds)) {
1754 Py_ssize_t kw_args;
1755 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
1756 switch (pos_args) {
1757 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1758 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1759 case 0: break;
1760 default: goto __pyx_L5_argtuple_error;
1761 }
1762 kw_args = PyDict_Size(__pyx_kwds);
1763 switch (pos_args) {
1764 case 0:
1765 if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___kl)) != 0)) kw_args--;
1766 else goto __pyx_L5_argtuple_error;
1767 case 1:
1768 if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__p)) != 0)) kw_args--;
1769 else {
1770 __Pyx_RaiseArgtupleInvalid("_eo_instance_set2", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1771 }
1772 }
1773 if (unlikely(kw_args > 0)) {
1774 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_eo_instance_set2") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1775 }
1776 } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
1777 goto __pyx_L5_argtuple_error;
1778 } else {
1779 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1780 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
1781 }
1782 __pyx_v__kl = __Pyx_PyInt_AsUnsignedLongLong(values[0]); if (unlikely((__pyx_v__kl == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1783 __pyx_v_p = ((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)values[1]);
1784 }
1785 goto __pyx_L4_argument_unpacking_done;
1786 __pyx_L5_argtuple_error:;
1787 __Pyx_RaiseArgtupleInvalid("_eo_instance_set2", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1788 __pyx_L3_error:;
1789 __Pyx_AddTraceback("eorepo.eodefault.EoDefault._eo_instance_set2", __pyx_clineno, __pyx_lineno, __pyx_filename);
1790 __Pyx_RefNannyFinishContext();
1791 return NULL;
1792 __pyx_L4_argument_unpacking_done:;
1793 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_p), __pyx_ptype_6eorepo_9eodefault_EoDefault, 1, "p", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1794 __pyx_r = __pyx_pf_6eorepo_9eodefault_9EoDefault_18_eo_instance_set2(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_v_self), __pyx_v__kl, __pyx_v_p);
1795 goto __pyx_L0;
1796 __pyx_L1_error:;
1797 __pyx_r = NULL;
1798 __pyx_L0:;
1799 __Pyx_RefNannyFinishContext();
1800 return __pyx_r;
1801}
1802
1803/* "eorepo/eodefault.pyx":109
1804 * # using default constructor
1805 * # and connect C and Py objects
1806 * cpdef _eo_instance_set2(self, unsigned long long _kl, EoDefault p): # <<<<<<<<<<<<<<
1807 * cdef Eo_Class *kl = <Eo_Class*>_kl
1808 * cdef Eo *o = eodefault.eo_add(kl, eodefault._eo_instance_get(p))
1809 */
1810
1811static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_18_eo_instance_set2(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v__kl, struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_p) {
1812 PyObject *__pyx_r = NULL;
1813 __Pyx_RefNannyDeclarations
1814 PyObject *__pyx_t_1 = NULL;
1815 int __pyx_lineno = 0;
1816 const char *__pyx_filename = NULL;
1817 int __pyx_clineno = 0;
1818 __Pyx_RefNannySetupContext("_eo_instance_set2", 0);
1819 __Pyx_XDECREF(__pyx_r);
1820 __pyx_t_1 = ((struct __pyx_vtabstruct_6eorepo_9eodefault_EoDefault *)__pyx_v_self->__pyx_vtab)->_eo_instance_set2(__pyx_v_self, __pyx_v__kl, __pyx_v_p, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1821 __Pyx_GOTREF(__pyx_t_1);
1822 __pyx_r = __pyx_t_1;
1823 __pyx_t_1 = 0;
1824 goto __pyx_L0;
1825
1826 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1827 goto __pyx_L0;
1828 __pyx_L1_error:;
1829 __Pyx_XDECREF(__pyx_t_1);
1830 __Pyx_AddTraceback("eorepo.eodefault.EoDefault._eo_instance_set2", __pyx_clineno, __pyx_lineno, __pyx_filename);
1831 __pyx_r = NULL;
1832 __pyx_L0:;
1833 __Pyx_XGIVEREF(__pyx_r);
1834 __Pyx_RefNannyFinishContext();
1835 return __pyx_r;
1836}
1837
1838/* Python wrapper */
1839static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_21_eo_instance_set3(PyObject *__pyx_v_self, PyObject *__pyx_arg__eo); /*proto*/
1840static PyObject *__pyx_pw_6eorepo_9eodefault_9EoDefault_21_eo_instance_set3(PyObject *__pyx_v_self, PyObject *__pyx_arg__eo) {
1841 unsigned PY_LONG_LONG __pyx_v__eo;
1842 PyObject *__pyx_r = 0;
1843 __Pyx_RefNannyDeclarations
1844 __Pyx_RefNannySetupContext("_eo_instance_set3 (wrapper)", 0);
1845 assert(__pyx_arg__eo); {
1846 __pyx_v__eo = __Pyx_PyInt_AsUnsignedLongLong(__pyx_arg__eo); if (unlikely((__pyx_v__eo == (unsigned PY_LONG_LONG)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1847 }
1848 goto __pyx_L4_argument_unpacking_done;
1849 __pyx_L3_error:;
1850 __Pyx_AddTraceback("eorepo.eodefault.EoDefault._eo_instance_set3", __pyx_clineno, __pyx_lineno, __pyx_filename);
1851 __Pyx_RefNannyFinishContext();
1852 return NULL;
1853 __pyx_L4_argument_unpacking_done:;
1854 __pyx_r = __pyx_pf_6eorepo_9eodefault_9EoDefault_20_eo_instance_set3(((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)__pyx_v_self), ((unsigned PY_LONG_LONG)__pyx_v__eo));
1855 __Pyx_RefNannyFinishContext();
1856 return __pyx_r;
1857}
1858
1859/* "eorepo/eodefault.pyx":118
1860 * # it was added to be able to call eo_add_custom with different params
1861 * # and connect C and Py objects after it
1862 * def _eo_instance_set3(self, unsigned long long _eo): # <<<<<<<<<<<<<<
1863 * cdef Eo *o = <Eo*>_eo
1864 * self._eo_instance_set(o)
1865 */
1866
1867static PyObject *__pyx_pf_6eorepo_9eodefault_9EoDefault_20_eo_instance_set3(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self, unsigned PY_LONG_LONG __pyx_v__eo) {
1868 Eo *__pyx_v_o;
1869 PyObject *__pyx_r = NULL;
1870 __Pyx_RefNannyDeclarations
1871 PyObject *__pyx_t_1 = NULL;
1872 PyObject *__pyx_t_2 = NULL;
1873 PyObject *__pyx_t_3 = NULL;
1874 int __pyx_lineno = 0;
1875 const char *__pyx_filename = NULL;
1876 int __pyx_clineno = 0;
1877 __Pyx_RefNannySetupContext("_eo_instance_set3", 0);
1878
1879 /* "eorepo/eodefault.pyx":119
1880 * # and connect C and Py objects after it
1881 * def _eo_instance_set3(self, unsigned long long _eo):
1882 * cdef Eo *o = <Eo*>_eo # <<<<<<<<<<<<<<
1883 * self._eo_instance_set(o)
1884 * self._data_set(EoDefault.PY_EO_NAME, self)
1885 */
1886 __pyx_v_o = ((Eo *)__pyx_v__eo);
1887
1888 /* "eorepo/eodefault.pyx":120
1889 * def _eo_instance_set3(self, unsigned long long _eo):
1890 * cdef Eo *o = <Eo*>_eo
1891 * self._eo_instance_set(o) # <<<<<<<<<<<<<<
1892 * self._data_set(EoDefault.PY_EO_NAME, self)
1893 *
1894 */
1895 ((struct __pyx_vtabstruct_6eorepo_9eodefault_EoDefault *)__pyx_v_self->__pyx_vtab)->_eo_instance_set(__pyx_v_self, __pyx_v_o);
1896
1897 /* "eorepo/eodefault.pyx":121
1898 * cdef Eo *o = <Eo*>_eo
1899 * self._eo_instance_set(o)
1900 * self._data_set(EoDefault.PY_EO_NAME, self) # <<<<<<<<<<<<<<
1901 *
1902 * cdef int print_func_name(self, f_name):
1903 */
1904 __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s___data_set); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1905 __Pyx_GOTREF(__pyx_t_1);
1906 __pyx_t_2 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_6eorepo_9eodefault_EoDefault)), __pyx_n_s__PY_EO_NAME); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1907 __Pyx_GOTREF(__pyx_t_2);
1908 __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1909 __Pyx_GOTREF(__pyx_t_3);
1910 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
1911 __Pyx_GIVEREF(__pyx_t_2);
1912 __Pyx_INCREF(((PyObject *)__pyx_v_self));
1913 PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_self));
1914 __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
1915 __pyx_t_2 = 0;
1916 __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1917 __Pyx_GOTREF(__pyx_t_2);
1918 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
1919 __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
1920 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
1921
1922 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1923 goto __pyx_L0;
1924 __pyx_L1_error:;
1925 __Pyx_XDECREF(__pyx_t_1);
1926 __Pyx_XDECREF(__pyx_t_2);
1927 __Pyx_XDECREF(__pyx_t_3);
1928 __Pyx_AddTraceback("eorepo.eodefault.EoDefault._eo_instance_set3", __pyx_clineno, __pyx_lineno, __pyx_filename);
1929 __pyx_r = NULL;
1930 __pyx_L0:;
1931 __Pyx_XGIVEREF(__pyx_r);
1932 __Pyx_RefNannyFinishContext();
1933 return __pyx_r;
1934}
1935
1936/* "eorepo/eodefault.pyx":123
1937 * self._data_set(EoDefault.PY_EO_NAME, self)
1938 *
1939 * cdef int print_func_name(self, f_name): # <<<<<<<<<<<<<<
1940 * print self.__class__, " :: ", f_name, " :: ", sys.getsizeof(self)
1941 *
1942 */
1943
1944static int __pyx_f_6eorepo_9eodefault_9EoDefault_print_func_name(struct __pyx_obj_6eorepo_9eodefault_EoDefault *__pyx_v_self, PyObject *__pyx_v_f_name) {
1945 int __pyx_r;
1946 __Pyx_RefNannyDeclarations
1947 PyObject *__pyx_t_1 = NULL;
1948 PyObject *__pyx_t_2 = NULL;
1949 PyObject *__pyx_t_3 = NULL;
1950 PyObject *__pyx_t_4 = NULL;
1951 int __pyx_lineno = 0;
1952 const char *__pyx_filename = NULL;
1953 int __pyx_clineno = 0;
1954 __Pyx_RefNannySetupContext("print_func_name", 0);
1955
1956 /* "eorepo/eodefault.pyx":124
1957 *
1958 * cdef int print_func_name(self, f_name):
1959 * print self.__class__, " :: ", f_name, " :: ", sys.getsizeof(self) # <<<<<<<<<<<<<<
1960 *
1961 * #================================================================
1962 */
1963 __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s____class__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1964 __Pyx_GOTREF(__pyx_t_1);
1965 __pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__sys); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1966 __Pyx_GOTREF(__pyx_t_2);
1967 __pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__getsizeof); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1968 __Pyx_GOTREF(__pyx_t_3);
1969 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
1970 __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1971 __Pyx_GOTREF(__pyx_t_2);
1972 __Pyx_INCREF(((PyObject *)__pyx_v_self));
1973 PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self));
1974 __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
1975 __pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1976 __Pyx_GOTREF(__pyx_t_4);
1977 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
1978 __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
1979 __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1980 __Pyx_GOTREF(__pyx_t_2);
1981 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
1982 __Pyx_GIVEREF(__pyx_t_1);
1983 __Pyx_INCREF(((PyObject *)__pyx_kp_s_6));
1984 PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_kp_s_6));
1985 __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_6));
1986 __Pyx_INCREF(__pyx_v_f_name);
1987 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_f_name);
1988 __Pyx_GIVEREF(__pyx_v_f_name);
1989 __Pyx_INCREF(((PyObject *)__pyx_kp_s_6));
1990 PyTuple_SET_ITEM(__pyx_t_2, 3, ((PyObject *)__pyx_kp_s_6));
1991 __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_6));
1992 PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_t_4);
1993 __Pyx_GIVEREF(__pyx_t_4);
1994 __pyx_t_1 = 0;
1995 __pyx_t_4 = 0;
1996 if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1997 __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
1998
1999 __pyx_r = 0;
2000 goto __pyx_L0;
2001 __pyx_L1_error:;
2002 __Pyx_XDECREF(__pyx_t_1);
2003 __Pyx_XDECREF(__pyx_t_2);
2004 __Pyx_XDECREF(__pyx_t_3);
2005 __Pyx_XDECREF(__pyx_t_4);
2006 __Pyx_WriteUnraisable("eorepo.eodefault.EoDefault.print_func_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
2007 __pyx_r = 0;
2008 __pyx_L0:;
2009 __Pyx_RefNannyFinishContext();
2010 return __pyx_r;
2011}
2012
2013/* "eorepo/eodefault.pyx":128
2014 * #================================================================
2015 *
2016 * cdef Eina_Bool _object_callback(void *data, Eo *o, # <<<<<<<<<<<<<<
2017 * Eo_Event_Description *desc, void *event_info):
2018 * cdef EoDefault obj
2019 */
2020
2021static Eina_Bool __pyx_f_6eorepo_9eodefault__object_callback(void *__pyx_v_data, Eo *__pyx_v_o, CYTHON_UNUSED Eo_Event_Description *__pyx_v_desc, CYTHON_UNUSED void *__pyx_v_event_info) {
2022 void *__pyx_v_c_py_obj;
2023 PyObject *__pyx_v_py_obj = NULL;
2024 PyObject *__pyx_v_cb_struct = NULL;
2025 PyObject *__pyx_v_f = NULL;
2026 PyObject *__pyx_v_cb_data = NULL;
2027 PyObject *__pyx_v_res = NULL;
2028 Eina_Bool __pyx_r;
2029 __Pyx_RefNannyDeclarations
2030 PyObject *__pyx_t_1 = NULL;
2031 const char* __pyx_t_2;
2032 PyObject *__pyx_t_3 = NULL;
2033 int __pyx_t_4;
2034 int __pyx_lineno = 0;
2035 const char *__pyx_filename = NULL;
2036 int __pyx_clineno = 0;
2037 __Pyx_RefNannySetupContext("_object_callback", 0);
2038
2039 /* "eorepo/eodefault.pyx":135
2040 * #passing "this" object to callback function
2041 * cdef void * c_py_obj
2042 * eodefault.eo_do(o, eodefault.EO_BASE_BASE_ID+eodefault.EO_BASE_SUB_ID_DATA_GET, <const_char_ptr>EoDefault.PY_EO_NAME, &c_py_obj) # <<<<<<<<<<<<<<
2043 * py_obj = <object>c_py_obj
2044 *
2045 */
2046 __pyx_t_1 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_6eorepo_9eodefault_EoDefault)), __pyx_n_s__PY_EO_NAME); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2047 __Pyx_GOTREF(__pyx_t_1);
2048 __pyx_t_2 = PyBytes_AsString(__pyx_t_1); if (unlikely((__pyx_t_2 == (const char*)NULL) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2049 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2050 eo_do(__pyx_v_o, (EO_BASE_BASE_ID + EO_BASE_SUB_ID_DATA_GET), ((const char*)__pyx_t_2), (&__pyx_v_c_py_obj));
2051
2052 /* "eorepo/eodefault.pyx":136
2053 * cdef void * c_py_obj
2054 * eodefault.eo_do(o, eodefault.EO_BASE_BASE_ID+eodefault.EO_BASE_SUB_ID_DATA_GET, <const_char_ptr>EoDefault.PY_EO_NAME, &c_py_obj)
2055 * py_obj = <object>c_py_obj # <<<<<<<<<<<<<<
2056 *
2057 * #cb_struct is tuple: (func, data)
2058 */
2059 __Pyx_INCREF(((PyObject *)__pyx_v_c_py_obj));
2060 __pyx_v_py_obj = ((PyObject *)__pyx_v_c_py_obj);
2061
2062 /* "eorepo/eodefault.pyx":139
2063 *
2064 * #cb_struct is tuple: (func, data)
2065 * cb_struct = <object>data # <<<<<<<<<<<<<<
2066 * f = cb_struct[0]
2067 * cb_data = cb_struct[1]
2068 */
2069 __Pyx_INCREF(((PyObject *)__pyx_v_data));
2070 __pyx_v_cb_struct = ((PyObject *)__pyx_v_data);
2071
2072 /* "eorepo/eodefault.pyx":140
2073 * #cb_struct is tuple: (func, data)
2074 * cb_struct = <object>data
2075 * f = cb_struct[0] # <<<<<<<<<<<<<<
2076 * cb_data = cb_struct[1]
2077 * res = f(py_obj, cb_data)
2078 */
2079 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_cb_struct, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2080 __Pyx_GOTREF(__pyx_t_1);
2081 __pyx_v_f = __pyx_t_1;
2082 __pyx_t_1 = 0;
2083
2084 /* "eorepo/eodefault.pyx":141
2085 * cb_struct = <object>data
2086 * f = cb_struct[0]
2087 * cb_data = cb_struct[1] # <<<<<<<<<<<<<<
2088 * res = f(py_obj, cb_data)
2089 *
2090 */
2091 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_cb_struct, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2092 __Pyx_GOTREF(__pyx_t_1);
2093 __pyx_v_cb_data = __pyx_t_1;
2094 __pyx_t_1 = 0;
2095
2096 /* "eorepo/eodefault.pyx":142
2097 * f = cb_struct[0]
2098 * cb_data = cb_struct[1]
2099 * res = f(py_obj, cb_data) # <<<<<<<<<<<<<<
2100 *
2101 * if res == CALLBACK_STOP:
2102 */
2103 __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2104 __Pyx_GOTREF(__pyx_t_1);
2105 __Pyx_INCREF(__pyx_v_py_obj);
2106 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_py_obj);
2107 __Pyx_GIVEREF(__pyx_v_py_obj);
2108 __Pyx_INCREF(__pyx_v_cb_data);
2109 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_cb_data);
2110 __Pyx_GIVEREF(__pyx_v_cb_data);
2111 __pyx_t_3 = PyObject_Call(__pyx_v_f, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2112 __Pyx_GOTREF(__pyx_t_3);
2113 __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
2114 __pyx_v_res = __pyx_t_3;
2115 __pyx_t_3 = 0;
2116
2117 /* "eorepo/eodefault.pyx":144
2118 * res = f(py_obj, cb_data)
2119 *
2120 * if res == CALLBACK_STOP: # <<<<<<<<<<<<<<
2121 * return EINA_FALSE
2122 * else:
2123 */
2124 __pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__CALLBACK_STOP); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2125 __Pyx_GOTREF(__pyx_t_3);
2126 __pyx_t_1 = PyObject_RichCompare(__pyx_v_res, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2127 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2128 __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2129 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2130 if (__pyx_t_4) {
2131
2132 /* "eorepo/eodefault.pyx":145
2133 *
2134 * if res == CALLBACK_STOP:
2135 * return EINA_FALSE # <<<<<<<<<<<<<<
2136 * else:
2137 * return EINA_TRUE
2138 */
2139 __pyx_r = EINA_FALSE;
2140 goto __pyx_L0;
2141 goto __pyx_L3;
2142 }
2143 /*else*/ {
2144
2145 /* "eorepo/eodefault.pyx":147
2146 * return EINA_FALSE
2147 * else:
2148 * return EINA_TRUE # <<<<<<<<<<<<<<
2149 *
2150 *
2151 */
2152 __pyx_r = EINA_TRUE;
2153 goto __pyx_L0;
2154 }
2155 __pyx_L3:;
2156
2157 __pyx_r = 0;
2158 goto __pyx_L0;
2159 __pyx_L1_error:;
2160 __Pyx_XDECREF(__pyx_t_1);
2161 __Pyx_XDECREF(__pyx_t_3);
2162 __Pyx_WriteUnraisable("eorepo.eodefault._object_callback", __pyx_clineno, __pyx_lineno, __pyx_filename);
2163 __pyx_r = 0;
2164 __pyx_L0:;
2165 __Pyx_XDECREF(__pyx_v_py_obj);
2166 __Pyx_XDECREF(__pyx_v_cb_struct);
2167 __Pyx_XDECREF(__pyx_v_f);
2168 __Pyx_XDECREF(__pyx_v_cb_data);
2169 __Pyx_XDECREF(__pyx_v_res);
2170 __Pyx_RefNannyFinishContext();
2171 return __pyx_r;
2172}
2173static struct __pyx_vtabstruct_6eorepo_9eodefault_EoDefault __pyx_vtable_6eorepo_9eodefault_EoDefault;
2174
2175static PyObject *__pyx_tp_new_6eorepo_9eodefault_EoDefault(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
2176 struct __pyx_obj_6eorepo_9eodefault_EoDefault *p;
2177 PyObject *o = (*t->tp_alloc)(t, 0);
2178 if (!o) return 0;
2179 p = ((struct __pyx_obj_6eorepo_9eodefault_EoDefault *)o);
2180 p->__pyx_vtab = __pyx_vtabptr_6eorepo_9eodefault_EoDefault;
2181 p->name = Py_None; Py_INCREF(Py_None);
2182 if (__pyx_pw_6eorepo_9eodefault_9EoDefault_1__cinit__(o, __pyx_empty_tuple, NULL) < 0) {
2183 Py_DECREF(o); o = 0;
2184 }
2185 return o;
2186}
2187
2188static void __pyx_tp_dealloc_6eorepo_9eodefault_EoDefault(PyObject *o) {
2189 struct __pyx_obj_6eorepo_9eodefault_EoDefault *p = (struct __pyx_obj_6eorepo_9eodefault_EoDefault *)o;
2190 {
2191 PyObject *etype, *eval, *etb;
2192 PyErr_Fetch(&etype, &eval, &etb);
2193 ++Py_REFCNT(o);
2194 __pyx_pw_6eorepo_9eodefault_9EoDefault_3__dealloc__(o);
2195 if (PyErr_Occurred()) PyErr_WriteUnraisable(o);
2196 --Py_REFCNT(o);
2197 PyErr_Restore(etype, eval, etb);
2198 }
2199 Py_CLEAR(p->name);
2200 (*Py_TYPE(o)->tp_free)(o);
2201}
2202
2203static int __pyx_tp_traverse_6eorepo_9eodefault_EoDefault(PyObject *o, visitproc v, void *a) {
2204 int e;
2205 struct __pyx_obj_6eorepo_9eodefault_EoDefault *p = (struct __pyx_obj_6eorepo_9eodefault_EoDefault *)o;
2206 if (p->name) {
2207 e = (*v)(p->name, a); if (e) return e;
2208 }
2209 return 0;
2210}
2211
2212static int __pyx_tp_clear_6eorepo_9eodefault_EoDefault(PyObject *o) {
2213 struct __pyx_obj_6eorepo_9eodefault_EoDefault *p = (struct __pyx_obj_6eorepo_9eodefault_EoDefault *)o;
2214 PyObject* tmp;
2215 tmp = ((PyObject*)p->name);
2216 p->name = Py_None; Py_INCREF(Py_None);
2217 Py_XDECREF(tmp);
2218 return 0;
2219}
2220
2221static PyMethodDef __pyx_methods_6eorepo_9eodefault_EoDefault[] = {
2222 {__Pyx_NAMESTR("delete"), (PyCFunction)__pyx_pw_6eorepo_9eodefault_9EoDefault_5delete, METH_NOARGS, __Pyx_DOCSTR(0)},
2223 {__Pyx_NAMESTR("ref"), (PyCFunction)__pyx_pw_6eorepo_9eodefault_9EoDefault_7ref, METH_NOARGS, __Pyx_DOCSTR(0)},
2224 {__Pyx_NAMESTR("unref"), (PyCFunction)__pyx_pw_6eorepo_9eodefault_9EoDefault_9unref, METH_NOARGS, __Pyx_DOCSTR(0)},
2225 {__Pyx_NAMESTR("ref_get"), (PyCFunction)__pyx_pw_6eorepo_9eodefault_9EoDefault_11ref_get, METH_NOARGS, __Pyx_DOCSTR(0)},
2226 {__Pyx_NAMESTR("parent_get"), (PyCFunction)__pyx_pw_6eorepo_9eodefault_9EoDefault_13parent_get, METH_NOARGS, __Pyx_DOCSTR(0)},
2227 {__Pyx_NAMESTR("class_name_get"), (PyCFunction)__pyx_pw_6eorepo_9eodefault_9EoDefault_15class_name_get, METH_NOARGS, __Pyx_DOCSTR(0)},
2228 {__Pyx_NAMESTR("name_get"), (PyCFunction)__pyx_pw_6eorepo_9eodefault_9EoDefault_17name_get, METH_NOARGS, __Pyx_DOCSTR(0)},
2229 {__Pyx_NAMESTR("_eo_instance_set2"), (PyCFunction)__pyx_pw_6eorepo_9eodefault_9EoDefault_19_eo_instance_set2, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
2230 {__Pyx_NAMESTR("_eo_instance_set3"), (PyCFunction)__pyx_pw_6eorepo_9eodefault_9EoDefault_21_eo_instance_set3, METH_O, __Pyx_DOCSTR(0)},
2231 {0, 0, 0, 0}
2232};
2233
2234static PyNumberMethods __pyx_tp_as_number_EoDefault = {
2235 0, /*nb_add*/
2236 0, /*nb_subtract*/
2237 0, /*nb_multiply*/
2238 #if PY_MAJOR_VERSION < 3
2239 0, /*nb_divide*/
2240 #endif
2241 0, /*nb_remainder*/
2242 0, /*nb_divmod*/
2243 0, /*nb_power*/
2244 0, /*nb_negative*/
2245 0, /*nb_positive*/
2246 0, /*nb_absolute*/
2247 0, /*nb_nonzero*/
2248 0, /*nb_invert*/
2249 0, /*nb_lshift*/
2250 0, /*nb_rshift*/
2251 0, /*nb_and*/
2252 0, /*nb_xor*/
2253 0, /*nb_or*/
2254 #if PY_MAJOR_VERSION < 3
2255 0, /*nb_coerce*/
2256 #endif
2257 0, /*nb_int*/
2258 #if PY_MAJOR_VERSION < 3
2259 0, /*nb_long*/
2260 #else
2261 0, /*reserved*/
2262 #endif
2263 0, /*nb_float*/
2264 #if PY_MAJOR_VERSION < 3
2265 0, /*nb_oct*/
2266 #endif
2267 #if PY_MAJOR_VERSION < 3
2268 0, /*nb_hex*/
2269 #endif
2270 0, /*nb_inplace_add*/
2271 0, /*nb_inplace_subtract*/
2272 0, /*nb_inplace_multiply*/
2273 #if PY_MAJOR_VERSION < 3
2274 0, /*nb_inplace_divide*/
2275 #endif
2276 0, /*nb_inplace_remainder*/
2277 0, /*nb_inplace_power*/
2278 0, /*nb_inplace_lshift*/
2279 0, /*nb_inplace_rshift*/
2280 0, /*nb_inplace_and*/
2281 0, /*nb_inplace_xor*/
2282 0, /*nb_inplace_or*/
2283 0, /*nb_floor_divide*/
2284 0, /*nb_true_divide*/
2285 0, /*nb_inplace_floor_divide*/
2286 0, /*nb_inplace_true_divide*/
2287 #if PY_VERSION_HEX >= 0x02050000
2288 0, /*nb_index*/
2289 #endif
2290};
2291
2292static PySequenceMethods __pyx_tp_as_sequence_EoDefault = {
2293 0, /*sq_length*/
2294 0, /*sq_concat*/
2295 0, /*sq_repeat*/
2296 0, /*sq_item*/
2297 0, /*sq_slice*/
2298 0, /*sq_ass_item*/
2299 0, /*sq_ass_slice*/
2300 0, /*sq_contains*/
2301 0, /*sq_inplace_concat*/
2302 0, /*sq_inplace_repeat*/
2303};
2304
2305static PyMappingMethods __pyx_tp_as_mapping_EoDefault = {
2306 0, /*mp_length*/
2307 0, /*mp_subscript*/
2308 0, /*mp_ass_subscript*/
2309};
2310
2311static PyBufferProcs __pyx_tp_as_buffer_EoDefault = {
2312 #if PY_MAJOR_VERSION < 3
2313 0, /*bf_getreadbuffer*/
2314 #endif
2315 #if PY_MAJOR_VERSION < 3
2316 0, /*bf_getwritebuffer*/
2317 #endif
2318 #if PY_MAJOR_VERSION < 3
2319 0, /*bf_getsegcount*/
2320 #endif
2321 #if PY_MAJOR_VERSION < 3
2322 0, /*bf_getcharbuffer*/
2323 #endif
2324 #if PY_VERSION_HEX >= 0x02060000
2325 0, /*bf_getbuffer*/
2326 #endif
2327 #if PY_VERSION_HEX >= 0x02060000
2328 0, /*bf_releasebuffer*/
2329 #endif
2330};
2331
2332static PyTypeObject __pyx_type_6eorepo_9eodefault_EoDefault = {
2333 PyVarObject_HEAD_INIT(0, 0)
2334 __Pyx_NAMESTR("eorepo.eodefault.EoDefault"), /*tp_name*/
2335 sizeof(struct __pyx_obj_6eorepo_9eodefault_EoDefault), /*tp_basicsize*/
2336 0, /*tp_itemsize*/
2337 __pyx_tp_dealloc_6eorepo_9eodefault_EoDefault, /*tp_dealloc*/
2338 0, /*tp_print*/
2339 0, /*tp_getattr*/
2340 0, /*tp_setattr*/
2341 #if PY_MAJOR_VERSION < 3
2342 0, /*tp_compare*/
2343 #else
2344 0, /*reserved*/
2345 #endif
2346 0, /*tp_repr*/
2347 &__pyx_tp_as_number_EoDefault, /*tp_as_number*/
2348 &__pyx_tp_as_sequence_EoDefault, /*tp_as_sequence*/
2349 &__pyx_tp_as_mapping_EoDefault, /*tp_as_mapping*/
2350 0, /*tp_hash*/
2351 0, /*tp_call*/
2352 0, /*tp_str*/
2353 0, /*tp_getattro*/
2354 0, /*tp_setattro*/
2355 &__pyx_tp_as_buffer_EoDefault, /*tp_as_buffer*/
2356 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
2357 0, /*tp_doc*/
2358 __pyx_tp_traverse_6eorepo_9eodefault_EoDefault, /*tp_traverse*/
2359 __pyx_tp_clear_6eorepo_9eodefault_EoDefault, /*tp_clear*/
2360 0, /*tp_richcompare*/
2361 0, /*tp_weaklistoffset*/
2362 0, /*tp_iter*/
2363 0, /*tp_iternext*/
2364 __pyx_methods_6eorepo_9eodefault_EoDefault, /*tp_methods*/
2365 0, /*tp_members*/
2366 0, /*tp_getset*/
2367 0, /*tp_base*/
2368 0, /*tp_dict*/
2369 0, /*tp_descr_get*/
2370 0, /*tp_descr_set*/
2371 0, /*tp_dictoffset*/
2372 0, /*tp_init*/
2373 0, /*tp_alloc*/
2374 __pyx_tp_new_6eorepo_9eodefault_EoDefault, /*tp_new*/
2375 0, /*tp_free*/
2376 0, /*tp_is_gc*/
2377 0, /*tp_bases*/
2378 0, /*tp_mro*/
2379 0, /*tp_cache*/
2380 0, /*tp_subclasses*/
2381 0, /*tp_weaklist*/
2382 0, /*tp_del*/
2383 #if PY_VERSION_HEX >= 0x02060000
2384 0, /*tp_version_tag*/
2385 #endif
2386};
2387
2388static PyMethodDef __pyx_methods[] = {
2389 {0, 0, 0, 0}
2390};
2391
2392#if PY_MAJOR_VERSION >= 3
2393static struct PyModuleDef __pyx_moduledef = {
2394 PyModuleDef_HEAD_INIT,
2395 __Pyx_NAMESTR("eodefault"),
2396 0, /* m_doc */
2397 -1, /* m_size */
2398 __pyx_methods /* m_methods */,
2399 NULL, /* m_reload */
2400 NULL, /* m_traverse */
2401 NULL, /* m_clear */
2402 NULL /* m_free */
2403};
2404#endif
2405
2406static __Pyx_StringTabEntry __pyx_string_tab[] = {
2407 {&__pyx_kp_s_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 0, 1, 0},
2408 {&__pyx_kp_s_12, __pyx_k_12, sizeof(__pyx_k_12), 0, 0, 1, 0},
2409 {&__pyx_kp_s_2, __pyx_k_2, sizeof(__pyx_k_2), 0, 0, 1, 0},
2410 {&__pyx_kp_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 0},
2411 {&__pyx_kp_s_5, __pyx_k_5, sizeof(__pyx_k_5), 0, 0, 1, 0},
2412 {&__pyx_kp_s_6, __pyx_k_6, sizeof(__pyx_k_6), 0, 0, 1, 0},
2413 {&__pyx_kp_s_8, __pyx_k_8, sizeof(__pyx_k_8), 0, 0, 1, 0},
2414 {&__pyx_n_s_9, __pyx_k_9, sizeof(__pyx_k_9), 0, 0, 1, 1},
2415 {&__pyx_n_s__CALLBACK_STOP, __pyx_k__CALLBACK_STOP, sizeof(__pyx_k__CALLBACK_STOP), 0, 0, 1, 1},
2416 {&__pyx_n_s__PRIORITY_AFTER, __pyx_k__PRIORITY_AFTER, sizeof(__pyx_k__PRIORITY_AFTER), 0, 0, 1, 1},
2417 {&__pyx_n_s__PRIORITY_BEFORE, __pyx_k__PRIORITY_BEFORE, sizeof(__pyx_k__PRIORITY_BEFORE), 0, 0, 1, 1},
2418 {&__pyx_n_s__PRIORITY_DEFAULT, __pyx_k__PRIORITY_DEFAULT, sizeof(__pyx_k__PRIORITY_DEFAULT), 0, 0, 1, 1},
2419 {&__pyx_n_s__PY_EO_NAME, __pyx_k__PY_EO_NAME, sizeof(__pyx_k__PY_EO_NAME), 0, 0, 1, 1},
2420 {&__pyx_n_s__TypeError, __pyx_k__TypeError, sizeof(__pyx_k__TypeError), 0, 0, 1, 1},
2421 {&__pyx_n_s____class__, __pyx_k____class__, sizeof(__pyx_k____class__), 0, 0, 1, 1},
2422 {&__pyx_n_s____main__, __pyx_k____main__, sizeof(__pyx_k____main__), 0, 0, 1, 1},
2423 {&__pyx_n_s____name__, __pyx_k____name__, sizeof(__pyx_k____name__), 0, 0, 1, 1},
2424 {&__pyx_n_s____test__, __pyx_k____test__, sizeof(__pyx_k____test__), 0, 0, 1, 1},
2425 {&__pyx_n_s___data_set, __pyx_k___data_set, sizeof(__pyx_k___data_set), 0, 0, 1, 1},
2426 {&__pyx_n_s___eo_instance_set2, __pyx_k___eo_instance_set2, sizeof(__pyx_k___eo_instance_set2), 0, 0, 1, 1},
2427 {&__pyx_n_s___kl, __pyx_k___kl, sizeof(__pyx_k___kl), 0, 0, 1, 1},
2428 {&__pyx_n_s__basestring, __pyx_k__basestring, sizeof(__pyx_k__basestring), 0, 0, 1, 1},
2429 {&__pyx_n_s__encode, __pyx_k__encode, sizeof(__pyx_k__encode), 0, 0, 1, 1},
2430 {&__pyx_n_s__getsizeof, __pyx_k__getsizeof, sizeof(__pyx_k__getsizeof), 0, 0, 1, 1},
2431 {&__pyx_n_s__init, __pyx_k__init, sizeof(__pyx_k__init), 0, 0, 1, 1},
2432 {&__pyx_n_s__operator, __pyx_k__operator, sizeof(__pyx_k__operator), 0, 0, 1, 1},
2433 {&__pyx_n_s__p, __pyx_k__p, sizeof(__pyx_k__p), 0, 0, 1, 1},
2434 {&__pyx_n_s__pytext_to_utf8, __pyx_k__pytext_to_utf8, sizeof(__pyx_k__pytext_to_utf8), 0, 0, 1, 1},
2435 {&__pyx_n_s__ref, __pyx_k__ref, sizeof(__pyx_k__ref), 0, 0, 1, 1},
2436 {&__pyx_n_s__sys, __pyx_k__sys, sizeof(__pyx_k__sys), 0, 0, 1, 1},
2437 {&__pyx_n_s__text, __pyx_k__text, sizeof(__pyx_k__text), 0, 0, 1, 1},
2438 {&__pyx_n_s__utf8_data, __pyx_k__utf8_data, sizeof(__pyx_k__utf8_data), 0, 0, 1, 1},
2439 {0, 0, 0, 0, 0, 0, 0}
2440};
2441static int __Pyx_InitCachedBuiltins(void) {
2442 __pyx_builtin_basestring = __Pyx_GetName(__pyx_b, __pyx_n_s__basestring); if (!__pyx_builtin_basestring) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2443 __pyx_builtin_TypeError = __Pyx_GetName(__pyx_b, __pyx_n_s__TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2444 return 0;
2445 __pyx_L1_error:;
2446 return -1;
2447}
2448
2449static int __Pyx_InitCachedConstants(void) {
2450 __Pyx_RefNannyDeclarations
2451 __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
2452
2453 /* "eorepo/eodefault.pyx":40
2454 *
2455 * if isinstance(text, unicode):
2456 * utf8_data = text.encode('UTF-8') # <<<<<<<<<<<<<<
2457 * elif isinstance(text, str):
2458 * utf8_data = text
2459 */
2460 __pyx_k_tuple_4 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2461 __Pyx_GOTREF(__pyx_k_tuple_4);
2462 __Pyx_INCREF(((PyObject *)__pyx_kp_s_3));
2463 PyTuple_SET_ITEM(__pyx_k_tuple_4, 0, ((PyObject *)__pyx_kp_s_3));
2464 __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3));
2465 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_4));
2466
2467 /* "eorepo/eodefault.pyx":18
2468 *
2469 *
2470 * def init(): # <<<<<<<<<<<<<<
2471 * return bool(eodefault.eo_init())
2472 *
2473 */
2474 __pyx_k_codeobj_7 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__init, 18, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2475
2476 /* "eorepo/eodefault.pyx":33
2477 * NULL
2478 *
2479 * def pytext_to_utf8(text): # <<<<<<<<<<<<<<
2480 *
2481 * if not isinstance(text, basestring):
2482 */
2483 __pyx_k_tuple_10 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2484 __Pyx_GOTREF(__pyx_k_tuple_10);
2485 __Pyx_INCREF(((PyObject *)__pyx_n_s__text));
2486 PyTuple_SET_ITEM(__pyx_k_tuple_10, 0, ((PyObject *)__pyx_n_s__text));
2487 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__text));
2488 __Pyx_INCREF(((PyObject *)__pyx_n_s__utf8_data));
2489 PyTuple_SET_ITEM(__pyx_k_tuple_10, 1, ((PyObject *)__pyx_n_s__utf8_data));
2490 __Pyx_GIVEREF(((PyObject *)__pyx_n_s__utf8_data));
2491 __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_10));
2492 __pyx_k_codeobj_11 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_10, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_8, __pyx_n_s__pytext_to_utf8, 33, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2493 __Pyx_RefNannyFinishContext();
2494 return 0;
2495 __pyx_L1_error:;
2496 __Pyx_RefNannyFinishContext();
2497 return -1;
2498}
2499
2500static int __Pyx_InitGlobals(void) {
2501 if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
2502 __pyx_int_12345 = PyInt_FromLong(12345); if (unlikely(!__pyx_int_12345)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
2503 return 0;
2504 __pyx_L1_error:;
2505 return -1;
2506}
2507
2508#if PY_MAJOR_VERSION < 3
2509PyMODINIT_FUNC initeodefault(void); /*proto*/
2510PyMODINIT_FUNC initeodefault(void)
2511#else
2512PyMODINIT_FUNC PyInit_eodefault(void); /*proto*/
2513PyMODINIT_FUNC PyInit_eodefault(void)
2514#endif
2515{
2516 PyObject *__pyx_t_1 = NULL;
2517 __Pyx_RefNannyDeclarations
2518 #if CYTHON_REFNANNY
2519 __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
2520 if (!__Pyx_RefNanny) {
2521 PyErr_Clear();
2522 __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
2523 if (!__Pyx_RefNanny)
2524 Py_FatalError("failed to import 'refnanny' module");
2525 }
2526 #endif
2527 __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_eodefault(void)", 0);
2528 if ( __Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2529 __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2530 __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2531 #ifdef __Pyx_CyFunction_USED
2532 if (__Pyx_CyFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2533 #endif
2534 #ifdef __Pyx_FusedFunction_USED
2535 if (__pyx_FusedFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2536 #endif
2537 #ifdef __Pyx_Generator_USED
2538 if (__pyx_Generator_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2539 #endif
2540 /*--- Library function declarations ---*/
2541 /*--- Threads initialization code ---*/
2542 #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
2543 #ifdef WITH_THREAD /* Python build with threading support? */
2544 PyEval_InitThreads();
2545 #endif
2546 #endif
2547 /*--- Module creation code ---*/
2548 #if PY_MAJOR_VERSION < 3
2549 __pyx_m = Py_InitModule4(__Pyx_NAMESTR("eodefault"), __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
2550 #else
2551 __pyx_m = PyModule_Create(&__pyx_moduledef);
2552 #endif
2553 if (unlikely(!__pyx_m)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2554 #if PY_MAJOR_VERSION >= 3
2555 {
2556 PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2557 if (!PyDict_GetItemString(modules, "eorepo.eodefault")) {
2558 if (unlikely(PyDict_SetItemString(modules, "eorepo.eodefault", __pyx_m) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2559 }
2560 }
2561 #endif
2562 __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME)); if (unlikely(!__pyx_b)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2563 #if CYTHON_COMPILING_IN_PYPY
2564 Py_INCREF(__pyx_b);
2565 #endif
2566 if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
2567 /*--- Initialize various global constants etc. ---*/
2568 if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2569 if (__pyx_module_is_main_eorepo__eodefault) {
2570 if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_n_s____main__) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
2571 }
2572 /*--- Builtin init code ---*/
2573 if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2574 /*--- Constants init code ---*/
2575 if (unlikely(__Pyx_InitCachedConstants() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2576 /*--- Global init code ---*/
2577 /*--- Variable export code ---*/
2578 /*--- Function export code ---*/
2579 if (__Pyx_ExportFunction("_eo_instance_get", (void (*)(void))__pyx_f_6eorepo_9eodefault__eo_instance_get, "Eo *(struct __pyx_obj_6eorepo_9eodefault_EoDefault *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2580 if (__Pyx_ExportFunction("_object_callback", (void (*)(void))__pyx_f_6eorepo_9eodefault__object_callback, "Eina_Bool (void *, Eo *, Eo_Event_Description *, void *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2581 /*--- Type init code ---*/
2582 __pyx_vtabptr_6eorepo_9eodefault_EoDefault = &__pyx_vtable_6eorepo_9eodefault_EoDefault;
2583 __pyx_vtable_6eorepo_9eodefault_EoDefault.print_func_name = (int (*)(struct __pyx_obj_6eorepo_9eodefault_EoDefault *, PyObject *))__pyx_f_6eorepo_9eodefault_9EoDefault_print_func_name;
2584 __pyx_vtable_6eorepo_9eodefault_EoDefault._eo_instance_set = (int (*)(struct __pyx_obj_6eorepo_9eodefault_EoDefault *, Eo *))__pyx_f_6eorepo_9eodefault_9EoDefault__eo_instance_set;
2585 __pyx_vtable_6eorepo_9eodefault_EoDefault._eo_instance_set2 = (PyObject *(*)(struct __pyx_obj_6eorepo_9eodefault_EoDefault *, unsigned PY_LONG_LONG, struct __pyx_obj_6eorepo_9eodefault_EoDefault *, int __pyx_skip_dispatch))__pyx_f_6eorepo_9eodefault_9EoDefault__eo_instance_set2;
2586 if (PyType_Ready(&__pyx_type_6eorepo_9eodefault_EoDefault) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2587 if (__Pyx_SetVtable(__pyx_type_6eorepo_9eodefault_EoDefault.tp_dict, __pyx_vtabptr_6eorepo_9eodefault_EoDefault) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2588 if (__Pyx_SetAttrString(__pyx_m, "EoDefault", (PyObject *)&__pyx_type_6eorepo_9eodefault_EoDefault) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2589 __pyx_ptype_6eorepo_9eodefault_EoDefault = &__pyx_type_6eorepo_9eodefault_EoDefault;
2590 /*--- Type import code ---*/
2591 /*--- Variable import code ---*/
2592 /*--- Function import code ---*/
2593 /*--- Execution code ---*/
2594
2595 /* "eorepo/eodefault.pyx":2
2596 * cimport eodefault
2597 * import sys, operator # <<<<<<<<<<<<<<
2598 *
2599 *
2600 */
2601 __pyx_t_1 = __Pyx_Import(((PyObject *)__pyx_n_s__sys), 0, -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2602 __Pyx_GOTREF(__pyx_t_1);
2603 if (PyObject_SetAttr(__pyx_m, __pyx_n_s__sys, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2604 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2605 __pyx_t_1 = __Pyx_Import(((PyObject *)__pyx_n_s__operator), 0, -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2606 __Pyx_GOTREF(__pyx_t_1);
2607 if (PyObject_SetAttr(__pyx_m, __pyx_n_s__operator, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2608 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2609
2610 /* "eorepo/eodefault.pyx":10
2611 * ##
2612 *
2613 * PRIORITY_BEFORE = eodefault.EO_CALLBACK_PRIORITY_BEFORE # <<<<<<<<<<<<<<
2614 * PRIORITY_DEFAULT = eodefault.EO_CALLBACK_PRIORITY_DEFAULT
2615 * PRIORITY_AFTER = eodefault.EO_CALLBACK_PRIORITY_AFTER
2616 */
2617 __pyx_t_1 = PyInt_FromLong(EO_CALLBACK_PRIORITY_BEFORE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2618 __Pyx_GOTREF(__pyx_t_1);
2619 if (PyObject_SetAttr(__pyx_m, __pyx_n_s__PRIORITY_BEFORE, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2620 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2621
2622 /* "eorepo/eodefault.pyx":11
2623 *
2624 * PRIORITY_BEFORE = eodefault.EO_CALLBACK_PRIORITY_BEFORE
2625 * PRIORITY_DEFAULT = eodefault.EO_CALLBACK_PRIORITY_DEFAULT # <<<<<<<<<<<<<<
2626 * PRIORITY_AFTER = eodefault.EO_CALLBACK_PRIORITY_AFTER
2627 * CALLBACK_STOP = 12345
2628 */
2629 __pyx_t_1 = PyInt_FromLong(EO_CALLBACK_PRIORITY_DEFAULT); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2630 __Pyx_GOTREF(__pyx_t_1);
2631 if (PyObject_SetAttr(__pyx_m, __pyx_n_s__PRIORITY_DEFAULT, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2632 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2633
2634 /* "eorepo/eodefault.pyx":12
2635 * PRIORITY_BEFORE = eodefault.EO_CALLBACK_PRIORITY_BEFORE
2636 * PRIORITY_DEFAULT = eodefault.EO_CALLBACK_PRIORITY_DEFAULT
2637 * PRIORITY_AFTER = eodefault.EO_CALLBACK_PRIORITY_AFTER # <<<<<<<<<<<<<<
2638 * CALLBACK_STOP = 12345
2639 *
2640 */
2641 __pyx_t_1 = PyInt_FromLong(EO_CALLBACK_PRIORITY_AFTER); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2642 __Pyx_GOTREF(__pyx_t_1);
2643 if (PyObject_SetAttr(__pyx_m, __pyx_n_s__PRIORITY_AFTER, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2644 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2645
2646 /* "eorepo/eodefault.pyx":13
2647 * PRIORITY_DEFAULT = eodefault.EO_CALLBACK_PRIORITY_DEFAULT
2648 * PRIORITY_AFTER = eodefault.EO_CALLBACK_PRIORITY_AFTER
2649 * CALLBACK_STOP = 12345 # <<<<<<<<<<<<<<
2650 *
2651 * #cdef const_char_ptr py_eo = <const_char_ptr>"python-ej"
2652 */
2653 if (PyObject_SetAttr(__pyx_m, __pyx_n_s__CALLBACK_STOP, __pyx_int_12345) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2654
2655 /* "eorepo/eodefault.pyx":18
2656 *
2657 *
2658 * def init(): # <<<<<<<<<<<<<<
2659 * return bool(eodefault.eo_init())
2660 *
2661 */
2662 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6eorepo_9eodefault_1init, NULL, __pyx_n_s_9); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2663 __Pyx_GOTREF(__pyx_t_1);
2664 if (PyObject_SetAttr(__pyx_m, __pyx_n_s__init, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2665 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2666
2667 /* "eorepo/eodefault.pyx":33
2668 * NULL
2669 *
2670 * def pytext_to_utf8(text): # <<<<<<<<<<<<<<
2671 *
2672 * if not isinstance(text, basestring):
2673 */
2674 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6eorepo_9eodefault_3pytext_to_utf8, NULL, __pyx_n_s_9); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2675 __Pyx_GOTREF(__pyx_t_1);
2676 if (PyObject_SetAttr(__pyx_m, __pyx_n_s__pytext_to_utf8, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2677 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2678
2679 /* "eorepo/eodefault.pyx":50
2680 * cdef class EoDefault:
2681 *
2682 * PY_EO_NAME = "python-eo" # <<<<<<<<<<<<<<
2683 * def __cinit__(self):
2684 * self.eo = NULL
2685 */
2686 if (PyDict_SetItem((PyObject *)__pyx_ptype_6eorepo_9eodefault_EoDefault->tp_dict, __pyx_n_s__PY_EO_NAME, ((PyObject *)__pyx_kp_s_12)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2687 PyType_Modified(__pyx_ptype_6eorepo_9eodefault_EoDefault);
2688
2689 /* "eorepo/eodefault.pyx":1
2690 * cimport eodefault # <<<<<<<<<<<<<<
2691 * import sys, operator
2692 *
2693 */
2694 __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2695 __Pyx_GOTREF(((PyObject *)__pyx_t_1));
2696 if (PyObject_SetAttr(__pyx_m, __pyx_n_s____test__, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2697 __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
2698 goto __pyx_L0;
2699 __pyx_L1_error:;
2700 __Pyx_XDECREF(__pyx_t_1);
2701 if (__pyx_m) {
2702 __Pyx_AddTraceback("init eorepo.eodefault", __pyx_clineno, __pyx_lineno, __pyx_filename);
2703 Py_DECREF(__pyx_m); __pyx_m = 0;
2704 } else if (!PyErr_Occurred()) {
2705 PyErr_SetString(PyExc_ImportError, "init eorepo.eodefault");
2706 }
2707 __pyx_L0:;
2708 __Pyx_RefNannyFinishContext();
2709 #if PY_MAJOR_VERSION < 3
2710 return;
2711 #else
2712 return __pyx_m;
2713 #endif
2714}
2715
2716/* Runtime support code */
2717#if CYTHON_REFNANNY
2718static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
2719 PyObject *m = NULL, *p = NULL;
2720 void *r = NULL;
2721 m = PyImport_ImportModule((char *)modname);
2722 if (!m) goto end;
2723 p = PyObject_GetAttrString(m, (char *)"RefNannyAPI");
2724 if (!p) goto end;
2725 r = PyLong_AsVoidPtr(p);
2726end:
2727 Py_XDECREF(p);
2728 Py_XDECREF(m);
2729 return (__Pyx_RefNannyAPIStruct *)r;
2730}
2731#endif /* CYTHON_REFNANNY */
2732
2733static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
2734 PyObject *result;
2735 result = PyObject_GetAttr(dict, name);
2736 if (!result) {
2737 if (dict != __pyx_b) {
2738 PyErr_Clear();
2739 result = PyObject_GetAttr(__pyx_b, name);
2740 }
2741 if (!result) {
2742 PyErr_SetObject(PyExc_NameError, name);
2743 }
2744 }
2745 return result;
2746}
2747
2748static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
2749#if CYTHON_COMPILING_IN_CPYTHON
2750 PyObject *tmp_type, *tmp_value, *tmp_tb;
2751 PyThreadState *tstate = PyThreadState_GET();
2752 tmp_type = tstate->curexc_type;
2753 tmp_value = tstate->curexc_value;
2754 tmp_tb = tstate->curexc_traceback;
2755 tstate->curexc_type = type;
2756 tstate->curexc_value = value;
2757 tstate->curexc_traceback = tb;
2758 Py_XDECREF(tmp_type);
2759 Py_XDECREF(tmp_value);
2760 Py_XDECREF(tmp_tb);
2761#else
2762 PyErr_Restore(type, value, tb);
2763#endif
2764}
2765static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
2766#if CYTHON_COMPILING_IN_CPYTHON
2767 PyThreadState *tstate = PyThreadState_GET();
2768 *type = tstate->curexc_type;
2769 *value = tstate->curexc_value;
2770 *tb = tstate->curexc_traceback;
2771 tstate->curexc_type = 0;
2772 tstate->curexc_value = 0;
2773 tstate->curexc_traceback = 0;
2774#else
2775 PyErr_Fetch(type, value, tb);
2776#endif
2777}
2778
2779#if PY_MAJOR_VERSION < 3
2780static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
2781 CYTHON_UNUSED PyObject *cause) {
2782 Py_XINCREF(type);
2783 if (!value || value == Py_None)
2784 value = NULL;
2785 else
2786 Py_INCREF(value);
2787 if (!tb || tb == Py_None)
2788 tb = NULL;
2789 else {
2790 Py_INCREF(tb);
2791 if (!PyTraceBack_Check(tb)) {
2792 PyErr_SetString(PyExc_TypeError,
2793 "raise: arg 3 must be a traceback or None");
2794 goto raise_error;
2795 }
2796 }
2797 #if PY_VERSION_HEX < 0x02050000
2798 if (PyClass_Check(type)) {
2799 #else
2800 if (PyType_Check(type)) {
2801 #endif
2802#if CYTHON_COMPILING_IN_PYPY
2803 if (!value) {
2804 Py_INCREF(Py_None);
2805 value = Py_None;
2806 }
2807#endif
2808 PyErr_NormalizeException(&type, &value, &tb);
2809 } else {
2810 if (value) {
2811 PyErr_SetString(PyExc_TypeError,
2812 "instance exception may not have a separate value");
2813 goto raise_error;
2814 }
2815 value = type;
2816 #if PY_VERSION_HEX < 0x02050000
2817 if (PyInstance_Check(type)) {
2818 type = (PyObject*) ((PyInstanceObject*)type)->in_class;
2819 Py_INCREF(type);
2820 }
2821 else {
2822 type = 0;
2823 PyErr_SetString(PyExc_TypeError,
2824 "raise: exception must be an old-style class or instance");
2825 goto raise_error;
2826 }
2827 #else
2828 type = (PyObject*) Py_TYPE(type);
2829 Py_INCREF(type);
2830 if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
2831 PyErr_SetString(PyExc_TypeError,
2832 "raise: exception class must be a subclass of BaseException");
2833 goto raise_error;
2834 }
2835 #endif
2836 }
2837 __Pyx_ErrRestore(type, value, tb);
2838 return;
2839raise_error:
2840 Py_XDECREF(value);
2841 Py_XDECREF(type);
2842 Py_XDECREF(tb);
2843 return;
2844}
2845#else /* Python 3+ */
2846static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
2847 PyObject* owned_instance = NULL;
2848 if (tb == Py_None) {
2849 tb = 0;
2850 } else if (tb && !PyTraceBack_Check(tb)) {
2851 PyErr_SetString(PyExc_TypeError,
2852 "raise: arg 3 must be a traceback or None");
2853 goto bad;
2854 }
2855 if (value == Py_None)
2856 value = 0;
2857 if (PyExceptionInstance_Check(type)) {
2858 if (value) {
2859 PyErr_SetString(PyExc_TypeError,
2860 "instance exception may not have a separate value");
2861 goto bad;
2862 }
2863 value = type;
2864 type = (PyObject*) Py_TYPE(value);
2865 } else if (PyExceptionClass_Check(type)) {
2866 PyObject *args;
2867 if (!value)
2868 args = PyTuple_New(0);
2869 else if (PyTuple_Check(value)) {
2870 Py_INCREF(value);
2871 args = value;
2872 }
2873 else
2874 args = PyTuple_Pack(1, value);
2875 if (!args)
2876 goto bad;
2877 owned_instance = PyEval_CallObject(type, args);
2878 Py_DECREF(args);
2879 if (!owned_instance)
2880 goto bad;
2881 value = owned_instance;
2882 if (!PyExceptionInstance_Check(value)) {
2883 PyErr_Format(PyExc_TypeError,
2884 "calling %R should have returned an instance of "
2885 "BaseException, not %R",
2886 type, Py_TYPE(value));
2887 goto bad;
2888 }
2889 } else {
2890 PyErr_SetString(PyExc_TypeError,
2891 "raise: exception class must be a subclass of BaseException");
2892 goto bad;
2893 }
2894 if (cause && cause != Py_None) {
2895 PyObject *fixed_cause;
2896 if (PyExceptionClass_Check(cause)) {
2897 fixed_cause = PyObject_CallObject(cause, NULL);
2898 if (fixed_cause == NULL)
2899 goto bad;
2900 }
2901 else if (PyExceptionInstance_Check(cause)) {
2902 fixed_cause = cause;
2903 Py_INCREF(fixed_cause);
2904 }
2905 else {
2906 PyErr_SetString(PyExc_TypeError,
2907 "exception causes must derive from "
2908 "BaseException");
2909 goto bad;
2910 }
2911 PyException_SetCause(value, fixed_cause);
2912 }
2913 PyErr_SetObject(type, value);
2914 if (tb) {
2915 PyThreadState *tstate = PyThreadState_GET();
2916 PyObject* tmp_tb = tstate->curexc_traceback;
2917 if (tb != tmp_tb) {
2918 Py_INCREF(tb);
2919 tstate->curexc_traceback = tb;
2920 Py_XDECREF(tmp_tb);
2921 }
2922 }
2923bad:
2924 Py_XDECREF(owned_instance);
2925 return;
2926}
2927#endif
2928
2929static void __Pyx_RaiseArgtupleInvalid(
2930 const char* func_name,
2931 int exact,
2932 Py_ssize_t num_min,
2933 Py_ssize_t num_max,
2934 Py_ssize_t num_found)
2935{
2936 Py_ssize_t num_expected;
2937 const char *more_or_less;
2938 if (num_found < num_min) {
2939 num_expected = num_min;
2940 more_or_less = "at least";
2941 } else {
2942 num_expected = num_max;
2943 more_or_less = "at most";
2944 }
2945 if (exact) {
2946 more_or_less = "exactly";
2947 }
2948 PyErr_Format(PyExc_TypeError,
2949 "%s() takes %s %" CYTHON_FORMAT_SSIZE_T "d positional argument%s (%" CYTHON_FORMAT_SSIZE_T "d given)",
2950 func_name, more_or_less, num_expected,
2951 (num_expected == 1) ? "" : "s", num_found);
2952}
2953
2954static CYTHON_INLINE int __Pyx_CheckKeywordStrings(
2955 PyObject *kwdict,
2956 const char* function_name,
2957 int kw_allowed)
2958{
2959 PyObject* key = 0;
2960 Py_ssize_t pos = 0;
2961#if CPYTHON_COMPILING_IN_PYPY
2962 if (!kw_allowed && PyDict_Next(kwdict, &pos, &key, 0))
2963 goto invalid_keyword;
2964 return 1;
2965#else
2966 while (PyDict_Next(kwdict, &pos, &key, 0)) {
2967 #if PY_MAJOR_VERSION < 3
2968 if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key)))
2969 #endif
2970 if (unlikely(!PyUnicode_Check(key)))
2971 goto invalid_keyword_type;
2972 }
2973 if ((!kw_allowed) && unlikely(key))
2974 goto invalid_keyword;
2975 return 1;
2976invalid_keyword_type:
2977 PyErr_Format(PyExc_TypeError,
2978 "%s() keywords must be strings", function_name);
2979 return 0;
2980#endif
2981invalid_keyword:
2982 PyErr_Format(PyExc_TypeError,
2983 #if PY_MAJOR_VERSION < 3
2984 "%s() got an unexpected keyword argument '%s'",
2985 function_name, PyString_AsString(key));
2986 #else
2987 "%s() got an unexpected keyword argument '%U'",
2988 function_name, key);
2989 #endif
2990 return 0;
2991}
2992
2993static void __Pyx_RaiseDoubleKeywordsError(
2994 const char* func_name,
2995 PyObject* kw_name)
2996{
2997 PyErr_Format(PyExc_TypeError,
2998 #if PY_MAJOR_VERSION >= 3
2999 "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
3000 #else
3001 "%s() got multiple values for keyword argument '%s'", func_name,
3002 PyString_AsString(kw_name));
3003 #endif
3004}
3005
3006static int __Pyx_ParseOptionalKeywords(
3007 PyObject *kwds,
3008 PyObject **argnames[],
3009 PyObject *kwds2,
3010 PyObject *values[],
3011 Py_ssize_t num_pos_args,
3012 const char* function_name)
3013{
3014 PyObject *key = 0, *value = 0;
3015 Py_ssize_t pos = 0;
3016 PyObject*** name;
3017 PyObject*** first_kw_arg = argnames + num_pos_args;
3018 while (PyDict_Next(kwds, &pos, &key, &value)) {
3019 name = first_kw_arg;
3020 while (*name && (**name != key)) name++;
3021 if (*name) {
3022 values[name-argnames] = value;
3023 continue;
3024 }
3025 name = first_kw_arg;
3026 #if PY_MAJOR_VERSION < 3
3027 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) {
3028 while (*name) {
3029 if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
3030 && _PyString_Eq(**name, key)) {
3031 values[name-argnames] = value;
3032 break;
3033 }
3034 name++;
3035 }
3036 if (*name) continue;
3037 else {
3038 PyObject*** argname = argnames;
3039 while (argname != first_kw_arg) {
3040 if ((**argname == key) || (
3041 (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
3042 && _PyString_Eq(**argname, key))) {
3043 goto arg_passed_twice;
3044 }
3045 argname++;
3046 }
3047 }
3048 } else
3049 #endif
3050 if (likely(PyUnicode_Check(key))) {
3051 while (*name) {
3052 int cmp = (**name == key) ? 0 :
3053 #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
3054 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
3055 #endif
3056 PyUnicode_Compare(**name, key);
3057 if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
3058 if (cmp == 0) {
3059 values[name-argnames] = value;
3060 break;
3061 }
3062 name++;
3063 }
3064 if (*name) continue;
3065 else {
3066 PyObject*** argname = argnames;
3067 while (argname != first_kw_arg) {
3068 int cmp = (**argname == key) ? 0 :
3069 #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
3070 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
3071 #endif
3072 PyUnicode_Compare(**argname, key);
3073 if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
3074 if (cmp == 0) goto arg_passed_twice;
3075 argname++;
3076 }
3077 }
3078 } else
3079 goto invalid_keyword_type;
3080 if (kwds2) {
3081 if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
3082 } else {
3083 goto invalid_keyword;
3084 }
3085 }
3086 return 0;
3087arg_passed_twice:
3088 __Pyx_RaiseDoubleKeywordsError(function_name, key);
3089 goto bad;
3090invalid_keyword_type:
3091 PyErr_Format(PyExc_TypeError,
3092 "%s() keywords must be strings", function_name);
3093 goto bad;
3094invalid_keyword:
3095 PyErr_Format(PyExc_TypeError,
3096 #if PY_MAJOR_VERSION < 3
3097 "%s() got an unexpected keyword argument '%s'",
3098 function_name, PyString_AsString(key));
3099 #else
3100 "%s() got an unexpected keyword argument '%U'",
3101 function_name, key);
3102 #endif
3103bad:
3104 return -1;
3105}
3106
3107static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
3108 const char *name, int exact)
3109{
3110 if (!type) {
3111 PyErr_Format(PyExc_SystemError, "Missing type object");
3112 return 0;
3113 }
3114 if (none_allowed && obj == Py_None) return 1;
3115 else if (exact) {
3116 if (Py_TYPE(obj) == type) return 1;
3117 }
3118 else {
3119 if (PyObject_TypeCheck(obj, type)) return 1;
3120 }
3121 PyErr_Format(PyExc_TypeError,
3122 "Argument '%s' has incorrect type (expected %s, got %s)",
3123 name, type->tp_name, Py_TYPE(obj)->tp_name);
3124 return 0;
3125}
3126
3127static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, long level) {
3128 PyObject *py_import = 0;
3129 PyObject *empty_list = 0;
3130 PyObject *module = 0;
3131 PyObject *global_dict = 0;
3132 PyObject *empty_dict = 0;
3133 PyObject *list;
3134 py_import = __Pyx_GetAttrString(__pyx_b, "__import__");
3135 if (!py_import)
3136 goto bad;
3137 if (from_list)
3138 list = from_list;
3139 else {
3140 empty_list = PyList_New(0);
3141 if (!empty_list)
3142 goto bad;
3143 list = empty_list;
3144 }
3145 global_dict = PyModule_GetDict(__pyx_m);
3146 if (!global_dict)
3147 goto bad;
3148 empty_dict = PyDict_New();
3149 if (!empty_dict)
3150 goto bad;
3151 #if PY_VERSION_HEX >= 0x02050000
3152 {
3153 #if PY_MAJOR_VERSION >= 3
3154 if (level == -1) {
3155 if (strchr(__Pyx_MODULE_NAME, '.')) {
3156 /* try package relative import first */
3157 PyObject *py_level = PyInt_FromLong(1);
3158 if (!py_level)
3159 goto bad;
3160 module = PyObject_CallFunctionObjArgs(py_import,
3161 name, global_dict, empty_dict, list, py_level, NULL);
3162 Py_DECREF(py_level);
3163 if (!module) {
3164 if (!PyErr_ExceptionMatches(PyExc_ImportError))
3165 goto bad;
3166 PyErr_Clear();
3167 }
3168 }
3169 level = 0; /* try absolute import on failure */
3170 }
3171 #endif
3172 if (!module) {
3173 PyObject *py_level = PyInt_FromLong(level);
3174 if (!py_level)
3175 goto bad;
3176 module = PyObject_CallFunctionObjArgs(py_import,
3177 name, global_dict, empty_dict, list, py_level, NULL);
3178 Py_DECREF(py_level);
3179 }
3180 }
3181 #else
3182 if (level>0) {
3183 PyErr_SetString(PyExc_RuntimeError, "Relative import is not supported for Python <=2.4.");
3184 goto bad;
3185 }
3186 module = PyObject_CallFunctionObjArgs(py_import,
3187 name, global_dict, empty_dict, list, NULL);
3188 #endif
3189bad:
3190 Py_XDECREF(empty_list);
3191 Py_XDECREF(py_import);
3192 Py_XDECREF(empty_dict);
3193 return module;
3194}
3195
3196static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_Eina_Bool(Eina_Bool val) {
3197 const Eina_Bool neg_one = (Eina_Bool)-1, const_zero = (Eina_Bool)0;
3198 const int is_unsigned = const_zero < neg_one;
3199 if ((sizeof(Eina_Bool) == sizeof(char)) ||
3200 (sizeof(Eina_Bool) == sizeof(short))) {
3201 return PyInt_FromLong((long)val);
3202 } else if ((sizeof(Eina_Bool) == sizeof(int)) ||
3203 (sizeof(Eina_Bool) == sizeof(long))) {
3204 if (is_unsigned)
3205 return PyLong_FromUnsignedLong((unsigned long)val);
3206 else
3207 return PyInt_FromLong((long)val);
3208 } else if (sizeof(Eina_Bool) == sizeof(PY_LONG_LONG)) {
3209 if (is_unsigned)
3210 return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG)val);
3211 else
3212 return PyLong_FromLongLong((PY_LONG_LONG)val);
3213 } else {
3214 int one = 1; int little = (int)*(unsigned char *)&one;
3215 unsigned char *bytes = (unsigned char *)&val;
3216 return _PyLong_FromByteArray(bytes, sizeof(Eina_Bool),
3217 little, !is_unsigned);
3218 }
3219}
3220
3221#if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
3222static PyObject *__Pyx_GetStdout(void) {
3223 PyObject *f = PySys_GetObject((char *)"stdout");
3224 if (!f) {
3225 PyErr_SetString(PyExc_RuntimeError, "lost sys.stdout");
3226 }
3227 return f;
3228}
3229static int __Pyx_Print(PyObject* f, PyObject *arg_tuple, int newline) {
3230 int i;
3231 if (!f) {
3232 if (!(f = __Pyx_GetStdout()))
3233 return -1;
3234 }
3235 Py_INCREF(f);
3236 for (i=0; i < PyTuple_GET_SIZE(arg_tuple); i++) {
3237 PyObject* v;
3238 if (PyFile_SoftSpace(f, 1)) {
3239 if (PyFile_WriteString(" ", f) < 0)
3240 goto error;
3241 }
3242 v = PyTuple_GET_ITEM(arg_tuple, i);
3243 if (PyFile_WriteObject(v, f, Py_PRINT_RAW) < 0)
3244 goto error;
3245 if (PyString_Check(v)) {
3246 char *s = PyString_AsString(v);
3247 Py_ssize_t len = PyString_Size(v);
3248 if (len > 0 &&
3249 isspace(Py_CHARMASK(s[len-1])) &&
3250 s[len-1] != ' ')
3251 PyFile_SoftSpace(f, 0);
3252 }
3253 }
3254 if (newline) {
3255 if (PyFile_WriteString("\n", f) < 0)
3256 goto error;
3257 PyFile_SoftSpace(f, 0);
3258 }
3259 Py_DECREF(f);
3260 return 0;
3261error:
3262 Py_DECREF(f);
3263 return -1;
3264}
3265#else /* Python 3 has a print function */
3266static int __Pyx_Print(PyObject* stream, PyObject *arg_tuple, int newline) {
3267 PyObject* kwargs = 0;
3268 PyObject* result = 0;
3269 PyObject* end_string;
3270 if (unlikely(!__pyx_print)) {
3271 __pyx_print = __Pyx_GetAttrString(__pyx_b, "print");
3272 if (!__pyx_print)
3273 return -1;
3274 }
3275 if (stream) {
3276 kwargs = PyDict_New();
3277 if (unlikely(!kwargs))
3278 return -1;
3279 if (unlikely(PyDict_SetItemString(kwargs, "file", stream) < 0))
3280 goto bad;
3281 if (!newline) {
3282 end_string = PyUnicode_FromStringAndSize(" ", 1);
3283 if (unlikely(!end_string))
3284 goto bad;
3285 if (PyDict_SetItemString(kwargs, "end", end_string) < 0) {
3286 Py_DECREF(end_string);
3287 goto bad;
3288 }
3289 Py_DECREF(end_string);
3290 }
3291 } else if (!newline) {
3292 if (unlikely(!__pyx_print_kwargs)) {
3293 __pyx_print_kwargs = PyDict_New();
3294 if (unlikely(!__pyx_print_kwargs))
3295 return -1;
3296 end_string = PyUnicode_FromStringAndSize(" ", 1);
3297 if (unlikely(!end_string))
3298 return -1;
3299 if (PyDict_SetItemString(__pyx_print_kwargs, "end", end_string) < 0) {
3300 Py_DECREF(end_string);
3301 return -1;
3302 }
3303 Py_DECREF(end_string);
3304 }
3305 kwargs = __pyx_print_kwargs;
3306 }
3307 result = PyObject_Call(__pyx_print, arg_tuple, kwargs);
3308 if (unlikely(kwargs) && (kwargs != __pyx_print_kwargs))
3309 Py_DECREF(kwargs);
3310 if (!result)
3311 return -1;
3312 Py_DECREF(result);
3313 return 0;
3314bad:
3315 if (kwargs != __pyx_print_kwargs)
3316 Py_XDECREF(kwargs);
3317 return -1;
3318}
3319#endif
3320
3321static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
3322 const unsigned char neg_one = (unsigned char)-1, const_zero = 0;
3323 const int is_unsigned = neg_one > const_zero;
3324 if (sizeof(unsigned char) < sizeof(long)) {
3325 long val = __Pyx_PyInt_AsLong(x);
3326 if (unlikely(val != (long)(unsigned char)val)) {
3327 if (!unlikely(val == -1 && PyErr_Occurred())) {
3328 PyErr_SetString(PyExc_OverflowError,
3329 (is_unsigned && unlikely(val < 0)) ?
3330 "can't convert negative value to unsigned char" :
3331 "value too large to convert to unsigned char");
3332 }
3333 return (unsigned char)-1;
3334 }
3335 return (unsigned char)val;
3336 }
3337 return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x);
3338}
3339
3340static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
3341 const unsigned short neg_one = (unsigned short)-1, const_zero = 0;
3342 const int is_unsigned = neg_one > const_zero;
3343 if (sizeof(unsigned short) < sizeof(long)) {
3344 long val = __Pyx_PyInt_AsLong(x);
3345 if (unlikely(val != (long)(unsigned short)val)) {
3346 if (!unlikely(val == -1 && PyErr_Occurred())) {
3347 PyErr_SetString(PyExc_OverflowError,
3348 (is_unsigned && unlikely(val < 0)) ?
3349 "can't convert negative value to unsigned short" :
3350 "value too large to convert to unsigned short");
3351 }
3352 return (unsigned short)-1;
3353 }
3354 return (unsigned short)val;
3355 }
3356 return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x);
3357}
3358
3359static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
3360 const unsigned int neg_one = (unsigned int)-1, const_zero = 0;
3361 const int is_unsigned = neg_one > const_zero;
3362 if (sizeof(unsigned int) < sizeof(long)) {
3363 long val = __Pyx_PyInt_AsLong(x);
3364 if (unlikely(val != (long)(unsigned int)val)) {
3365 if (!unlikely(val == -1 && PyErr_Occurred())) {
3366 PyErr_SetString(PyExc_OverflowError,
3367 (is_unsigned && unlikely(val < 0)) ?
3368 "can't convert negative value to unsigned int" :
3369 "value too large to convert to unsigned int");
3370 }
3371 return (unsigned int)-1;
3372 }
3373 return (unsigned int)val;
3374 }
3375 return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x);
3376}
3377
3378static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
3379 const char neg_one = (char)-1, const_zero = 0;
3380 const int is_unsigned = neg_one > const_zero;
3381 if (sizeof(char) < sizeof(long)) {
3382 long val = __Pyx_PyInt_AsLong(x);
3383 if (unlikely(val != (long)(char)val)) {
3384 if (!unlikely(val == -1 && PyErr_Occurred())) {
3385 PyErr_SetString(PyExc_OverflowError,
3386 (is_unsigned && unlikely(val < 0)) ?
3387 "can't convert negative value to char" :
3388 "value too large to convert to char");
3389 }
3390 return (char)-1;
3391 }
3392 return (char)val;
3393 }
3394 return (char)__Pyx_PyInt_AsLong(x);
3395}
3396
3397static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
3398 const short neg_one = (short)-1, const_zero = 0;
3399 const int is_unsigned = neg_one > const_zero;
3400 if (sizeof(short) < sizeof(long)) {
3401 long val = __Pyx_PyInt_AsLong(x);
3402 if (unlikely(val != (long)(short)val)) {
3403 if (!unlikely(val == -1 && PyErr_Occurred())) {
3404 PyErr_SetString(PyExc_OverflowError,
3405 (is_unsigned && unlikely(val < 0)) ?
3406 "can't convert negative value to short" :
3407 "value too large to convert to short");
3408 }
3409 return (short)-1;
3410 }
3411 return (short)val;
3412 }
3413 return (short)__Pyx_PyInt_AsLong(x);
3414}
3415
3416static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
3417 const int neg_one = (int)-1, const_zero = 0;
3418 const int is_unsigned = neg_one > const_zero;
3419 if (sizeof(int) < sizeof(long)) {
3420 long val = __Pyx_PyInt_AsLong(x);
3421 if (unlikely(val != (long)(int)val)) {
3422 if (!unlikely(val == -1 && PyErr_Occurred())) {
3423 PyErr_SetString(PyExc_OverflowError,
3424 (is_unsigned && unlikely(val < 0)) ?
3425 "can't convert negative value to int" :
3426 "value too large to convert to int");
3427 }
3428 return (int)-1;
3429 }
3430 return (int)val;
3431 }
3432 return (int)__Pyx_PyInt_AsLong(x);
3433}
3434
3435static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
3436 const signed char neg_one = (signed char)-1, const_zero = 0;
3437 const int is_unsigned = neg_one > const_zero;
3438 if (sizeof(signed char) < sizeof(long)) {
3439 long val = __Pyx_PyInt_AsLong(x);
3440 if (unlikely(val != (long)(signed char)val)) {
3441 if (!unlikely(val == -1 && PyErr_Occurred())) {
3442 PyErr_SetString(PyExc_OverflowError,
3443 (is_unsigned && unlikely(val < 0)) ?
3444 "can't convert negative value to signed char" :
3445 "value too large to convert to signed char");
3446 }
3447 return (signed char)-1;
3448 }
3449 return (signed char)val;
3450 }
3451 return (signed char)__Pyx_PyInt_AsSignedLong(x);
3452}
3453
3454static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
3455 const signed short neg_one = (signed short)-1, const_zero = 0;
3456 const int is_unsigned = neg_one > const_zero;
3457 if (sizeof(signed short) < sizeof(long)) {
3458 long val = __Pyx_PyInt_AsLong(x);
3459 if (unlikely(val != (long)(signed short)val)) {
3460 if (!unlikely(val == -1 && PyErr_Occurred())) {
3461 PyErr_SetString(PyExc_OverflowError,
3462 (is_unsigned && unlikely(val < 0)) ?
3463 "can't convert negative value to signed short" :
3464 "value too large to convert to signed short");
3465 }
3466 return (signed short)-1;
3467 }
3468 return (signed short)val;
3469 }
3470 return (signed short)__Pyx_PyInt_AsSignedLong(x);
3471}
3472
3473static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
3474 const signed int neg_one = (signed int)-1, const_zero = 0;
3475 const int is_unsigned = neg_one > const_zero;
3476 if (sizeof(signed int) < sizeof(long)) {
3477 long val = __Pyx_PyInt_AsLong(x);
3478 if (unlikely(val != (long)(signed int)val)) {
3479 if (!unlikely(val == -1 && PyErr_Occurred())) {
3480 PyErr_SetString(PyExc_OverflowError,
3481 (is_unsigned && unlikely(val < 0)) ?
3482 "can't convert negative value to signed int" :
3483 "value too large to convert to signed int");
3484 }
3485 return (signed int)-1;
3486 }
3487 return (signed int)val;
3488 }
3489 return (signed int)__Pyx_PyInt_AsSignedLong(x);
3490}
3491
3492static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) {
3493 const int neg_one = (int)-1, const_zero = 0;
3494 const int is_unsigned = neg_one > const_zero;
3495 if (sizeof(int) < sizeof(long)) {
3496 long val = __Pyx_PyInt_AsLong(x);
3497 if (unlikely(val != (long)(int)val)) {
3498 if (!unlikely(val == -1 && PyErr_Occurred())) {
3499 PyErr_SetString(PyExc_OverflowError,
3500 (is_unsigned && unlikely(val < 0)) ?
3501 "can't convert negative value to int" :
3502 "value too large to convert to int");
3503 }
3504 return (int)-1;
3505 }
3506 return (int)val;
3507 }
3508 return (int)__Pyx_PyInt_AsLong(x);
3509}
3510
3511static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
3512 const unsigned long neg_one = (unsigned long)-1, const_zero = 0;
3513 const int is_unsigned = neg_one > const_zero;
3514#if PY_VERSION_HEX < 0x03000000
3515 if (likely(PyInt_Check(x))) {
3516 long val = PyInt_AS_LONG(x);
3517 if (is_unsigned && unlikely(val < 0)) {
3518 PyErr_SetString(PyExc_OverflowError,
3519 "can't convert negative value to unsigned long");
3520 return (unsigned long)-1;
3521 }
3522 return (unsigned long)val;
3523 } else
3524#endif
3525 if (likely(PyLong_Check(x))) {
3526 if (is_unsigned) {
3527 if (unlikely(Py_SIZE(x) < 0)) {
3528 PyErr_SetString(PyExc_OverflowError,
3529 "can't convert negative value to unsigned long");
3530 return (unsigned long)-1;
3531 }
3532 return (unsigned long)PyLong_AsUnsignedLong(x);
3533 } else {
3534 return (unsigned long)PyLong_AsLong(x);
3535 }
3536 } else {
3537 unsigned long val;
3538 PyObject *tmp = __Pyx_PyNumber_Int(x);
3539 if (!tmp) return (unsigned long)-1;
3540 val = __Pyx_PyInt_AsUnsignedLong(tmp);
3541 Py_DECREF(tmp);
3542 return val;
3543 }
3544}
3545
3546static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
3547 const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG)-1, const_zero = 0;
3548 const int is_unsigned = neg_one > const_zero;
3549#if PY_VERSION_HEX < 0x03000000
3550 if (likely(PyInt_Check(x))) {
3551 long val = PyInt_AS_LONG(x);
3552 if (is_unsigned && unlikely(val < 0)) {
3553 PyErr_SetString(PyExc_OverflowError,
3554 "can't convert negative value to unsigned PY_LONG_LONG");
3555 return (unsigned PY_LONG_LONG)-1;
3556 }
3557 return (unsigned PY_LONG_LONG)val;
3558 } else
3559#endif
3560 if (likely(PyLong_Check(x))) {
3561 if (is_unsigned) {
3562 if (unlikely(Py_SIZE(x) < 0)) {
3563 PyErr_SetString(PyExc_OverflowError,
3564 "can't convert negative value to unsigned PY_LONG_LONG");
3565 return (unsigned PY_LONG_LONG)-1;
3566 }
3567 return (unsigned PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
3568 } else {
3569 return (unsigned PY_LONG_LONG)PyLong_AsLongLong(x);
3570 }
3571 } else {
3572 unsigned PY_LONG_LONG val;
3573 PyObject *tmp = __Pyx_PyNumber_Int(x);
3574 if (!tmp) return (unsigned PY_LONG_LONG)-1;
3575 val = __Pyx_PyInt_AsUnsignedLongLong(tmp);
3576 Py_DECREF(tmp);
3577 return val;
3578 }
3579}
3580
3581static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
3582 const long neg_one = (long)-1, const_zero = 0;
3583 const int is_unsigned = neg_one > const_zero;
3584#if PY_VERSION_HEX < 0x03000000
3585 if (likely(PyInt_Check(x))) {
3586 long val = PyInt_AS_LONG(x);
3587 if (is_unsigned && unlikely(val < 0)) {
3588 PyErr_SetString(PyExc_OverflowError,
3589 "can't convert negative value to long");
3590 return (long)-1;
3591 }
3592 return (long)val;
3593 } else
3594#endif
3595 if (likely(PyLong_Check(x))) {
3596 if (is_unsigned) {
3597 if (unlikely(Py_SIZE(x) < 0)) {
3598 PyErr_SetString(PyExc_OverflowError,
3599 "can't convert negative value to long");
3600 return (long)-1;
3601 }
3602 return (long)PyLong_AsUnsignedLong(x);
3603 } else {
3604 return (long)PyLong_AsLong(x);
3605 }
3606 } else {
3607 long val;
3608 PyObject *tmp = __Pyx_PyNumber_Int(x);
3609 if (!tmp) return (long)-1;
3610 val = __Pyx_PyInt_AsLong(tmp);
3611 Py_DECREF(tmp);
3612 return val;
3613 }
3614}
3615
3616static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
3617 const PY_LONG_LONG neg_one = (PY_LONG_LONG)-1, const_zero = 0;
3618 const int is_unsigned = neg_one > const_zero;
3619#if PY_VERSION_HEX < 0x03000000
3620 if (likely(PyInt_Check(x))) {
3621 long val = PyInt_AS_LONG(x);
3622 if (is_unsigned && unlikely(val < 0)) {
3623 PyErr_SetString(PyExc_OverflowError,
3624 "can't convert negative value to PY_LONG_LONG");
3625 return (PY_LONG_LONG)-1;
3626 }
3627 return (PY_LONG_LONG)val;
3628 } else
3629#endif
3630 if (likely(PyLong_Check(x))) {
3631 if (is_unsigned) {
3632 if (unlikely(Py_SIZE(x) < 0)) {
3633 PyErr_SetString(PyExc_OverflowError,
3634 "can't convert negative value to PY_LONG_LONG");
3635 return (PY_LONG_LONG)-1;
3636 }
3637 return (PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
3638 } else {
3639 return (PY_LONG_LONG)PyLong_AsLongLong(x);
3640 }
3641 } else {
3642 PY_LONG_LONG val;
3643 PyObject *tmp = __Pyx_PyNumber_Int(x);
3644 if (!tmp) return (PY_LONG_LONG)-1;
3645 val = __Pyx_PyInt_AsLongLong(tmp);
3646 Py_DECREF(tmp);
3647 return val;
3648 }
3649}
3650
3651static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
3652 const signed long neg_one = (signed long)-1, const_zero = 0;
3653 const int is_unsigned = neg_one > const_zero;
3654#if PY_VERSION_HEX < 0x03000000
3655 if (likely(PyInt_Check(x))) {
3656 long val = PyInt_AS_LONG(x);
3657 if (is_unsigned && unlikely(val < 0)) {
3658 PyErr_SetString(PyExc_OverflowError,
3659 "can't convert negative value to signed long");
3660 return (signed long)-1;
3661 }
3662 return (signed long)val;
3663 } else
3664#endif
3665 if (likely(PyLong_Check(x))) {
3666 if (is_unsigned) {
3667 if (unlikely(Py_SIZE(x) < 0)) {
3668 PyErr_SetString(PyExc_OverflowError,
3669 "can't convert negative value to signed long");
3670 return (signed long)-1;
3671 }
3672 return (signed long)PyLong_AsUnsignedLong(x);
3673 } else {
3674 return (signed long)PyLong_AsLong(x);
3675 }
3676 } else {
3677 signed long val;
3678 PyObject *tmp = __Pyx_PyNumber_Int(x);
3679 if (!tmp) return (signed long)-1;
3680 val = __Pyx_PyInt_AsSignedLong(tmp);
3681 Py_DECREF(tmp);
3682 return val;
3683 }
3684}
3685
3686static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
3687 const signed PY_LONG_LONG neg_one = (signed PY_LONG_LONG)-1, const_zero = 0;
3688 const int is_unsigned = neg_one > const_zero;
3689#if PY_VERSION_HEX < 0x03000000
3690 if (likely(PyInt_Check(x))) {
3691 long val = PyInt_AS_LONG(x);
3692 if (is_unsigned && unlikely(val < 0)) {
3693 PyErr_SetString(PyExc_OverflowError,
3694 "can't convert negative value to signed PY_LONG_LONG");
3695 return (signed PY_LONG_LONG)-1;
3696 }
3697 return (signed PY_LONG_LONG)val;
3698 } else
3699#endif
3700 if (likely(PyLong_Check(x))) {
3701 if (is_unsigned) {
3702 if (unlikely(Py_SIZE(x) < 0)) {
3703 PyErr_SetString(PyExc_OverflowError,
3704 "can't convert negative value to signed PY_LONG_LONG");
3705 return (signed PY_LONG_LONG)-1;
3706 }
3707 return (signed PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
3708 } else {
3709 return (signed PY_LONG_LONG)PyLong_AsLongLong(x);
3710 }
3711 } else {
3712 signed PY_LONG_LONG val;
3713 PyObject *tmp = __Pyx_PyNumber_Int(x);
3714 if (!tmp) return (signed PY_LONG_LONG)-1;
3715 val = __Pyx_PyInt_AsSignedLongLong(tmp);
3716 Py_DECREF(tmp);
3717 return val;
3718 }
3719}
3720
3721static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno,
3722 CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename) {
3723 PyObject *old_exc, *old_val, *old_tb;
3724 PyObject *ctx;
3725 __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
3726 #if PY_MAJOR_VERSION < 3
3727 ctx = PyString_FromString(name);
3728 #else
3729 ctx = PyUnicode_FromString(name);
3730 #endif
3731 __Pyx_ErrRestore(old_exc, old_val, old_tb);
3732 if (!ctx) {
3733 PyErr_WriteUnraisable(Py_None);
3734 } else {
3735 PyErr_WriteUnraisable(ctx);
3736 Py_DECREF(ctx);
3737 }
3738}
3739
3740static int __Pyx_check_binary_version(void) {
3741 char ctversion[4], rtversion[4];
3742 PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
3743 PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
3744 if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
3745 char message[200];
3746 PyOS_snprintf(message, sizeof(message),
3747 "compiletime version %s of module '%.100s' "
3748 "does not match runtime version %s",
3749 ctversion, __Pyx_MODULE_NAME, rtversion);
3750 #if PY_VERSION_HEX < 0x02050000
3751 return PyErr_Warn(NULL, message);
3752 #else
3753 return PyErr_WarnEx(NULL, message, 1);
3754 #endif
3755 }
3756 return 0;
3757}
3758
3759static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) {
3760 PyObject *d = 0;
3761 PyObject *cobj = 0;
3762 union {
3763 void (*fp)(void);
3764 void *p;
3765 } tmp;
3766 d = PyObject_GetAttrString(__pyx_m, (char *)"__pyx_capi__");
3767 if (!d) {
3768 PyErr_Clear();
3769 d = PyDict_New();
3770 if (!d)
3771 goto bad;
3772 Py_INCREF(d);
3773 if (PyModule_AddObject(__pyx_m, (char *)"__pyx_capi__", d) < 0)
3774 goto bad;
3775 }
3776 tmp.fp = f;
3777#if PY_VERSION_HEX >= 0x02070000 && !(PY_MAJOR_VERSION==3&&PY_MINOR_VERSION==0)