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/gstats.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
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 |