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
58c28d1a
Commit
58c28d1a
authored
Oct 29, 2017
by
Lisandro Dalcin
Committed by
GitHub
Oct 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1951 from cython/dalcinl/fix-release
Minor C code generation/utility fixes
parents
74409491
32e305ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+3
-1
Cython/Utility/CythonFunction.c
Cython/Utility/CythonFunction.c
+1
-1
No files found.
Cython/Compiler/ModuleNode.py
View file @
58c28d1a
...
...
@@ -358,7 +358,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code
=
globalstate
[
'before_global_var'
]
code
.
putln
(
'#define __Pyx_MODULE_NAME "%s"'
%
self
.
full_module_name
)
code
.
putln
(
"int %s%s = 0;"
%
(
Naming
.
module_is_main
,
self
.
full_module_name
.
replace
(
'.'
,
'__'
)))
module_is_main
=
"%s%s"
%
(
Naming
.
module_is_main
,
self
.
full_module_name
.
replace
(
'.'
,
'__'
))
code
.
putln
(
"extern int %s;"
%
module_is_main
)
code
.
putln
(
"int %s = 0;"
%
module_is_main
)
code
.
putln
(
""
)
code
.
putln
(
"/* Implementation of '%s' */"
%
env
.
qualified_name
)
...
...
Cython/Utility/CythonFunction.c
View file @
58c28d1a
...
...
@@ -414,7 +414,7 @@ static PyGetSetDef __pyx_CyFunction_getsets[] = {
};
static
PyMemberDef
__pyx_CyFunction_members
[]
=
{
{(
char
*
)
"__module__"
,
T_OBJECT
,
offsetof
(
__pyx_CyFunctionObject
,
func
.
m_module
),
PY_WRITE_RESTRICTED
,
0
},
{(
char
*
)
"__module__"
,
T_OBJECT
,
offsetof
(
PyCFunctionObject
,
m_module
),
PY_WRITE_RESTRICTED
,
0
},
{
0
,
0
,
0
,
0
,
0
}
};
...
...
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