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
bfc53499
Commit
bfc53499
authored
Apr 13, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some function declarations in CythonFunction.c
parent
706d9fa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
Cython/Utility/CythonFunction.c
Cython/Utility/CythonFunction.c
+5
-9
No files found.
Cython/Utility/CythonFunction.c
View file @
bfc53499
...
...
@@ -502,16 +502,14 @@ static PyTypeObject __pyx_CyFunctionType_type = {
};
static
int
__Pyx_CyFunction_init
(
void
)
{
static
int
__Pyx_CyFunction_init
(
void
)
{
if
(
PyType_Ready
(
&
__pyx_CyFunctionType_type
)
<
0
)
return
-
1
;
__pyx_CyFunctionType
=
&
__pyx_CyFunctionType_type
;
return
0
;
}
void
*
__Pyx_CyFunction_InitDefaults
(
PyObject
*
func
,
size_t
size
,
int
pyobjects
)
{
static
CYTHON_INLINE
void
*
__Pyx_CyFunction_InitDefaults
(
PyObject
*
func
,
size_t
size
,
int
pyobjects
)
{
__pyx_CyFunctionObject
*
m
=
(
__pyx_CyFunctionObject
*
)
func
;
m
->
defaults
=
PyMem_Malloc
(
size
);
...
...
@@ -522,12 +520,12 @@ void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects)
return
m
->
defaults
;
}
static
void
__Pyx_CyFunction_SetDefaultsTuple
(
PyObject
*
func
,
PyObject
*
tuple
)
{
static
CYTHON_INLINE
void
__Pyx_CyFunction_SetDefaultsTuple
(
PyObject
*
func
,
PyObject
*
tuple
)
{
__pyx_CyFunctionObject
*
m
=
(
__pyx_CyFunctionObject
*
)
func
;
m
->
defaults_tuple
=
tuple
;
Py_INCREF
(
tuple
);
}
//////////////////// CyFunctionClassCell.proto ////////////////////
static
CYTHON_INLINE
void
__Pyx_CyFunction_InitClassCell
(
PyObject
*
cyfunctions
,
PyObject
*
classobj
);
...
...
@@ -535,9 +533,7 @@ static CYTHON_INLINE void __Pyx_CyFunction_InitClassCell(PyObject *cyfunctions,
//////////////////// CyFunctionClassCell ////////////////////
//@requires: CythonFunction
void
__Pyx_CyFunction_InitClassCell
(
PyObject
*
cyfunctions
,
PyObject
*
classobj
)
{
static
CYTHON_INLINE
void
__Pyx_CyFunction_InitClassCell
(
PyObject
*
cyfunctions
,
PyObject
*
classobj
)
{
int
i
;
for
(
i
=
0
;
i
<
PyList_GET_SIZE
(
cyfunctions
);
i
++
)
{
...
...
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