Merge branch 'move_dict_iter_define' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2019-07-25 10:13:58 +05:30
commit 0c5d59bcf6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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) {