Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
f614efff
Commit
f614efff
authored
Jul 30, 2008
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Module init func must also declare codewrite temps
parent
e5928882
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+5
-2
No files found.
Cython/Compiler/ModuleNode.py
View file @
f614efff
...
...
@@ -1547,8 +1547,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code
.
putln
(
header3
)
code
.
putln
(
"#endif"
)
code
.
putln
(
"{"
)
code
.
put_var_declarations
(
env
.
temp_entries
)
tempdecl_code
=
code
.
insertion_point
()
code
.
putln
(
"%s = PyTuple_New(0); %s"
%
(
Naming
.
empty_tuple
,
code
.
error_goto_if_null
(
Naming
.
empty_tuple
,
self
.
pos
)));
code
.
putln
(
"/*--- Libary function declarations ---*/"
)
...
...
@@ -1609,6 +1608,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code
.
putln
(
"return NULL;"
)
code
.
putln
(
"#endif"
)
code
.
putln
(
'}'
)
tempdecl_code
.
put_var_declarations
(
env
.
temp_entries
)
tempdecl_code
.
put_temp_declarations
(
code
.
func
)
code
.
exit_cfunc_scope
()
def
generate_module_cleanup_func
(
self
,
env
,
code
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment