Commit | Line | Data |
---|---|---|
8584be19 | 1 | #ifndef lint |
2b44d852 | 2 | static char *sccsid = "@(#)wwmisc.c 1.3 83/07/18"; |
8584be19 EW |
3 | #endif |
4 | ||
5 | #include "ww.h" | |
6 | ||
4711df8b EW |
7 | struct ww *wwhead = 0; |
8 | struct ww *curwin = 0; | |
8584be19 EW |
9 | |
10 | wwsetcurrent(wp) | |
11 | register struct ww *wp; | |
12 | { | |
4711df8b | 13 | curwin = wp; |
2b44d852 | 14 | Wfront(wp->ww_win); |
8584be19 EW |
15 | } |
16 | ||
17 | wwhaschildren() | |
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 | |
27 | struct ww * | |
28 | wwfind(id) | |
29 | register 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 | } |