From: W. Trevor King Date: Thu, 3 Mar 2011 15:13:30 +0000 (-0500) Subject: Use explicit visibilities in typedef declaration in SingleAssignmentNode.analyse_decl... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=08efd0b2612ea0e62efa6e1f4fec6ad387fc23a0;p=cython.git Use explicit visibilities in typedef declaration in SingleAssignmentNode.analyse_declarations(). --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 9c92b8c4..dbe743b5 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3473,7 +3473,11 @@ class SingleAssignmentNode(AssignmentNode): self.declaration_only = True if not isinstance(lhs, ExprNodes.NameNode): error(lhs.pos, "Invalid declaration.") - env.declare_typedef(lhs.name, type, self.pos, visibility='private') + binding = Binding( + name = lhs.name, c_visibility='private', + visibility='public') + env.WTK_declare_typedef( + binding, base_type = type, pos = self.pos) elif func_name in ['struct', 'union']: self.declaration_only = True