| 12 |
|
|
| 13 |
|
#include "standard.h" |
| 14 |
|
|
| 15 |
– |
#include <fcntl.h> |
| 16 |
– |
|
| 15 |
|
#include <ctype.h> |
| 16 |
|
|
| 17 |
|
#include "view.h" |
| 197 |
|
} |
| 198 |
|
normaspect(viewaspect(&ourview), &pixaspect, &hresolu, &vresolu); |
| 199 |
|
/* allocate frame */ |
| 200 |
< |
ourpict = (COLR *)malloc(hresolu*vresolu*sizeof(COLR)); |
| 201 |
< |
ourzbuf = (float *)calloc(hresolu*vresolu,sizeof(float)); |
| 200 |
> |
ourpict = (COLR *)bmalloc(hresolu*vresolu*sizeof(COLR)); |
| 201 |
> |
ourzbuf = (float *)bmalloc(hresolu*vresolu*sizeof(float)); |
| 202 |
|
if (ourpict == NULL || ourzbuf == NULL) |
| 203 |
|
syserror(); |
| 204 |
+ |
bzero((char *)ourzbuf, hresolu*vresolu*sizeof(float)); |
| 205 |
|
/* get input */ |
| 206 |
|
for ( ; i < argc; i += 2) |
| 207 |
|
addpicture(argv[i], argv[i+1]); |
| 386 |
|
float *zline; |
| 387 |
|
struct position *lasty; /* input/output */ |
| 388 |
|
{ |
| 390 |
– |
extern double sqrt(); |
| 389 |
|
FVECT pos; |
| 390 |
|
struct position lastx, newpos; |
| 391 |
|
register int x; |
| 633 |
|
writedistance(fname) /* write out z file */ |
| 634 |
|
char *fname; |
| 635 |
|
{ |
| 638 |
– |
extern double sqrt(); |
| 636 |
|
int donorm = normdist && ourview.type == VT_PER; |
| 637 |
|
int fd; |
| 638 |
|
int y; |