aboutsummaryrefslogtreecommitdiff
path: root/pkg/images/tv/wcslab/zz.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/images/tv/wcslab/zz.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/images/tv/wcslab/zz.x')
-rw-r--r--pkg/images/tv/wcslab/zz.x23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/images/tv/wcslab/zz.x b/pkg/images/tv/wcslab/zz.x
new file mode 100644
index 00000000..e6d0224f
--- /dev/null
+++ b/pkg/images/tv/wcslab/zz.x
@@ -0,0 +1,23 @@
+include <gset.h>
+include <math.h>
+
+
+# Define the offset array.
+define OFFSET Memr[$1+$2-1]
+
+procedure wl_label (wd)
+
+pointer wd # I: the WCSLAB descriptor
+
+int i
+pointer sp, offset_ptr
+
+begin
+ # Get some memory.
+ call smark (sp)
+ call salloc (offset_ptr, N_SIDES, TY_REAL)
+ do i = 1, N_SIDES
+ OFFSET(offset_ptr,i) = 0.
+
+ call sfree (sp)
+end