From: bluecreature@gmail.com Date: Wed, 13 Feb 2008 04:36:57 +0000 (-0800) Subject: Cython disregards the c-name for "cdef public" class members X-Git-Tag: 0.9.6.14~29^2~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0cd6752133410875b42db560fb8d04a2d42ca2cf;p=cython.git Cython disregards the c-name for "cdef public" class members --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 5e529b59..0c0469b6 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1207,7 +1207,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln('{"%s", %s, %s, %s, 0},' % ( entry.name, type_code, - "offsetof(%s, %s)" % (objstruct, entry.name), + "offsetof(%s, %s)" % (objstruct, entry.cname), flags)) code.putln( "{0, 0, 0, 0, 0}")