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/gstats.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/gio/gstats.x')
-rw-r--r-- | sys/gio/gstats.x | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/gio/gstats.x b/sys/gio/gstats.x new file mode 100644 index 00000000..14fd7c35 --- /dev/null +++ b/sys/gio/gstats.x @@ -0,0 +1,35 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <syserr.h> +include <gset.h> +include <gio.h> + +# GSTATS -- Get the value of a string valued GIO parameter. + +int procedure gstats (gp, param, outstr, maxch) + +pointer gp # graphics descriptor +int param # parmeter to be set +char outstr[ARB] # output string +int maxch +int gstrcpy() + +int i, value +pointer p[2] + +begin + p[1] = GP_XAP(gp) + p[2] = GP_XAP(gp) + + switch (param) { + case G_XTICKFORMAT: + return (gstrcpy (GL_TICKFORMAT(p[1]), value, maxch)) + case G_YTICKFORMAT: + return (gstrcpy (GL_TICKFORMAT(p[2]), value, maxch)) + case G_TICKFORMAT: + do i = 1, 2 + return (gstrcpy (GL_TICKFORMAT(p[i]), value, maxch)) + default: + call syserr (SYS_GSTAT) + } +end |