From: Stefan Behnel Date: Fri, 11 Sep 2009 18:01:09 +0000 (+0200) Subject: cdef enums seem to require an analyse_expressions() X-Git-Tag: 0.12.alpha0~216 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7a0e473148edca47135be7e6255d248a5c2bf063;p=cython.git cdef enums seem to require an analyse_expressions() --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index e61bf244..b0ba4da1 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -906,6 +906,9 @@ class CEnumDefNode(StatNode): for item in self.items: item.analyse_declarations(env, self.entry) + def analyse_expressions(self, env): + pass + def generate_execution_code(self, code): if self.visibility == 'public': temp = code.funcstate.allocate_temp(PyrexTypes.py_object_type, manage_ref=True)