19 |
|
#include <ctype.h> |
20 |
|
#include <sys/stat.h> |
21 |
|
#include <time.h> |
22 |
+ |
#include <signal.h> |
23 |
|
|
23 |
– |
/*#include "standard.h"*/ |
24 |
|
#include "platform.h" |
25 |
|
#include "paths.h" |
26 |
|
#include "rtio.h" |
27 |
|
#include "rterror.h" |
28 |
+ |
#include "rtmisc.h" |
29 |
|
#include "view.h" |
30 |
|
#include "vars.h" |
31 |
|
#include "netproc.h" |
141 |
|
static void bwait(int ncoms); |
142 |
|
static int bruncom(char *com, int fout, int (*rf)()); |
143 |
|
static int serverdown(void); |
144 |
< |
static int donecom(PSERVER *ps, int pn, int status); |
144 |
> |
static pscompfunc donecom; |
145 |
|
static int countviews(void); |
146 |
|
static int dofilt(int frame, int rvr); |
147 |
|
static void archive(void); |
158 |
|
static void putastat(void); |
159 |
|
|
160 |
|
|
161 |
< |
main(argc, argv) |
162 |
< |
int argc; |
163 |
< |
char *argv[]; |
161 |
> |
int |
162 |
> |
main( |
163 |
> |
int argc, |
164 |
> |
char *argv[] |
165 |
> |
) |
166 |
|
{ |
167 |
|
int explicate = 0; |
168 |
|
int i; |
225 |
|
quit(1); |
226 |
|
} |
227 |
|
quit(0); |
228 |
+ |
return 0; /* pro forma return */ |
229 |
|
userr: |
230 |
|
fprintf(stderr, "Usage: %s [-s][-n][-w][-e] anim_file\n", progname); |
231 |
|
quit(1); |
232 |
+ |
return 1; /* pro forma return */ |
233 |
|
} |
234 |
|
|
235 |
|
|
496 |
|
char combuf[256]; |
497 |
|
register int i; |
498 |
|
register char *cp; |
499 |
< |
char *pippt; |
499 |
> |
char *pippt = NULL; |
500 |
|
/* create rad command */ |
501 |
|
sprintf(rendopt, " @%s/render.opt", vval(DIRECTORY)); |
502 |
|
sprintf(combuf, |
660 |
|
static void |
661 |
|
filterframes(void) /* catch up with filtering */ |
662 |
|
{ |
658 |
– |
VIEW *vp; |
663 |
|
register int i; |
664 |
|
|
665 |
|
if (astat.tnext < astat.fnext) /* other work to do first */ |
722 |
|
VIEW *vp |
723 |
|
) |
724 |
|
{ |
721 |
– |
extern int recover(); |
725 |
|
char combuf[2048]; |
726 |
|
char fname[128]; |
727 |
|
|
791 |
|
|
792 |
|
|
793 |
|
static int |
794 |
< |
recover(int frame) /* recover the specified frame */ |
794 |
> |
recover(int frame) /* recover the specified frame */ |
795 |
|
{ |
796 |
|
static int *rfrm; /* list of recovered frames */ |
797 |
|
static int nrfrms = 0; |
903 |
|
int rvr |
904 |
|
) |
905 |
|
{ |
903 |
– |
extern int frecover(); |
906 |
|
static int iter = 0; |
907 |
|
double blurf; |
908 |
|
int nblur = getblur(&blurf); |
919 |
|
progname, frame); |
920 |
|
quit(1); |
921 |
|
} |
920 |
– |
if (ep == NULL) { |
921 |
– |
fprintf(stderr, |
922 |
– |
"%s: unexpected error reading exposure for frame %d\n", |
923 |
– |
progname, frame); |
924 |
– |
quit(1); |
925 |
– |
} |
922 |
|
usepinterp = (nblur > 1); |
923 |
|
usepfilt = pfiltalways | (ep==NULL); |
924 |
|
if (ep != NULL && !strcmp(ep, "1")) |
1203 |
|
|
1204 |
|
static int |
1205 |
|
donecom( /* clean up after finished process */ |
1206 |
< |
PSERVER *ps, |
1207 |
< |
int pn, |
1208 |
< |
int status |
1206 |
> |
PSERVER *ps, |
1207 |
> |
int pn, |
1208 |
> |
int status |
1209 |
|
) |
1210 |
|
{ |
1211 |
|
register NETPROC *pp; |