aboutsummaryrefslogtreecommitdiff
path: root/sys/imfort/imakwb.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/imfort/imakwb.x')
-rw-r--r--sys/imfort/imakwb.x35
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/imfort/imakwb.x b/sys/imfort/imakwb.x
new file mode 100644
index 00000000..9b857c17
--- /dev/null
+++ b/sys/imfort/imakwb.x
@@ -0,0 +1,35 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include "imfort.h"
+
+# IMAKWB -- Add a new keyword of type bool.
+
+procedure imakwb (im, keyw, bval, comm, ier)
+
+pointer im # imfort image descriptor
+% character*(*) keyw
+bool bval
+% character*(*) comm
+int ier
+
+pointer sp, kp, cp
+int errcode()
+
+begin
+ call smark (sp)
+ call salloc (kp, SZ_KEYWORD, TY_CHAR)
+ call salloc (cp, SZ_VALSTR, TY_CHAR)
+
+ call f77upk (keyw, Memc[kp], SZ_KEYWORD)
+ call f77upk (comm, Memc[cp], SZ_VALSTR)
+
+ iferr (call imaddb (im, Memc[kp], bval, Memc[cp])) {
+ ier = errcode()
+ call im_seterrop (ier, Memc[kp])
+ } else {
+ ier = OK
+ IM_UPDATE(im) = YES
+ }
+
+ call sfree (sp)
+end