summaryrefslogtreecommitdiffstats
path: root/Include/dictobject.h
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-02-19 02:03:19 (GMT)
committerRaymond Hettinger <python@rcn.com>2007-02-19 02:03:19 (GMT)
commitd6fc72a5ae27048dae56c773896ccbd6152d9b9b (patch)
treefceb231e6ba8e5b85b6f5baab0a908d056b9390d /Include/dictobject.h
parentf7ccc101d2d623428dd03114bd8723946d5dbcae (diff)
downloadcpython-d6fc72a5ae27048dae56c773896ccbd6152d9b9b.zip
cpython-d6fc72a5ae27048dae56c773896ccbd6152d9b9b.tar.gz
cpython-d6fc72a5ae27048dae56c773896ccbd6152d9b9b.tar.bz2
Extend work on revision 52962: Eliminate redundant calls to PyObject_Hash().
Diffstat (limited to 'Include/dictobject.h')
-rw-r--r--Include/dictobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h
index fd3d1fc..44b0838 100644
--- a/Include/dictobject.h
+++ b/Include/dictobject.h
@@ -100,12 +100,15 @@ PyAPI_FUNC(int) PyDict_DelItem(PyObject *mp, PyObject *key);
PyAPI_FUNC(void) PyDict_Clear(PyObject *mp);
PyAPI_FUNC(int) PyDict_Next(
PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value);
+PyAPI_FUNC(int) _PyDict_Next(
+ PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value, long *hash);
PyAPI_FUNC(PyObject *) PyDict_Keys(PyObject *mp);
PyAPI_FUNC(PyObject *) PyDict_Values(PyObject *mp);
PyAPI_FUNC(PyObject *) PyDict_Items(PyObject *mp);
PyAPI_FUNC(Py_ssize_t) PyDict_Size(PyObject *mp);
PyAPI_FUNC(PyObject *) PyDict_Copy(PyObject *mp);
PyAPI_FUNC(int) PyDict_Contains(PyObject *mp, PyObject *key);
+PyAPI_FUNC(int) _PyDict_Contains(PyObject *mp, PyObject *key, long hash);
/* PyDict_Update(mp, other) is equivalent to PyDict_Merge(mp, other, 1). */
PyAPI_FUNC(int) PyDict_Update(PyObject *mp, PyObject *other);