aboutsummaryrefslogtreecommitdiff
path: root/pkg/images/tv/wcslab/zz.x
blob: e6d0224f258355537cda2d68a37e67e99ff4c5f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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