h09558
s 00000/00000/00054
d D 1.2 83/03/31 12:32:00 mmm 2 1
c 
e
s 00054/00000/00000
d D 1.1 83/03/15 21:38:14 tes 1 0
c date and time created 83/03/15 21:38:14 by tes
e
u
4
U
t
T
I 1
subroutine giopwk (il,errind,ol,wkidl)
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: Inquire set of open workstations                       #
#                                                                      #
#     Input Parameters:                                                #
#            il - dimension of array WKIDL                             #
#     Output Parameters:                                               #
#            errind - error indicator                                  #
#            ol     - number of open workstations                      #
#            wkidl  - set of open workstations                         #
#                                                                      #
#     Errors:                                                          #
#            8  GKS not in proper state: GKS must be in one of the     #
#               states  GKOP, WSOP, WSAC, or SGOP                      #
#                                                                      #
#     Routines Called:                                                 #
#            errchk - perform appropriate error checking               #
#                                                                      #
########################################################################
integer  il, errind, ol, wkidl(1) 
 
ifdef(`ERROR_ON',`
   integer errchk, ierdum(1)
   ')

include(`gkscom')

   # In all inquiry routines, initialize errind to 0 (zero).
   errind = 0
   ifdef(`ERROR_ON',`
      rounum = GIOPWK
      errind = errchk(ierdum(1), ierdum)
      ')

   if (gksopr == GKOP) {         
      ol = 0
      wkidl(1) = 0
      }
   else {
      ol = 1   # Get current open workstation from common
      wkidl(1) = wrkopn
      }

   return
end
E 1
