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/gki/gkiplset.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/gki/gkiplset.x')
-rw-r--r-- | sys/gio/gki/gkiplset.x | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sys/gio/gki/gkiplset.x b/sys/gio/gki/gkiplset.x new file mode 100644 index 00000000..1a7b092f --- /dev/null +++ b/sys/gio/gki/gkiplset.x @@ -0,0 +1,37 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <config.h> +include <gki.h> +include <gio.h> + +# GKI_PLSET -- Set the polyline attributes. +# +# BOI GKI_PLSET L LT LW CI +# +# L(i) 6 +# LT(i) linetype number +# LW(r) linewidth scale factor +# CI(i) polyline color index + +procedure gki_plset (fd, ap) + +int fd # output file +pointer ap # pointer to polyline attribute structure + +int epa +short gki[GKI_PLSET_LEN] +data gki[1] /BOI/, gki[2] /GKI_PLSET/, gki[3] /GKI_PLSET_LEN/ +include "gki.com" + +begin + gki[GKI_PLSET_LT] = PL_LTYPE(ap) + gki[GKI_PLSET_LW] = GKI_PACKREAL (PL_WIDTH(ap)) + gki[GKI_PLSET_CI] = PL_COLOR(ap) + + if (IS_INLINE(fd)) { + epa = gk_dd[GKI_PLSET] + if (epa != 0) + call zcall1 (epa, gki) + } else + call write (gk_fd[fd], gki, GKI_PLSET_LEN * SZ_SHORT) +end |