diff src/globals.h @ 15227:95678f27a704 v8.1.0623

patch 8.1.0623: iterating through window frames is repeated commit https://github.com/vim/vim/commit/3d1491ed2394b3e92902102879bace28a5f9c201 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 22 17:07:50 2018 +0100 patch 8.1.0623: iterating through window frames is repeated Problem: Iterating through window frames is repeated. Solution: Define FOR_ALL_FRAMES. (Yegappan Lakshmanan)
author Bram Moolenaar <Bram@vim.org>
date Sat, 22 Dec 2018 17:15:05 +0100
parents 3a99b2e6d136
children a6319aca721b
line wrap: on
line diff
--- a/src/globals.h
+++ b/src/globals.h
@@ -564,6 +564,8 @@ EXTERN win_T	*prevwin INIT(= NULL);	/* p
 # define ONE_WINDOW (firstwin == lastwin)
 # define W_NEXT(wp) ((wp)->w_next)
 # define FOR_ALL_WINDOWS(wp) for (wp = firstwin; wp != NULL; wp = wp->w_next)
+# define FOR_ALL_FRAMES(frp, first_frame) \
+    for (frp = first_frame; frp != NULL; frp = frp->fr_next)
 # define FOR_ALL_TABPAGES(tp) for (tp = first_tabpage; tp != NULL; tp = tp->tp_next)
 # define FOR_ALL_WINDOWS_IN_TAB(tp, wp) \
     for ((wp) = ((tp) == NULL || (tp) == curtab) \