Lines Matching defs:wwl
99 winlink_find_by_window(struct winlinks *wwl, struct window *w)
103 RB_FOREACH(wl, winlinks, wwl) {
112 winlink_find_by_index(struct winlinks *wwl, int idx)
120 return (RB_FIND(winlinks, wwl, &wl));
124 winlink_find_by_window_id(struct winlinks *wwl, u_int id)
128 RB_FOREACH(wl, winlinks, wwl) {
136 winlink_next_index(struct winlinks *wwl, int idx)
142 if (winlink_find_by_index(wwl, i) == NULL)
153 winlink_count(struct winlinks *wwl)
159 RB_FOREACH(wl, winlinks, wwl)
166 winlink_add(struct winlinks *wwl, int idx)
171 if ((idx = winlink_next_index(wwl, -idx - 1)) == -1)
173 } else if (winlink_find_by_index(wwl, idx) != NULL)
178 RB_INSERT(winlinks, wwl, wl);
196 winlink_remove(struct winlinks *wwl, struct winlink *wl)
205 RB_REMOVE(winlinks, wwl, wl);
212 return (RB_NEXT(winlinks, wwl, wl));
218 return (RB_PREV(winlinks, wwl, wl));
225 if ((wl = RB_NEXT(winlinks, wwl, wl)) == NULL)
236 if ((wl = RB_PREV(winlinks, wwl, wl)) == NULL)