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/imfort/imflsh.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/imfort/imflsh.x')
-rw-r--r-- | sys/imfort/imflsh.x | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sys/imfort/imflsh.x b/sys/imfort/imflsh.x new file mode 100644 index 00000000..5ae36b2f --- /dev/null +++ b/sys/imfort/imflsh.x @@ -0,0 +1,33 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "imfort.h" + +# IMFLSH -- Flush any buffered image data, i.e., synchronize the in-core +# version of an image with that on disk. + +procedure imflsh (im, ier) + +pointer im # image descriptor +int ier + +int status +int bfflsh() + +begin + ier = OK + + # Flush any buffered output pixel data. + status = bfflsh (IM_PIXFP(im)) + if (status == ERR) + ier = IE_FLUSH + + # Update the image header if it has been modified. + if (IM_HDRFP(im) != NULL) { + if (IM_UPDATE(im) == YES) { + call imf_updhdr (im, status) + if (status == ERR && ier == OK) + ier = IE_UPDHDR + } + } else if (IM_UPDATE(im) == YES && ier == OK) + ier = IE_UPDRO +end |