diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/gio/gki/gkicancel.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/gio/gki/gkicancel.x')
-rw-r--r-- | sys/gio/gki/gkicancel.x | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/gio/gki/gkicancel.x b/sys/gio/gki/gkicancel.x new file mode 100644 index 00000000..ff2bc5f4 --- /dev/null +++ b/sys/gio/gki/gkicancel.x @@ -0,0 +1,28 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <config.h> +include <gki.h> + +# GKI_CANCEL -- Cancel graphics output and reset internal parameters. +# +# BOI GKI_CANCEL 0 +# +# L(i) set to the constant 3 (no data fields) + +procedure gki_cancel (fd) + +int fd # output file + +int epa +short gki[GKI_CANCEL_LEN] +data gki[1] /BOI/, gki[2] /GKI_CANCEL/, gki[3] /LEN_GKIHDR/ +include "gki.com" + +begin + if (IS_INLINE(fd)) { + epa = gk_dd[GKI_CANCEL] + if (epa != 0) + call zcall1 (epa, 0) + } else + call write (gk_fd[fd], gki, GKI_CANCEL_LEN * SZ_SHORT) +end |