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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
3e9bfbb6
Commit
3e9bfbb6
authored
Jan 27, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
merge 0.18.x branch into master
parents
4075ee72
372afe70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+5
-0
No files found.
Cython/Compiler/ModuleNode.py
View file @
3e9bfbb6
...
@@ -2077,7 +2077,12 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -2077,7 +2077,12 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code
.
putln
(
""
)
code
.
putln
(
""
)
code
.
putln
(
"#if PY_MAJOR_VERSION >= 3"
)
code
.
putln
(
"#if PY_MAJOR_VERSION >= 3"
)
code
.
putln
(
"static struct PyModuleDef %s = {"
%
Naming
.
pymoduledef_cname
)
code
.
putln
(
"static struct PyModuleDef %s = {"
%
Naming
.
pymoduledef_cname
)
code
.
putln
(
"#if PY_VERSION_HEX < 0x03020000"
)
# fix C compiler warnings due to missing initialisers
code
.
putln
(
" { PyObject_HEAD_INIT(NULL) NULL, 0, NULL },"
)
code
.
putln
(
"#else"
)
code
.
putln
(
" PyModuleDef_HEAD_INIT,"
)
code
.
putln
(
" PyModuleDef_HEAD_INIT,"
)
code
.
putln
(
"#endif"
)
code
.
putln
(
' __Pyx_NAMESTR("%s"),'
%
env
.
module_name
)
code
.
putln
(
' __Pyx_NAMESTR("%s"),'
%
env
.
module_name
)
code
.
putln
(
" %s, /* m_doc */"
%
doc
)
code
.
putln
(
" %s, /* m_doc */"
%
doc
)
code
.
putln
(
" -1, /* m_size */"
)
code
.
putln
(
" -1, /* m_size */"
)
...
...
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