ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/ranimate.c
(Generate patch)

Comparing ray/src/util/ranimate.c (file contents):
Revision 2.45 by greg, Sun Feb 15 06:21:01 2004 UTC vs.
Revision 2.46 by schorsch, Fri Mar 26 21:36:20 2004 UTC

# Line 19 | Line 19 | static const char RCSid[] = "$Id$";
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"
# Line 140 | Line 141 | static int pruncom(char *com, char *ppins, int maxcopi
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);
# Line 157 | Line 158 | static void setdefaults(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;
# Line 222 | Line 225 | char   *argv[];
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  
# Line 491 | Line 496 | getradfile(char *rfargs)               /* run rad and get needed va
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,
# Line 655 | Line 660 | renderframes(int nframes)              /* render next nframes fram
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 */
# Line 1199 | Line 1203 | findpslot(int pid)                     /* find or allocate a process slo
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines