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.36 by greg, Thu Dec 30 08:20:45 1993 UTC vs.
Revision 2.37 by greg, Sat Jan 1 09:16:50 1994 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1993 Regents of the University of California */
1 > /* Copyright (c) 1994 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 114 | Line 114 | time_t oct0date;               /* date of pre-mkillum octree */
114   char    *oct1name;              /* name of post-mkillum octree */
115   time_t  oct1date;               /* date of post-mkillum octree (>= matdate) */
116  
117 + int     nowarn = 0;             /* no warnings */
118   int     explicate = 0;          /* explicate variables */
119   int     silent = 0;             /* do work silently */
120   int     noaction = 0;           /* don't do anything */
# Line 158 | Line 159 | char   *argv[];
159                  case 'v':
160                          viewselect = argv[++i];
161                          break;
162 +                case 'w':
163 +                        nowarn++;
164 +                        break;
165                  default:
166                          goto userr;
167                  }
# Line 273 | Line 277 | register char  *ass;
277          for (n = strlen(ass); n > 0; n--)
278                  if (!isspace(ass[n-1]))
279                          break;
280 <        if (!n) {
280 >        if (!n && !nowarn) {
281                  fprintf(stderr, "%s: warning - missing value for variable '%s'\n",
282                                  progname, varname);
283                  return;
# Line 359 | Line 363 | register VARIABLE      *vp;
363   {
364          if (vp->nass < 2)
365                  return;
366 <        fprintf(stderr, "%s: warning - multiple assignment of variable '%s'\n",
366 >        if (!nowarn)
367 >                fprintf(stderr,
368 >                "%s: warning - multiple assignment of variable '%s'\n",
369                          progname, vp->name);
370          do
371                  vp->value += strlen(vp->value)+1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines