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
e922fc0d
Commit
e922fc0d
authored
May 15, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed PyMethod_New() call
parent
22b3567a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-1
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+4
-2
No files found.
Cython/Compiler/ExprNodes.py
View file @
e922fc0d
...
@@ -2470,7 +2470,7 @@ class UnboundMethodNode(ExprNode):
...
@@ -2470,7 +2470,7 @@ class UnboundMethodNode(ExprNode):
def
generate_result_code
(
self
,
code
):
def
generate_result_code
(
self
,
code
):
code
.
putln
(
code
.
putln
(
"%s = PyMethod_New(%s, 0, %s); %s"
%
(
"%s =
__Pyx_
PyMethod_New(%s, 0, %s); %s"
%
(
self
.
result_code
,
self
.
result_code
,
self
.
function
.
py_result
(),
self
.
function
.
py_result
(),
self
.
class_cname
,
self
.
class_cname
,
...
...
Cython/Compiler/ModuleNode.py
View file @
e922fc0d
...
@@ -415,8 +415,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -415,8 +415,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code
.
putln
(
"#endif"
)
code
.
putln
(
"#endif"
)
code
.
putln
(
"#if PY_MAJOR_VERSION >= 3"
)
code
.
putln
(
"#if PY_MAJOR_VERSION >= 3"
)
code
.
putln
(
" #define PyMethod_New(func, self, klass) (func!=NULL?(Py_INCREF(func),func):NULL)"
)
code
.
putln
(
" #define PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)"
)
code
.
putln
(
" #define PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)"
)
code
.
putln
(
" #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, klass)"
)
code
.
putln
(
"#else"
)
code
.
putln
(
" #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)"
)
code
.
putln
(
"#endif"
)
code
.
putln
(
"#endif"
)
code
.
putln
(
"#ifndef __stdcall"
)
code
.
putln
(
"#ifndef __stdcall"
)
...
...
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