--- ray/src/hd/rhdisp3.c 1998/11/05 13:58:37 3.11 +++ ray/src/hd/rhdisp3.c 2004/01/01 11:21:55 3.15 @@ -1,9 +1,6 @@ -/* Copyright (c) 1998 Silicon Graphics, Inc. */ - #ifndef lint -static char SCCSid[] = "$SunId$ SGI"; +static const char RCSid[] = "$Id: rhdisp3.c,v 3.15 2004/01/01 11:21:55 schorsch Exp $"; #endif - /* * Holodeck beam support for display process */ @@ -56,7 +53,7 @@ int bi; (ip[1][0]-ip[3][0])*(ip[2][1]-ip[3][1]); af *= af >= 0 ? 0.5 : -0.5; getback: - copystruct(&vrev, vp); /* compute reverse view */ + vrev = *vp; /* compute reverse view */ for (i = 0; i < 3; i++) { vrev.vdir[i] = -vp->vdir[i]; vrev.vup[i] = -vp->vup[i]; @@ -242,7 +239,7 @@ addcell(gcp, cl) /* add a cell to a list */ GCOORD *gcp; register struct cellist *cl; { - copystruct(cl->cl+cl->n, gcp); + *(cl->cl+cl->n) = *gcp; cl->n++; return(1); } @@ -286,7 +283,7 @@ VIEW *vp; cl.n = 0; /* add cells within pyramid */ visit_cells(org, dir, hp, addcell, (char *)&cl); if (!cl.n) { - free((char *)cl.cl); + free((void *)cl.cl); return(NULL); } *np = cl.n * orient; @@ -295,7 +292,7 @@ VIEW *vp; * sorted automatically by visit_cells(), so we don't need this. */ /* optimize memory use */ - cl.cl = (GCOORD *)realloc((char *)cl.cl, cl.n*sizeof(GCOORD)); + cl.cl = (GCOORD *)realloc((void *)cl.cl, cl.n*sizeof(GCOORD)); if (cl.cl == NULL) goto memerr; /* sort the list */ @@ -307,8 +304,10 @@ memerr: } -gridlines(f) /* run through holodeck section grid lines */ -int (*f)(); +extern void +gridlines( /* run through holodeck section grid lines */ + void (*f)(FVECT wp[2]) +) { register int hd, w, i; int g0, g1;