aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/selector/tcslinesize.x
blob: 80d8309fcd441686c36adbb91b02850e6859631f (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
24
25
26
include "tcs.h"

# TCS_LINESIZE -- Size of a single line in a column array

int procedure tcs_linesize (descrip)

pointer	descrip		# i: column selector
#--
int	size, ndim
pointer sp, length

begin
	call smark (sp)
	call salloc (length, MAXDIM, TY_INT)

	# Get length of each axis

	call tcs_shape (descrip, Memi[length], ndim, MAXDIM)

	# Return length of first

	size = Memi[length]
	call sfree (sp)

	return (size)
end