From: Lisandro Dalcin Date: Fri, 12 Nov 2010 18:43:43 +0000 (-0300) Subject: CYTHON_INLINE for __Pyx_GetAttr3 X-Git-Tag: 0.14.alpha0~161^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=08a66a87c30ce740bcdfc3db197982452491efbb;p=cython.git CYTHON_INLINE for __Pyx_GetAttr3 --- diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index 29c17a59..2fedf6ae 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -58,10 +58,10 @@ static CYTHON_INLINE PyObject *__Pyx_PyIter_Next2(PyObject* iterator, PyObject* getattr3_utility_code = UtilityCode( proto = """ -static PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *); /*proto*/ +static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *); /*proto*/ """, impl = """ -static PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) { +static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) { PyObject *r = PyObject_GetAttr(o, n); if (!r) { if (!PyErr_ExceptionMatches(PyExc_AttributeError)) @@ -72,7 +72,7 @@ static PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) { } return r; bad: - return 0; + return NULL; } """)