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
73414b22
Commit
73414b22
authored
Feb 20, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move dict.*() method implementations from Optimize.c to Builtin.c
parent
f0df11b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
51 deletions
+52
-51
Cython/Compiler/Builtin.py
Cython/Compiler/Builtin.py
+3
-3
Cython/Utility/Builtins.c
Cython/Utility/Builtins.c
+49
-0
Cython/Utility/Optimize.c
Cython/Utility/Optimize.c
+0
-48
No files found.
Cython/Compiler/Builtin.py
View file @
73414b22
...
...
@@ -282,11 +282,11 @@ builtin_types_table = [
]),
(
"dict"
,
"PyDict_Type"
,
[
BuiltinMethod
(
"items"
,
"T"
,
"O"
,
"__Pyx_PyDict_Items"
,
utility_code
=
UtilityCode
.
load
(
"py_dict_items"
,
"
Optimize
.c"
)),
utility_code
=
UtilityCode
.
load
(
"py_dict_items"
,
"
Builtins
.c"
)),
BuiltinMethod
(
"keys"
,
"T"
,
"O"
,
"__Pyx_PyDict_Keys"
,
utility_code
=
UtilityCode
.
load
(
"py_dict_keys"
,
"
Optimize
.c"
)),
utility_code
=
UtilityCode
.
load
(
"py_dict_keys"
,
"
Builtins
.c"
)),
BuiltinMethod
(
"values"
,
"T"
,
"O"
,
"__Pyx_PyDict_Values"
,
utility_code
=
UtilityCode
.
load
(
"py_dict_values"
,
"
Optimize
.c"
)),
utility_code
=
UtilityCode
.
load
(
"py_dict_values"
,
"
Builtins
.c"
)),
BuiltinMethod
(
"clear"
,
"T"
,
"r"
,
"__Pyx_PyDict_Clear"
,
utility_code
=
UtilityCode
.
load
(
"py_dict_clear"
,
"Optimize.c"
)),
BuiltinMethod
(
"copy"
,
"T"
,
"T"
,
"PyDict_Copy"
)]),
...
...
Cython/Utility/Builtins.c
View file @
73414b22
...
...
@@ -243,3 +243,52 @@ static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_abs_longlong(PY_LONG_LONG x) {
//////////////////// pow2.proto ////////////////////
#define __Pyx_PyNumber_Power2(a, b) PyNumber_Power(a, b, Py_None)
//////////////////// py_dict_keys.proto ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Keys
(
PyObject
*
d
);
/*proto*/
#else
#define __Pyx_PyDict_Keys(d) PyDict_Keys(d)
#endif
//////////////////// py_dict_keys ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Keys
(
PyObject
*
d
)
{
return
PyObject_CallMethodObjArgs
(
d
,
PYIDENT
(
"keys"
),
NULL
);
}
#endif
//////////////////// py_dict_values.proto ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Values
(
PyObject
*
d
);
/*proto*/
#else
#define __Pyx_PyDict_Values(d) PyDict_Values(d)
#endif
//////////////////// py_dict_values ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Values
(
PyObject
*
d
)
{
return
PyObject_CallMethodObjArgs
(
d
,
PYIDENT
(
"values"
),
NULL
);
}
#endif
//////////////////// py_dict_items.proto ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Items
(
PyObject
*
d
);
/*proto*/
#else
#define __Pyx_PyDict_Items(d) PyDict_Items(d)
#endif
//////////////////// py_dict_items ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Items
(
PyObject
*
d
)
{
return
PyObject_CallMethodObjArgs
(
d
,
PYIDENT
(
"items"
),
NULL
);
}
#endif
Cython/Utility/Optimize.c
View file @
73414b22
...
...
@@ -347,54 +347,6 @@ static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *ke
#define __Pyx_PyDict_Clear(d) (PyDict_Clear(d), 0)
//////////////////// py_dict_keys.proto ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Keys
(
PyObject
*
d
);
/*proto*/
#else
#define __Pyx_PyDict_Keys(d) PyDict_Keys(d)
#endif
//////////////////// py_dict_keys ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Keys
(
PyObject
*
d
)
{
return
PyObject_CallMethodObjArgs
(
d
,
PYIDENT
(
"keys"
),
NULL
);
}
#endif
//////////////////// py_dict_values.proto ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Values
(
PyObject
*
d
);
/*proto*/
#else
#define __Pyx_PyDict_Values(d) PyDict_Values(d)
#endif
//////////////////// py_dict_values ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Values
(
PyObject
*
d
)
{
return
PyObject_CallMethodObjArgs
(
d
,
PYIDENT
(
"values"
),
NULL
);
}
#endif
//////////////////// py_dict_items.proto ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Items
(
PyObject
*
d
);
/*proto*/
#else
#define __Pyx_PyDict_Items(d) PyDict_Items(d)
#endif
//////////////////// py_dict_items ////////////////////
#if PY_MAJOR_VERSION >= 3
static
CYTHON_INLINE
PyObject
*
__Pyx_PyDict_Items
(
PyObject
*
d
)
{
return
PyObject_CallMethodObjArgs
(
d
,
PYIDENT
(
"items"
),
NULL
);
}
#endif
/////////////// dict_iter.proto ///////////////
static
CYTHON_INLINE
PyObject
*
__Pyx_dict_iterator
(
PyObject
*
dict
,
int
is_dict
,
PyObject
*
method_name
,
...
...
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