From 238d5e664747d6432600842a95482bd7a62fb936 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 20 Mar 2009 15:30:09 +0100 Subject: [PATCH] fix struct auto-typedef-ing --- Cython/Compiler/Nodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2