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/clio/clpstr.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/clio/clpstr.x')
-rw-r--r-- | sys/clio/clpstr.x | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/clio/clpstr.x b/sys/clio/clpstr.x new file mode 100644 index 00000000..d040fe5d --- /dev/null +++ b/sys/clio/clpstr.x @@ -0,0 +1,26 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# CLPSTR -- Put a string type parameter to the CL. + +procedure clpstr (param, value) + +char param[ARB] # param name +char value[ARB] # new value + +pointer sp, pname +pointer clc_find() + +begin + call smark (sp) + call salloc (pname, SZ_FNAME, TY_CHAR) + + call fprintf (CLOUT, "%s=\"%s\"\n") + call pargstr (param) + call pargstr (value) + + # If the parameter is in the cache, update the cached value as well. + if (clc_find (param, Memc[pname], SZ_FNAME) != NULL) + call clc_enter (Memc[pname], value) + + call sfree (sp) +end |