h50613
s 00000/00000/00044
d D 1.2 83/03/31 12:27:43 mmm 2 1
c 
e
s 00044/00000/00000
d D 1.1 83/03/15 21:34:58 tes 1 0
c date and time created 83/03/15 21:34:58 by tes
e
u
4
U
t
T
I 1
subroutine gclks
########################################################################
#                                                                      #
#          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: Terminate GKS                                          #
#                                                                      #
#     Input Parameters:                                                #
#            none                                                      #
#      Output Parameters:                                              #
#            none                                                      #
#                                                                      #
#     Errors:                                                          #
#        2 GKS not in proper state:  GKS must be in the state GKOP     #
#                                                                      #
#     Routines Called:                                                 #
#            giostp - terminate the I/O subsystem                      #
#            errchk - perform appropriate error checking               #
#                                                                      #
########################################################################

ifdef(`ERROR_ON',`
   integer errchk, errind, ierdum(1)
   ')

include(`gkscom')
 
   ifdef(`ERROR_ON',`
      rounum = GCLKS
      errind = errchk(ierdum(1), ierdum)
      call giostp    # Terminate console IO if error checking
      ')

   # Set GKS to GKS closed state
   gksopr = GKCL
 
   return
end
E 1
