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
eaecf7a0
Commit
eaecf7a0
authored
Aug 12, 2013
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use shared module for more Cython types.
parent
ee1dc804
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
12 deletions
+9
-12
Cython/Utility/CommonTypes.c
Cython/Utility/CommonTypes.c
+1
-1
Cython/Utility/CythonFunction.c
Cython/Utility/CythonFunction.c
+4
-9
Cython/Utility/Generator.c
Cython/Utility/Generator.c
+4
-2
No files found.
Cython/Utility/CommonTypes.c
View file @
eaecf7a0
...
@@ -10,7 +10,7 @@ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) {
...
@@ -10,7 +10,7 @@ static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) {
PyObject
*
sys_modules
=
NULL
;
PyObject
*
sys_modules
=
NULL
;
PyObject
*
args
=
NULL
;
PyObject
*
args
=
NULL
;
PyTypeObject
*
cached_type
=
NULL
;
PyTypeObject
*
cached_type
=
NULL
;
char
*
cython_module
=
"_cython_"
CYTHON_ABI
;
c
onst
c
har
*
cython_module
=
"_cython_"
CYTHON_ABI
;
if
(
fake_module
==
NULL
)
{
if
(
fake_module
==
NULL
)
{
sys
=
PyImport_ImportModule
(
"sys"
);
if
(
sys
==
NULL
)
goto
bad
;
sys
=
PyImport_ImportModule
(
"sys"
);
if
(
sys
==
NULL
)
goto
bad
;
sys_modules
=
PyObject_GetAttrString
(
sys
,
"modules"
);
if
(
sys_modules
==
NULL
)
goto
bad
;
sys_modules
=
PyObject_GetAttrString
(
sys
,
"modules"
);
if
(
sys_modules
==
NULL
)
goto
bad
;
...
...
Cython/Utility/CythonFunction.c
View file @
eaecf7a0
...
@@ -646,15 +646,10 @@ static int __Pyx_CyFunction_init(void) {
...
@@ -646,15 +646,10 @@ static int __Pyx_CyFunction_init(void) {
// avoid a useless level of call indirection
// avoid a useless level of call indirection
__pyx_CyFunctionType_type
.
tp_call
=
PyCFunction_Call
;
__pyx_CyFunctionType_type
.
tp_call
=
PyCFunction_Call
;
#endif
#endif
#if 1
__pyx_CyFunctionType
=
__Pyx_FetchCommonType
(
&
__pyx_CyFunctionType_type
);
__pyx_CyFunctionType
=
__Pyx_FetchCommonType
(
&
__pyx_CyFunctionType_type
);
if
(
__pyx_CyFunctionType
==
NULL
)
if
(
__pyx_CyFunctionType
==
NULL
)
{
return
-
1
;
return
-
1
;
#else
}
if
(
PyType_Ready
(
&
__pyx_CyFunctionType_type
)
<
0
)
return
-
1
;
__pyx_CyFunctionType
=
&
__pyx_CyFunctionType_type
;
#endif
return
0
;
return
0
;
}
}
...
@@ -1095,10 +1090,10 @@ static PyTypeObject __pyx_FusedFunctionType_type = {
...
@@ -1095,10 +1090,10 @@ static PyTypeObject __pyx_FusedFunctionType_type = {
};
};
static
int
__pyx_FusedFunction_init
(
void
)
{
static
int
__pyx_FusedFunction_init
(
void
)
{
if
(
PyType_Ready
(
&
__pyx_FusedFunctionType_type
)
<
0
)
{
__pyx_FusedFunctionType
=
__Pyx_FetchCommonType
(
&
__pyx_FusedFunctionType_type
);
if
(
__pyx_FusedFunctionType
==
NULL
)
{
return
-
1
;
return
-
1
;
}
}
__pyx_FusedFunctionType
=
&
__pyx_FusedFunctionType_type
;
return
0
;
return
0
;
}
}
...
...
Cython/Utility/Generator.c
View file @
eaecf7a0
...
@@ -57,6 +57,7 @@ static int __Pyx_PyGen_FetchStopIterationValue(PyObject **pvalue);
...
@@ -57,6 +57,7 @@ static int __Pyx_PyGen_FetchStopIterationValue(PyObject **pvalue);
//@requires: Exceptions.c::SwapException
//@requires: Exceptions.c::SwapException
//@requires: Exceptions.c::RaiseException
//@requires: Exceptions.c::RaiseException
//@requires: ObjectHandling.c::PyObjectCallMethod
//@requires: ObjectHandling.c::PyObjectCallMethod
//@requires: CommonTypes.c::FetchCommonType
static
PyObject
*
__Pyx_Generator_Next
(
PyObject
*
self
);
static
PyObject
*
__Pyx_Generator_Next
(
PyObject
*
self
);
static
PyObject
*
__Pyx_Generator_Send
(
PyObject
*
self
,
PyObject
*
value
);
static
PyObject
*
__Pyx_Generator_Send
(
PyObject
*
self
,
PyObject
*
value
);
...
@@ -653,9 +654,10 @@ static int __pyx_Generator_init(void) {
...
@@ -653,9 +654,10 @@ static int __pyx_Generator_init(void) {
/* on Windows, C-API functions can't be used in slots statically */
/* on Windows, C-API functions can't be used in slots statically */
__pyx_GeneratorType_type
.
tp_getattro
=
PyObject_GenericGetAttr
;
__pyx_GeneratorType_type
.
tp_getattro
=
PyObject_GenericGetAttr
;
__pyx_GeneratorType_type
.
tp_iter
=
PyObject_SelfIter
;
__pyx_GeneratorType_type
.
tp_iter
=
PyObject_SelfIter
;
if
(
PyType_Ready
(
&
__pyx_GeneratorType_type
))
{
__pyx_GeneratorType
=
__Pyx_FetchCommonType
(
&
__pyx_GeneratorType_type
);
if
(
__pyx_GeneratorType
==
NULL
)
{
return
-
1
;
return
-
1
;
}
}
__pyx_GeneratorType
=
&
__pyx_GeneratorType_type
;
return
0
;
return
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