aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gks/gopks.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/gio/gks/gopks.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/gio/gks/gopks.x')
-rw-r--r--sys/gio/gks/gopks.x24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/gio/gks/gopks.x b/sys/gio/gks/gopks.x
new file mode 100644
index 00000000..48f39de0
--- /dev/null
+++ b/sys/gio/gks/gopks.x
@@ -0,0 +1,24 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include "gks.h"
+
+# GOPKS -- Open GKS. In the GIO implementation, this routine sets the
+# file to receive error output to STDERR and initializes all possible
+# workstations to inactive. It also initializes the ASF array to GINDIV.
+
+procedure gopks (errfil)
+
+int errfil # Unit number for error output
+int i
+include "gks.com"
+
+begin
+ # This procedure initializes the gk_status and gk_std variables.
+ do i = 1, NDEV
+ gk_status[i] = INACTIVE
+
+ gk_std = NULL
+
+ do i = 1, NASF
+ gk_asf[i] = GINDIV
+end