diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-03-07 17:13:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-07 17:13:51 +0000 |
commit | 14113fdf9cb3d588c0d1c3a210246b981cf5aad3 (patch) | |
tree | a0f17ad3f6c5b31a0463e452122ba9e5aaa9705a /src/job.c | |
parent | 663ee88a8260d69d9310e22f2bfdec49af6a102e (diff) |
patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected filev9.0.1390
Problem: FOR_ALL_ macros are defined in an unexpected file.
Solution: Move FOR_ALL_ macros to macros.h. Add FOR_ALL_HASHTAB_ITEMS.
(Yegappan Lakshmanan, closes #12109)
Diffstat (limited to 'src/job.c')
-rw-r--r-- | src/job.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -140,7 +140,7 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported, int supported2) return OK; todo = (int)dict->dv_hashtab.ht_used; - for (hi = dict->dv_hashtab.ht_array; todo > 0; ++hi) + FOR_ALL_HASHTAB_ITEMS(&dict->dv_hashtab, hi, todo) if (!HASHITEM_EMPTY(hi)) { item = &dict_lookup(hi)->di_tv; |