date and time created 83/07/12 17:20:56 by edward
authorEdward Wang <edward@ucbvax.Berkeley.EDU>
Wed, 13 Jul 1983 08:20:56 +0000 (00:20 -0800)
committerEdward Wang <edward@ucbvax.Berkeley.EDU>
Wed, 13 Jul 1983 08:20:56 +0000 (00:20 -0800)
SCCS-vsn: usr.bin/window/wwmisc.c 1.1

usr/src/usr.bin/window/wwmisc.c [new file with mode: 0644]

diff --git a/usr/src/usr.bin/window/wwmisc.c b/usr/src/usr.bin/window/wwmisc.c
new file mode 100644 (file)
index 0000000..d479e8c
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef lint
+static char *sccsid = "@(#)wwmisc.c    1.1 83/07/12";
+#endif
+
+#include "ww.h"
+
+struct ww *_wwcurrent = 0;
+
+wwsetcurrent(wp)
+register struct ww *wp;
+{
+       _wwcurrent = wp;
+}
+
+wwhaschildren()
+{
+       register struct ww *wp;
+
+       for (wp = _wwhead; wp; wp = wp->ww_next)
+               if (wp->ww_state == WW_HASPROC)
+                       return 1;
+       return 0;
+}