Move #define dict_iter() closer to where it is used

This commit is contained in:
Luflosi 2019-07-24 23:28:19 -05:00
parent d1cffcde68
commit ff20acd8b8
No known key found for this signature in database
GPG Key ID: 14140F703B7D8362

View File

@ -305,10 +305,6 @@ repaint_delay(PyObject *val) {
return (double)(PyLong_AsUnsignedLong(val)) / 1000.0;
}
#define dict_iter(d) { \
PyObject *key, *value; Py_ssize_t pos = 0; \
while (PyDict_Next(d, &pos, &key, &value))
static int kitty_mod = 0;
static inline int
@ -336,6 +332,10 @@ pointer_shape(PyObject *shape_name) {
return BEAM;
}
#define dict_iter(d) { \
PyObject *key, *value; Py_ssize_t pos = 0; \
while (PyDict_Next(d, &pos, &key, &value))
static inline void
set_special_keys(PyObject *dict) {
dict_iter(dict) {