comparison src/vim9script.c @ 32118:04d9dff67d99 v9.0.1390

patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected file Commit: https://github.com/vim/vim/commit/14113fdf9cb3d588c0d1c3a210246b981cf5aad3 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Tue Mar 7 17:13:51 2023 +0000 patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected file 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)
author Bram Moolenaar <Bram@vim.org>
date Tue, 07 Mar 2023 18:15:04 +0100
parents 9f28cca2410a
children a44d7e4ac1c0
comparison
equal deleted inserted replaced
32117:0741cc777264 32118:04d9dff67d99
279 sallvar_T *sav_next; 279 sallvar_T *sav_next;
280 int idx; 280 int idx;
281 281
282 hash_lock(ht); 282 hash_lock(ht);
283 todo = (int)ht->ht_used; 283 todo = (int)ht->ht_used;
284 for (hi = ht->ht_array; todo > 0; ++hi) 284 FOR_ALL_HASHTAB_ITEMS(ht, hi, todo)
285 { 285 {
286 if (!HASHITEM_EMPTY(hi)) 286 if (!HASHITEM_EMPTY(hi))
287 { 287 {
288 --todo; 288 --todo;
289 289