From 08a66a87c30ce740bcdfc3db197982452491efbb Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Fri, 12 Nov 2010 15:43:43 -0300 Subject: [PATCH] CYTHON_INLINE for __Pyx_GetAttr3 --- Cython/Compiler/Builtin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } """) -- 2.26.2