From: Lisandro Dalcin Date: Fri, 8 Apr 2011 04:06:17 +0000 (-0300) Subject: fix pŕevious commit mixing declarations and code X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1ea1bac7cffe70bdd5f914f47659484cc784b600;p=cython.git fix pŕevious commit mixing declarations and code --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 24809d68..c70318a2 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -1374,7 +1374,7 @@ class CCodeWriter(object): return self.globalstate.lookup_filename(filename) def put_declare_refcount_context(self): - self.putln('__Pyx_RefNannyDeclarations;') + self.putln('__Pyx_RefNannyDeclarations') def put_setup_refcount_context(self, name): self.putln('__Pyx_RefNannySetupContext("%s");' % name) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 35c54180..459a89d7 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -2758,7 +2758,7 @@ proto=""" } __Pyx_RefNannyAPIStruct; static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL; static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); /*proto*/ - #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL + #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL; #define __Pyx_RefNannySetupContext(name) \ __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__) #define __Pyx_RefNannyFinishContext() \