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

Comparing ray/src/util/ranimove.c (file contents):
Revision 3.18 by greg, Mon Apr 18 22:39:13 2016 UTC vs.
Revision 3.22 by greg, Wed Apr 23 02:35:26 2025 UTC

# Line 23 | Line 23 | static const char RCSid[] = "$Id$";
23   #include "platform.h"
24   #include "paths.h"
25   #include "ranimove.h"
26 + #include "func.h"
27  
28   int             NVARS = NV_INIT; /* total number of variables */
29  
# Line 84 | Line 85 | main(
85          int     i;
86  
87          progname = argv[0];                     /* get arguments */
88 +                                                /* initialize calcomp */
89 +        initfunc();
90          gargc = argc;
91          gargv = argv;
92          for (i = 1; i < argc && argv[i][0] == '-'; i++)
# Line 170 | Line 173 | userr:
173  
174   void
175   eputs(                          /* put string to stderr */
176 <        char  *s
176 >        const char  *s
177   )
178   {
179          static int  midline = 0;
# Line 193 | Line 196 | void
196   quit(int ec)                    /* make sure exit is called */
197   {
198          if (ray_pnprocs > 0)    /* close children if any */
199 <                ray_pclose(0);          
199 >                ray_pclose(0);
200 >        else if (ray_pnprocs < 0)
201 >                _exit(ec);      /* avoid flush in child */
202          exit(ec);
203   }
204  
# Line 537 | Line 542 | getexp(                        /* get exposure for nth frame */
542          int     n
543   )
544   {
540        extern char     *fskip();
545          static char     expval[32];
546          static FILE     *expfp = NULL;
547          static int      curfrm = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines