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
Gwenaël Samain
cython
Commits
95faf8af
Commit
95faf8af
authored
Feb 22, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use __Pyx_DOCSTR() and __Pyx_NAMESTR() for module docstring and name
parent
9a3489c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+2
-2
No files found.
Cython/Compiler/ModuleNode.py
View file @
95faf8af
...
...
@@ -1714,14 +1714,14 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
def
generate_pymoduledef_struct
(
self
,
env
,
code
):
if
env
.
doc
:
doc
=
env
.
doc_cname
doc
=
"__Pyx_DOCSTR(%s)"
%
env
.
doc_cname
else
:
doc
=
"0"
code
.
putln
(
""
)
code
.
putln
(
"#if PY_MAJOR_VERSION >= 3"
)
code
.
putln
(
"static struct PyModuleDef %s = {"
%
Naming
.
pymoduledef_cname
)
code
.
putln
(
" PyModuleDef_HEAD_INIT,"
)
code
.
putln
(
'
"%s"
,'
%
env
.
module_name
)
code
.
putln
(
'
__Pyx_NAMESTR("%s")
,'
%
env
.
module_name
)
code
.
putln
(
" %s, /* m_doc */"
%
doc
)
code
.
putln
(
" -1, /* m_size */"
)
code
.
putln
(
" %s /* m_methods */,"
%
env
.
method_table_cname
)
...
...
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