date and time created 83/07/18 21:05:16 by edward
[unix-history] / usr / src / usr.bin / window / wwmisc.c
CommitLineData
8584be19 1#ifndef lint
2b44d852 2static char *sccsid = "@(#)wwmisc.c 1.3 83/07/18";
8584be19
EW
3#endif
4
5#include "ww.h"
6
4711df8b
EW
7struct ww *wwhead = 0;
8struct ww *curwin = 0;
8584be19
EW
9
10wwsetcurrent(wp)
11register struct ww *wp;
12{
4711df8b 13 curwin = wp;
2b44d852 14 Wfront(wp->ww_win);
8584be19
EW
15}
16
17wwhaschildren()
18{
19 register struct ww *wp;
20
4711df8b 21 for (wp = wwhead; wp; wp = wp->ww_next)
8584be19
EW
22 if (wp->ww_state == WW_HASPROC)
23 return 1;
24 return 0;
25}
2b44d852
EW
26
27struct ww *
28wwfind(id)
29register id;
30{
31 register struct ww *w;
32
33 for (w = wwhead; w && w->ww_ident != id; w = w->ww_next)
34 ;
35 return w;
36}