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 /pkg/lists/rgcursor.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/lists/rgcursor.x')
-rw-r--r-- | pkg/lists/rgcursor.x | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkg/lists/rgcursor.x b/pkg/lists/rgcursor.x new file mode 100644 index 00000000..d443dba7 --- /dev/null +++ b/pkg/lists/rgcursor.x @@ -0,0 +1,27 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# T_RGCURSOR -- Copy the graphics cursor list to the standard output. This +# task was originally written as a cl script. + +procedure t_rgcursor + +pointer sp, buf, gp +pointer gopen() +int clglstr() + +begin + call smark (sp) + call salloc (buf, SZ_LINE, TY_CHAR) + + iferr (gp = gopen ("stdgraph", APPEND, STDGRAPH)) + gp = NULL + + while (clglstr ("gcur", Memc[buf], SZ_LINE) != EOF) { + call printf ("%s\n") + call pargstr (Memc[buf]) + } + + if (gp != NULL) + call gclose (gp) + call sfree (sp) +end |