From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/plio/plnewcopy.x | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sys/plio/plnewcopy.x (limited to 'sys/plio/plnewcopy.x') diff --git a/sys/plio/plnewcopy.x b/sys/plio/plnewcopy.x new file mode 100644 index 00000000..a429bc6e --- /dev/null +++ b/sys/plio/plnewcopy.x @@ -0,0 +1,30 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include + +# PL_NEWCOPY -- Create a new, empty mask with the same size and depth +# attributes as the reference mask. + +pointer procedure pl_newcopy (old_pl) + +pointer old_pl #I mask descriptor + +pointer new_pl +int naxes, depth +long axlen[PL_MAXDIM] +pointer pl_open() +errchk pl_open + +begin + new_pl = pl_open (NULL) + + call pl_gsize (old_pl, naxes, axlen, depth) + call pl_ssize (new_pl, naxes, axlen, depth) + + PL_PRIVATE1(new_pl) = PL_PRIVATE1(old_pl) + PL_PRIVATE2(new_pl) = PL_PRIVATE2(old_pl) + PL_MAXLINE(new_pl) = PL_MAXLINE(old_pl) + + return (new_pl) +end -- cgit