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
6ab8a67a
Commit
6ab8a67a
authored
Oct 25, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed stupid mistake from cleaning up Lisandros patch
parent
8ce95451
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
Cython/Compiler/Builtin.py
Cython/Compiler/Builtin.py
+15
-12
No files found.
Cython/Compiler/Builtin.py
View file @
6ab8a67a
...
...
@@ -173,13 +173,13 @@ proto = """
#if PY_VERSION_HEX < 0x02050000
#ifndef PyAnySet_CheckExact
#define PyAnySet_CheckExact(ob)
\
((ob)->ob_type ==
((PyTypeObject*)&PySet_Type) ||
\
(ob)->ob_type ==
((PyTypeObject*)&PyFrozenSet_Type)
)
#define PyAnySet_CheckExact(ob)
\
\
((ob)->ob_type ==
&PySet_Type ||
\
\
(ob)->ob_type ==
&PyFrozenSet_Type
)
#define PySet_New(iterable)
\
#define PySet_New(iterable)
\
\
PyObject_CallFunctionObjArgs((PyObject *)PySet_Type, iterable, NULL)
#define Pyx_PyFrozenSet_New(iterable)
\
#define Pyx_PyFrozenSet_New(iterable)
\
\
PyObject_CallFunctionObjArgs((PyObject *)PyFrozenSet_Type, iterable, NULL)
#define PySet_Size(anyset) PyObject_Size(anyset)
...
...
@@ -210,12 +210,15 @@ static INLINE int PySet_Add(PyObject *set, PyObject *key) {
#ifndef Py_SETOBJECT_H
#define Py_SETOBJECT_H
static PyTypeObject *PySet_Type = NULL;
static PyTypeObject *PyFrozenSet_Type = NULL;
static PyTypeObject *
__Pyx_
PySet_Type = NULL;
static PyTypeObject *
__Pyx_
PyFrozenSet_Type = NULL;
#define PyAnySet_Check(ob)
\
(PyAnySet_CheckExact(ob) ||
\
PyType_IsSubtype((ob)->ob_type, &PySet_Type) ||
\
#define PySet_Type (*__Pyx_PySet_Type)
#define PyFrozenSet_Type (*__Pyx_PyFrozenSet_Type)
#define PyAnySet_Check(ob)
\
\
(PyAnySet_CheckExact(ob) ||
\
\
PyType_IsSubtype((ob)->ob_type, &PySet_Type) ||
\
\
PyType_IsSubtype((ob)->ob_type, &PyFrozenSet_Type))
#define PyFrozenSet_CheckExact(ob) ((ob)->ob_type == &PyFrozenSet_Type)
...
...
@@ -233,8 +236,8 @@ static int __Pyx_Py23SetsImport(void) {
if (!ImmutableSet) goto bad;
Py_DECREF(sets);
PySet_Type = (PyTypeObject*) Set;
PyFrozenSet_Type = (PyTypeObject*) ImmutableSet;
__Pyx_
PySet_Type = (PyTypeObject*) Set;
__Pyx_
PyFrozenSet_Type = (PyTypeObject*) ImmutableSet;
/* FIXME: this should be done in dedicated module cleanup code */
/*
...
...
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