From: Lisandro Dalcin Date: Tue, 3 Feb 2009 19:06:24 +0000 (-0200) Subject: forgot to protect refnanny macro arguments in last commit X-Git-Tag: 0.11.rc~93^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=654b16a2a5817145f07b7bc53b898ac6de6cb331;p=cython.git forgot to protect refnanny macro arguments in last commit --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index b68c1d0a..5445d92f 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -2341,13 +2341,13 @@ typedef struct { void* (*NewContext)(const char*, int); int (*FinishContext)(void**); } __Pyx_RefnannyAPIStruct; -static __Pyx_RefnannyAPIStruct* __Pyx_Refnanny = NULL; +static __Pyx_RefnannyAPIStruct *__Pyx_Refnanny = NULL; #define __Pyx_ImportRefcountAPI(name) \ - (__Pyx_RefnannyAPIStruct*) PyCObject_Import((char *)name, (char *)\"RefnannyAPI\") -#define __Pyx_INCREF(r) __Pyx_Refnanny->INCREF(__pyx_refchk, ((PyObject*)r), __LINE__) -#define __Pyx_DECREF(r) __Pyx_Refnanny->DECREF(__pyx_refchk, ((PyObject*)r), __LINE__) -#define __Pyx_GOTREF(r) __Pyx_Refnanny->GOTREF(__pyx_refchk, ((PyObject*)r), __LINE__) -#define __Pyx_GIVEREF(r) __Pyx_Refnanny->GIVEREF(__pyx_refchk, ((PyObject*)r), __LINE__) + (__Pyx_RefnannyAPIStruct *) PyCObject_Import((char *)name, (char *)\"RefnannyAPI\") +#define __Pyx_INCREF(r) __Pyx_Refnanny->INCREF(__pyx_refchk, (PyObject *)(r), __LINE__) +#define __Pyx_DECREF(r) __Pyx_Refnanny->DECREF(__pyx_refchk, (PyObject *)(r), __LINE__) +#define __Pyx_GOTREF(r) __Pyx_Refnanny->GOTREF(__pyx_refchk, (PyObject *)(r), __LINE__) +#define __Pyx_GIVEREF(r) __Pyx_Refnanny->GIVEREF(__pyx_refchk, (PyObject *)(r), __LINE__) #define __Pyx_XDECREF(r) if((r) == NULL) ; else __Pyx_DECREF(r) #define __Pyx_SetupRefcountContext(name) \ void* __pyx_refchk = __Pyx_Refnanny->NewContext((name), __LINE__)