aboutsummaryrefslogtreecommitdiff
path: root/sys/plio/plcreate.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/plio/plcreate.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/plio/plcreate.x')
-rw-r--r--sys/plio/plcreate.x22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys/plio/plcreate.x b/sys/plio/plcreate.x
new file mode 100644
index 00000000..fe972bcb
--- /dev/null
+++ b/sys/plio/plcreate.x
@@ -0,0 +1,22 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# PL_CREATE -- Create an empty mask with the given dimensionality and size.
+# A newly created mask has all line pointers pointing to the empty line,
+# which is stored as the first entry in the line list buffer.
+
+pointer procedure pl_create (naxes, axlen, depth)
+
+int naxes #I number of axes (dimensionality of mask)
+long axlen[ARB] #I length of each axis
+int depth #I mask depth, bits
+
+pointer pl
+pointer pl_open()
+errchk pl_open
+
+begin
+ pl = pl_open (NULL)
+ call pl_ssize (pl, naxes, axlen, depth)
+
+ return (pl)
+end