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
00996574
Commit
00996574
authored
Mar 27, 2012
by
Vitja Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix C++ error about redeclared __pyx_GeneratorType
parent
3ab206d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
Cython/Utility/Generator.c
Cython/Utility/Generator.c
+10
-5
No files found.
Cython/Utility/Generator.c
View file @
00996574
...
...
@@ -61,8 +61,9 @@ static PyObject *__Pyx_Generator_Send(PyObject *self, PyObject *value);
static
PyObject
*
__Pyx_Generator_Close
(
PyObject
*
self
);
static
PyObject
*
__Pyx_Generator_Throw
(
PyObject
*
gen
,
PyObject
*
args
);
static
PyTypeObject
__pyx_GeneratorType
;
#define __Pyx_Generator_CheckExact(obj) (Py_TYPE(obj) == &__pyx_GeneratorType)
static
PyTypeObject
*
__pyx_GeneratorType
=
0
;
#define __Pyx_Generator_CheckExact(obj) (Py_TYPE(obj) == __pyx_GeneratorType)
#define __Pyx_Generator_Undelegate(gen) Py_CLEAR((gen)->yieldfrom)
// If StopIteration exception is set, fetches its 'value'
...
...
@@ -518,7 +519,7 @@ static PyMethodDef __pyx_Generator_methods[] = {
{
0
,
0
,
0
,
0
}
};
static
PyTypeObject
__pyx_GeneratorType
=
{
static
PyTypeObject
__pyx_GeneratorType
_type
=
{
PyVarObject_HEAD_INIT
(
0
,
0
)
__Pyx_NAMESTR
(
"generator"
),
/*tp_name*/
sizeof
(
__pyx_GeneratorObject
),
/*tp_basicsize*/
...
...
@@ -577,7 +578,7 @@ static PyTypeObject __pyx_GeneratorType = {
static
__pyx_GeneratorObject
*
__Pyx_Generator_New
(
__pyx_generator_body_t
body
,
PyObject
*
closure
)
{
__pyx_GeneratorObject
*
gen
=
PyObject_GC_New
(
__pyx_GeneratorObject
,
&
__pyx_GeneratorType
);
PyObject_GC_New
(
__pyx_GeneratorObject
,
&
__pyx_GeneratorType
_type
);
if
(
gen
==
NULL
)
return
NULL
;
...
...
@@ -599,5 +600,9 @@ static __pyx_GeneratorObject *__Pyx_Generator_New(__pyx_generator_body_t body,
}
static
int
__pyx_Generator_init
(
void
)
{
return
PyType_Ready
(
&
__pyx_GeneratorType
);
if
(
PyType_Ready
(
&
__pyx_GeneratorType_type
))
{
return
-
1
;
}
__pyx_GeneratorType
=
&
__pyx_GeneratorType_type
;
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