| 10577 | /* Refnanny */ |
| 10578 | #if CYTHON_REFNANNY |
| 10579 | static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { |
| 10580 | PyObject *m = NULL, *p = NULL; |
| 10581 | void *r = NULL; |
| 10582 | m = PyImport_ImportModule(modname); |
| 10583 | if (!m) goto end; |
| 10584 | p = PyObject_GetAttrString(m, "RefNannyAPI"); |
| 10585 | if (!p) goto end; |
| 10586 | r = PyLong_AsVoidPtr(p); |
| 10587 | end: |
| 10588 | Py_XDECREF(p); |
| 10589 | Py_XDECREF(m); |
| 10590 | return (__Pyx_RefNannyAPIStruct *)r; |
| 10591 | } |
| 10592 | #endif |
| 10593 | |
| 10594 | /* PyObjectGetAttrStr */ |