From: Stefan Behnel Date: Fri, 20 Mar 2009 14:30:09 +0000 (+0100) Subject: fix struct auto-typedef-ing X-Git-Tag: 0.12.alpha0~373 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=238d5e664747d6432600842a95482bd7a62fb936;p=cython.git fix struct auto-typedef-ing --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index a7b8077f..0c4e2258 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -849,7 +849,8 @@ class CStructOrUnionDefNode(StatNode): self.name, struct_entry.type, self.pos, cname = self.cname, visibility='ignore') struct_entry.type.typedef_flag = False - struct_entry.cname = struct_entry.type.cname = env.new_const_cname() + # FIXME: this might be considered a hack ;-) + struct_entry.cname = struct_entry.type.cname = '_' + self.cname def analyse_expressions(self, env): pass