From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/gio/gks/gdawk.x | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 sys/gio/gks/gdawk.x (limited to 'sys/gio/gks/gdawk.x') diff --git a/sys/gio/gks/gdawk.x b/sys/gio/gks/gdawk.x new file mode 100644 index 00000000..23eaff14 --- /dev/null +++ b/sys/gio/gks/gdawk.x @@ -0,0 +1,32 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "gks.h" + +# GDAWK -- Deactivate workstation. + +procedure gdawk (wkid) + +int wkid # Workstation identifier +int i +include "gks.com" + +begin + # This procedure sets the status flag to INACTIVE for a particular + # device. Because this workstation may have been the reference + # workstation, gk_std, it may also necessary to update gk_std. + # In this case, the reference workstation will be the one with the + # lowest workstation id number. + + gk_status[wkid] = INACTIVE + + if (wkid == gk_std) { + gk_std = NULL + # Find next activated workstation, if any + do i = 1, NDEV { + if (gk_status[i] == ACTIVE) { + gk_std = i + break + } + } + } +end -- cgit