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
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
Show 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 = {
...
@@ -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
)
if
(
PyType_Ready
(
&
__pyx_CyFunctionType_type
)
<
0
)
return
-
1
;
return
-
1
;
__pyx_CyFunctionType
=
&
__pyx_CyFunctionType_type
;
__pyx_CyFunctionType
=
&
__pyx_CyFunctionType_type
;
return
0
;
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
;
__pyx_CyFunctionObject
*
m
=
(
__pyx_CyFunctionObject
*
)
func
;
m
->
defaults
=
PyMem_Malloc
(
size
);
m
->
defaults
=
PyMem_Malloc
(
size
);
...
@@ -522,12 +520,12 @@ void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects)
...
@@ -522,12 +520,12 @@ void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects)
return
m
->
defaults
;
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
;
__pyx_CyFunctionObject
*
m
=
(
__pyx_CyFunctionObject
*
)
func
;
m
->
defaults_tuple
=
tuple
;
m
->
defaults_tuple
=
tuple
;
Py_INCREF
(
tuple
);
Py_INCREF
(
tuple
);
}
}
//////////////////// CyFunctionClassCell.proto ////////////////////
//////////////////// CyFunctionClassCell.proto ////////////////////
static
CYTHON_INLINE
void
__Pyx_CyFunction_InitClassCell
(
PyObject
*
cyfunctions
,
static
CYTHON_INLINE
void
__Pyx_CyFunction_InitClassCell
(
PyObject
*
cyfunctions
,
PyObject
*
classobj
);
PyObject
*
classobj
);
...
@@ -535,9 +533,7 @@ static CYTHON_INLINE void __Pyx_CyFunction_InitClassCell(PyObject *cyfunctions,
...
@@ -535,9 +533,7 @@ static CYTHON_INLINE void __Pyx_CyFunction_InitClassCell(PyObject *cyfunctions,
//////////////////// CyFunctionClassCell ////////////////////
//////////////////// CyFunctionClassCell ////////////////////
//@requires: CythonFunction
//@requires: CythonFunction
void
__Pyx_CyFunction_InitClassCell
(
PyObject
*
cyfunctions
,
static
CYTHON_INLINE
void
__Pyx_CyFunction_InitClassCell
(
PyObject
*
cyfunctions
,
PyObject
*
classobj
)
{
PyObject
*
classobj
)
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
PyList_GET_SIZE
(
cyfunctions
);
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