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 /pkg/images/tv/tvmark/mkppars.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'pkg/images/tv/tvmark/mkppars.x')
-rw-r--r-- | pkg/images/tv/tvmark/mkppars.x | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkg/images/tv/tvmark/mkppars.x b/pkg/images/tv/tvmark/mkppars.x new file mode 100644 index 00000000..16fdf8c5 --- /dev/null +++ b/pkg/images/tv/tvmark/mkppars.x @@ -0,0 +1,40 @@ +include <ctype.h> +include "tvmark.h" + +# MK_PPARS -- Store the IMMARK parameters. + +procedure mk_ppars (mk) + +pointer mk # pointer to the immark structure + +pointer sp, str +bool itob() +int mk_stati() +real mk_statr() + +begin + # Allocate working space. + call smark (sp) + call salloc (str, SZ_LINE, TY_CHAR) + + # Store the mark type. + call mk_stats (mk, MARK, Memc[str], SZ_LINE) + call clpstr ("mark", Memc[str]) + + # Store the circle and rectangles descriptors. + call mk_stats (mk, CSTRING, Memc[str], SZ_LINE) + call clpstr ("radii", Memc[str]) + call mk_stats (mk, RSTRING, Memc[str], SZ_LINE) + call clpstr ("lengths", Memc[str]) + + call clputb ("number", itob (mk_stati (mk, NUMBER))) + call clputb ("label", itob (mk_stati (mk, LABEL))) + call clputi ("txsize", mk_stati (mk, SIZE)) + call clputi ("pointsize", 2 * mk_stati (mk, SZPOINT) + 1) + call clputi ("color", mk_stati (mk, GRAYLEVEL)) + call clputi ("nxoffset", mk_stati (mk, NXOFFSET)) + call clputi ("nyoffset", mk_stati (mk, NYOFFSET)) + call clputr ("tolerance", mk_statr (mk, TOLERANCE)) + + call sfree (sp) +end |