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
ddaf35b0
Commit
ddaf35b0
authored
Apr 08, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
used copied CPython PyCFunction_Call() function also for fused functions in PyPy
parent
a286151e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
Cython/Utility/CythonFunction.c
Cython/Utility/CythonFunction.c
+6
-2
Cython/Utility/ModuleSetupCode.c
Cython/Utility/ModuleSetupCode.c
+0
-6
No files found.
Cython/Utility/CythonFunction.c
View file @
ddaf35b0
...
...
@@ -533,6 +533,8 @@ static CYTHON_INLINE void __Pyx_CyFunction_InitClassCell(PyObject *cyfunctions,
PyObject
*
classobj
);
//////////////////// CyFunctionClassCell ////////////////////
//@requires: CythonFunction
void
__Pyx_CyFunction_InitClassCell
(
PyObject
*
cyfunctions
,
PyObject
*
classobj
)
{
...
...
@@ -567,6 +569,8 @@ static int __pyx_FusedFunction_init(void);
#define __Pyx_FusedFunction_USED
//////////////////// FusedFunction ////////////////////
//@requires: CythonFunction
static
PyObject
*
__pyx_FusedFunction_New
(
PyTypeObject
*
type
,
PyMethodDef
*
ml
,
int
flags
,
PyObject
*
self
,
PyObject
*
module
,
PyObject
*
code
)
...
...
@@ -765,12 +769,12 @@ __pyx_FusedFunction_callfunction(PyObject *func, PyObject *args, PyObject *kw)
m_self
=
cyfunc
->
func
.
m_self
;
cyfunc
->
func
.
m_self
=
self
;
result
=
__Pyx_
PyC
Function_Call
(
func
,
new_args
,
kw
);
result
=
__Pyx_
Cy
Function_Call
(
func
,
new_args
,
kw
);
cyfunc
->
func
.
m_self
=
m_self
;
Py_DECREF
(
new_args
);
}
else
{
result
=
__Pyx_
PyC
Function_Call
(
func
,
args
,
kw
);
result
=
__Pyx_
Cy
Function_Call
(
func
,
args
,
kw
);
}
return
result
;
...
...
Cython/Utility/ModuleSetupCode.c
View file @
ddaf35b0
...
...
@@ -40,12 +40,6 @@
#define CYTHON_COMPILING_IN_CPYTHON 1
#endif
#if CYTHON_COMPILING_IN_PYPY
#define __Pyx_PyCFunction_Call PyObject_Call
#else
#define __Pyx_PyCFunction_Call PyCFunction_Call
#endif
#if PY_VERSION_HEX < 0x02050000
typedef
int
Py_ssize_t
;
#define PY_SSIZE_T_MAX INT_MAX
...
...
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