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

Comparing ray/src/rt/rpmain.c (file contents):
Revision 2.17 by schorsch, Sun Mar 6 01:13:18 2016 UTC vs.
Revision 2.18 by schorsch, Thu Mar 10 18:25:46 2016 UTC

# Line 63 | Line 63 | main(int  argc, char  *argv[])
63   #define  check(ol,al)           if (argv[i][ol] || \
64                                  badarg(argc-i-1,argv+i+1,al)) \
65                                  goto badopt
66 < #define  bool(olen,var)         switch (argv[i][olen]) { \
66 > #define  check_bool(olen,var)           switch (argv[i][olen]) { \
67                                  case '\0': var = !var; break; \
68                                  case 'y': case 'Y': case 't': case 'T': \
69                                  case '+': case '1': var = 1; break; \
# Line 209 | Line 209 | main(int  argc, char  *argv[])
209   #endif
210                  case 'w':                               /* warnings */
211                          rval = erract[WARNING].pf != NULL;
212 <                        bool(2,rval);
212 >                        check_bool(2,rval);
213                          if (rval) erract[WARNING].pf = wputs;
214                          else erract[WARNING].pf = NULL;
215                          break;
# Line 371 | Line 371 | badopt:
371          return 1; /* pro forma return */
372  
373   #undef  check
374 < #undef  bool
374 > #undef  check_bool
375   }
376  
377  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines