projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70ea30b
)
fix string constants defined in extension classes
author
Stefan Behnel
<scoder@users.berlios.de>
Tue, 22 Apr 2008 16:45:31 +0000
(18:45 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Tue, 22 Apr 2008 16:45:31 +0000
(18:45 +0200)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index c17f332a32bbd092326e9e4ff464ac990d1b1b0e..b87264fed9f9bb6715f2457236f03577fb594225 100644
(file)
--- a/
Cython/Compiler/Nodes.py
+++ b/
Cython/Compiler/Nodes.py
@@
-1965,7
+1965,7
@@
class PyClassDefNode(StatNode, BlockNode):
self.dict.generate_disposal_code(code)
-class CClassDefNode(StatNode):
+class CClassDefNode(StatNode
, BlockNode
):
# An extension type definition.
#
# visibility 'private' or 'public' or 'extern'
@@
-2058,6
+2058,7
@@
class CClassDefNode(StatNode):
self.body.analyse_expressions(scope)
def generate_function_definitions(self, env, code, transforms):
+ self.generate_py_string_decls(self.entry.type.scope, code)
if self.body:
self.body.generate_function_definitions(
self.entry.type.scope, code, transforms)