diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/gio/gks/gdawk.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/gks/gdawk.x')
-rw-r--r-- | sys/gio/gks/gdawk.x | 32 |
1 files changed, 32 insertions, 0 deletions
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 |