Lines Matching refs:next

122   for (numwins = 0, win = windows; win; win = win->next, numwins++);
134 if (!windows->next)
144 for (win = windows; win; win = win->next)
169 if ((!windows->next) && ((windows->height == 0) && (delta_height < 0)))
180 for (win = windows; win; win = win->next)
206 if (!win->next)
221 if ((delta_each < 0) && ((windows->height != 0) && windows->next))
239 for (win = windows; win; win = win->next)
253 win= win->next;
318 window->next = active_window;
324 window->prev->next = window;
331 window->next = active_window->next;
332 active_window->next = window;
333 if (window->next)
334 window->next->prev = window;
341 #define grow_me_shrinking_next(me, next, diff) \
344 next->height -= diff; \
345 next->first_row += diff; \
346 window_adjust_pagetop (next); \
357 #define shrink_me_growing_next(me, next, diff) \
360 next->height += diff; \
361 next->first_row -= diff; \
362 window_adjust_pagetop (next); \
374 the previous and next windows in the chain. If there is only one user
379 register WINDOW *win, *prev, *next;
383 if (!windows->next || amount == 0)
387 for (win = windows; win; win = win->next)
401 next = window->next;
414 if (next && prev)
416 if (prev->height < next->height)
419 shrink_me_growing_next (window, next, abs_amount);
421 else if (next)
422 shrink_me_growing_next (window, next, abs_amount);
432 if (next)
433 next_avail = next->height - WINDOW_MIN_SIZE;
446 if ((next && !prev) || ((next_avail - amount) >= prev_avail))
447 grow_me_shrinking_next (window, next, amount);
448 else if ((prev && !next) || ((prev_avail - amount) >= next_avail))
466 grow_me_shrinking_next (window, next, change);
477 /* Odd numbers grow next, even grow prev. */
485 next->height--;
486 next->first_row++;
490 window_adjust_pagetop (next);
496 if (next)
497 next->flags |= W_UpdateWindow;
517 for (win = windows; win; win = win->next)
534 for (win = windows; win; win = win->next)
548 for (win = windows; win; win = win->next)
610 active window, make the next window in the chain be the active window.
611 If the active window is the next or previous window, choose that window
612 as the recipient of the extra space. Otherwise, prefer the next window. */
616 WINDOW *next, *prev, *window_to_fix;
618 next = window->next;
622 if ((!next && !prev) || (window->flags & W_WindowIsPerm))
625 if (next)
626 next->prev = prev;
629 windows = next;
631 prev->next = next;
641 /* If there isn't a next window, then there must be a previous one,
642 since we cannot delete the last window. If there is a next window,
644 if (next)
645 active_window = next;
650 if (next && active_window == next)
651 window_to_fix = next;
654 else if (next)
655 window_to_fix = next;
689 for (win = chain; win; win = win->next)
699 for (win = chain; win; win = win->next)
853 /* If this character fits within this line, just do the next one. */
863 the next printed screen line, then do the next line. */
876 /* If this window doesn't wrap lines, proceed to the next