From 03e46715b60afafcc9671bca82a6c4515419ae87 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Thu, 23 Oct 2008 11:59:44 -0300 Subject: [PATCH] fix the location of INLINE macro in prototypes of some private functions --- Cython/Compiler/Nodes.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; -- 2.26.2