| 170 |
|
|
| 171 |
|
void |
| 172 |
|
eputs( /* put string to stderr */ |
| 173 |
< |
register char *s |
| 173 |
> |
char *s |
| 174 |
|
) |
| 175 |
|
{ |
| 176 |
|
static int midline = 0; |
| 190 |
|
|
| 191 |
|
|
| 192 |
|
void |
| 193 |
< |
quit(ec) /* make sure exit is called */ |
| 194 |
< |
int ec; |
| 193 |
> |
quit(int ec) /* make sure exit is called */ |
| 194 |
|
{ |
| 195 |
|
if (ray_pnprocs > 0) /* close children if any */ |
| 196 |
|
ray_pclose(0); |
| 391 |
|
{ |
| 392 |
|
static short mvar[] = {OCONV,OCTREEF,RESOLUTION,EXPOSURE,-1}; |
| 393 |
|
char combuf[256]; |
| 394 |
< |
register int i; |
| 395 |
< |
register char *cp; |
| 394 |
> |
int i; |
| 395 |
> |
char *cp; |
| 396 |
|
char *pippt = NULL; |
| 397 |
|
/* create rad command */ |
| 398 |
|
strcpy(lorendoptf, "ranim0.opt"); |
| 468 |
|
} |
| 469 |
|
|
| 470 |
|
|
| 471 |
< |
extern VIEW * |
| 471 |
> |
VIEW * |
| 472 |
|
getview( /* get view number n */ |
| 473 |
|
int n |
| 474 |
|
) |
| 503 |
|
viewnum = 0; |
| 504 |
|
} |
| 505 |
|
if (n < 0) { /* get next view */ |
| 506 |
< |
register int c = getc(viewfp); |
| 506 |
> |
int c = getc(viewfp); |
| 507 |
|
if (c == EOF) |
| 508 |
|
return(NULL); /* that's it */ |
| 509 |
|
ungetc(c, viewfp); |
| 532 |
|
} |
| 533 |
|
|
| 534 |
|
|
| 535 |
< |
extern char * |
| 535 |
> |
char * |
| 536 |
|
getexp( /* get exposure for nth frame */ |
| 537 |
|
int n |
| 538 |
|
) |
| 541 |
|
static char expval[32]; |
| 542 |
|
static FILE *expfp = NULL; |
| 543 |
|
static int curfrm = 0; |
| 544 |
< |
register char *cp; |
| 544 |
> |
char *cp; |
| 545 |
|
|
| 546 |
|
if (n == 0) { /* signal to close file */ |
| 547 |
|
if (expfp != NULL) { |
| 591 |
|
} |
| 592 |
|
|
| 593 |
|
|
| 594 |
< |
extern double |
| 594 |
> |
double |
| 595 |
|
expspec_val( /* get exposure value from spec. */ |
| 596 |
|
char *s |
| 597 |
|
) |
| 608 |
|
} |
| 609 |
|
|
| 610 |
|
|
| 611 |
< |
extern char * |
| 611 |
> |
char * |
| 612 |
|
getoctspec( /* get octree for the given frame */ |
| 613 |
|
int n |
| 614 |
|
) |
| 665 |
|
|
| 666 |
|
static char * |
| 667 |
|
getobjname( /* get fully qualified object name */ |
| 668 |
< |
register struct ObjMove *om |
| 668 |
> |
struct ObjMove *om |
| 669 |
|
) |
| 670 |
|
{ |
| 671 |
|
static char objName[512]; |
| 672 |
< |
register char *cp = objName; |
| 672 |
> |
char *cp = objName; |
| 673 |
|
|
| 674 |
|
strcpy(cp, om->name); |
| 675 |
|
while (om->parent >= 0) { |
| 684 |
|
|
| 685 |
|
static char * |
| 686 |
|
getxf( /* get total transform for object */ |
| 687 |
< |
register struct ObjMove *om, |
| 687 |
> |
struct ObjMove *om, |
| 688 |
|
int n |
| 689 |
|
) |
| 690 |
|
{ |
| 697 |
|
char *av[64]; |
| 698 |
|
int ac; |
| 699 |
|
int i; |
| 700 |
< |
register char *cp; |
| 700 |
> |
char *cp; |
| 701 |
|
/* get parent transform, first */ |
| 702 |
|
if (om->parent >= 0) |
| 703 |
|
xfp = getxf(&obj_move[om->parent], n); |
| 805 |
|
} |
| 806 |
|
|
| 807 |
|
|
| 808 |
< |
extern int |
| 808 |
> |
int |
| 809 |
|
getmove( /* find matching move object */ |
| 810 |
|
OBJECT obj |
| 811 |
|
) |
| 814 |
|
static OBJECT lasto = OVOID; |
| 815 |
|
char *onm, *objnm; |
| 816 |
|
int len, len2; |
| 817 |
< |
register int i; |
| 817 |
> |
int i; |
| 818 |
|
|
| 819 |
|
if (obj == OVOID) |
| 820 |
|
return(-1); |
| 839 |
|
} |
| 840 |
|
|
| 841 |
|
|
| 842 |
< |
extern double |
| 842 |
> |
double |
| 843 |
|
obj_prio( /* return priority for object */ |
| 844 |
|
OBJECT obj |
| 845 |
|
) |
| 890 |
|
|
| 891 |
|
#endif |
| 892 |
|
|
| 893 |
< |
extern double |
| 893 |
> |
double |
| 894 |
|
getTime(void) /* get current time (CPU or real) */ |
| 895 |
|
{ |
| 896 |
|
struct timeval time_now; |