From: Lisandro Dalcin Date: Thu, 23 Oct 2008 14:59:44 +0000 (-0300) Subject: fix the location of INLINE macro in prototypes of some private functions X-Git-Tag: 0.9.9.2.beta~26^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=03e46715b60afafcc9671bca82a6c4515419ae87;p=cython.git fix the location of INLINE macro in prototypes of some private functions --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index bb805314..1083548e 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -5002,10 +5002,10 @@ bad: restore_exception_utility_code = [ """ -static void INLINE __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/ -static void INLINE __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ +static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/ +static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ """,""" -static void INLINE __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) { +static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) { PyObject *tmp_type, *tmp_value, *tmp_tb; PyThreadState *tstate = PyThreadState_GET(); @@ -5020,7 +5020,7 @@ static void INLINE __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *t Py_XDECREF(tmp_tb); } -static void INLINE __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) { +static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) { PyThreadState *tstate = PyThreadState_GET(); *type = tstate->curexc_type; *value = tstate->curexc_value; @@ -5160,10 +5160,10 @@ bad: reset_exception_utility_code = [ """ -static void INLINE __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ +static INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb); /*proto*/ """,""" -static void INLINE __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb) { +static INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb) { PyThreadState *tstate = PyThreadState_GET(); *type = tstate->exc_type; *value = tstate->exc_value;