aboutsummaryrefslogtreecommitdiff
path: root/sys/fmtio/gargs.x
blob: 193a725f52dfe31edef9d874477ce68df1967462 (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>

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

procedure gargs (sval)

short	sval
double	dval

begin
	call gargd (dval)
	if (IS_INDEFD (dval))
	    sval = INDEFS
	else if (abs(dval) > MAX_SHORT)
	    sval = INDEFS
	else
	    sval = dval
end