[Python-checkins] cpython: use native inline instead of Py_LOCAL_INLINE
benjamin.peterson
python-checkins at python.org
Thu Sep 8 12:59:24 EDT 2016
https://hg.python.org/cpython/rev/9af1e36dda49
changeset: 103317:9af1e36dda49
user: Benjamin Peterson <benjamin at python.org>
date: Thu Sep 08 09:58:47 2016 -0700
summary:
use native inline instead of Py_LOCAL_INLINE
files:
Objects/dictobject.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -300,7 +300,7 @@
/* lookup indices. returns DKIX_EMPTY, DKIX_DUMMY, or ix >=0 */
-Py_LOCAL_INLINE(Py_ssize_t)
+static inline Py_ssize_t
dk_get_index(PyDictKeysObject *keys, Py_ssize_t i)
{
Py_ssize_t s = DK_SIZE(keys);
@@ -321,7 +321,7 @@
}
/* write to indices. */
-Py_LOCAL_INLINE(void)
+static inline void
dk_set_index(PyDictKeysObject *keys, Py_ssize_t i, Py_ssize_t ix)
{
Py_ssize_t s = DK_SIZE(keys);
@@ -1565,7 +1565,7 @@
/* Returns -1 if no more items (or op is not a dict),
* index of item otherwise. Stores value in pvalue
*/
-Py_LOCAL_INLINE(Py_ssize_t)
+static inline Py_ssize_t
dict_next(PyObject *op, Py_ssize_t i, PyObject **pvalue)
{
Py_ssize_t n;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list