aboutsummaryrefslogtreecommitdiff
path: root/sys/fmtio/gargl.x
blob: 142ac0e143f1d65a8b93c457f374f5d8b1c5b413 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include	<mach.h>

# GARGL -- Interpret the next input token as an integer quantity.

procedure gargl (lval)

long	lval
double	dval

begin
	call gargd (dval)
	if (IS_INDEFD (dval))
	    lval = INDEFL
	else if (abs(dval) > MAX_LONG)
	    lval = INDEFL
	else
	    lval = dval
end