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

Comparing ray/src/util/rad.c (file contents):
Revision 2.60 by gwlarson, Tue Feb 2 08:57:56 1999 UTC vs.
Revision 2.61 by greg, Sat Feb 22 02:07:30 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1999 Silicon Graphics, Inc. */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ SGI";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Executive program for oconv, rpict and pfilt
6   */
# Line 13 | Line 10 | static char SCCSid[] = "$SunId$ SGI";
10   #include "paths.h"
11   #include "vars.h"
12   #include <ctype.h>
16 #include <sys/types.h>
13  
14                                  /* variables (alphabetical by name) */
15   #define AMBFILE         0               /* ambient file name */
# Line 81 | Line 77 | char   overfile[] = "overture.unf";
77   char    overfile[] = "/dev/null";
78   #endif
79  
80 < extern time_t   fdate(), time();
80 > extern time_t   time();
81  
82   time_t  scenedate;              /* date of latest scene or object file */
83   time_t  octreedate;             /* date of octree */
# Line 264 | Line 260 | checkfiles()                   /* check for existence and modified tim
260                          syserr(progname);
261                  sprintf(vval(OCTREE), "%s.oct", radname);
262                  vdef(OCTREE)++;
263 +        } else if (vval(OCTREE)[0] == '!') {
264 +                fprintf(stderr, "%s: illegal '%s' specification\n",
265 +                                progname, vnam(OCTREE));
266 +                quit(1);
267          }
268          octreedate = fdate(vval(OCTREE));
269          if (vdef(ILLUM)) {              /* illum requires secondary octrees */
# Line 840 | Line 840 | register char  *po;
840          }
841          switch (vscale(QUALITY)) {
842          case MEDIUM:
843 <                po = addarg(po, "-r 1");
843 >                po = addarg(po, "-r .6");
844                  break;
845          case HIGH:
846                  po = addarg(po, "-m .25");
# Line 1309 | Line 1309 | char   *s;
1309   }
1310  
1311  
1312 + void
1313   quit(ec)                        /* exit program */
1314   int     ec;
1315   {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines