| 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 */ |
| 919 |
|
progname, frame); |
| 920 |
|
quit(1); |
| 921 |
|
} |
| 918 |
– |
if (ep == NULL) { |
| 919 |
– |
fprintf(stderr, |
| 920 |
– |
"%s: unexpected error reading exposure for frame %d\n", |
| 921 |
– |
progname, frame); |
| 922 |
– |
quit(1); |
| 923 |
– |
} |
| 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; |