1 |
– |
/* Copyright (c) 1999 Silicon Graphics, Inc. */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ SGI"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Convert view to beam list. |
6 |
|
*/ |
37 |
|
} |
38 |
|
i = blist.nb++; /* else add beam to list */ |
39 |
|
if (i % BALLOCBLK == 0) { |
40 |
< |
blist.bl = (PACKHEAD *)realloc((char *)blist.bl, |
40 |
> |
blist.bl = (PACKHEAD *)realloc((void *)blist.bl, |
41 |
|
(i+BALLOCBLK)*sizeof(PACKHEAD)); |
42 |
|
CHECK(blist.bl==NULL, SYSTEM, "out of memory in add2blist"); |
43 |
|
} |
46 |
|
} |
47 |
|
|
48 |
|
|
49 |
< |
int2 * |
49 |
> |
int16 * |
50 |
|
viewbeams(vp, hr, vr, blp) /* convert view into sections/beams */ |
51 |
|
VIEW *vp; |
52 |
|
int hr, vr; |
53 |
|
BEAMLIST *blp; |
54 |
|
{ |
55 |
< |
static int2 sectlist[HDMAX+1]; |
56 |
< |
int2 sectarr[MINRES+1][MINRES+1]; |
55 |
> |
static int16 sectlist[HDMAX+1]; |
56 |
> |
int16 sectarr[MINRES+1][MINRES+1]; |
57 |
|
double d0, d1, mindist; |
58 |
|
GCOORD gc[2]; |
59 |
|
FVECT rorg, rdir; |