| 52 |
|
off_t nextloc, fsiz; |
| 53 |
|
int n; |
| 54 |
|
/* open holodeck file */ |
| 55 |
< |
if ((fp = fopen(fname, "r")) == NULL) { |
| 55 |
> |
if ((fp = fopen(fname, "rb")) == NULL) { |
| 56 |
|
sprintf(errmsg, "cannot open \"%s\"", fname); |
| 57 |
|
error(SYSTEM, errmsg); |
| 58 |
|
} |
| 88 |
|
|
| 89 |
|
static void |
| 90 |
|
psectstats( /* print statistical information for section */ |
| 91 |
< |
register HOLO *hp, |
| 91 |
> |
HOLO *hp, |
| 92 |
|
FILE *fp |
| 93 |
|
) |
| 94 |
|
{ |
| 97 |
|
FVECT vt; |
| 98 |
|
double sqrtmaxp; |
| 99 |
|
int bmin, bmax, cnt; |
| 100 |
< |
register int i; |
| 100 |
> |
int i; |
| 101 |
|
|
| 102 |
|
fcross(vt, hp->xv[0], hp->xv[1]); |
| 103 |
|
fprintf(fp, "\tWorld volume: %g\n", fabs(DOT(vt,hp->xv[2]))); |