diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-08 16:58:47 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-08 16:58:47 (GMT) |
commit | 7322225a57aa0d78186feb2c6e8315265d49e5c3 (patch) | |
tree | 0eac35cf9499676f927eb62601f14ec475321145 /Objects | |
parent | f0acae2d3cd5bd6eca700223772e497fa613a776 (diff) | |
download | cpython-7322225a57aa0d78186feb2c6e8315265d49e5c3.zip cpython-7322225a57aa0d78186feb2c6e8315265d49e5c3.tar.gz cpython-7322225a57aa0d78186feb2c6e8315265d49e5c3.tar.bz2 |
use native inline instead of Py_LOCAL_INLINE
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 5996885..5af8c97 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -300,7 +300,7 @@ PyDict_Fini(void) /* 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 @@ dk_get_index(PyDictKeysObject *keys, Py_ssize_t i) } /* 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 @@ PyDict_Clear(PyObject *op) /* 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; |