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

Comparing ray/src/rt/mkpmap.c (file contents):
Revision 2.2 by greg, Thu May 21 05:54:54 2015 UTC vs.
Revision 2.3 by schorsch, Thu Mar 10 18:25:46 2016 UTC

# Line 119 | Line 119 | int main (int argc, char* argv [])
119                               badarg(argc - i - 1,argv + i + 1, al)) \
120                              goto badopt
121                              
122 <   #define bool(olen, var) switch (argv [i][olen]) { \
122 >   #define check_bool(olen, var) switch (argv [i][olen]) { \
123                               case '\0': var = !var; break; \
124                               case 'y': case 'Y': case 't': case 'T': \
125                               case '+': case '1': var = 1; break; \
# Line 352 | Line 352 | int main (int argc, char* argv [])
352           case 'b':
353              if (argv [i][2] == 'v') {
354                 /* Back face visibility */
355 <               bool(3, backvis);
355 >               check_bool(3, backvis);
356              }
357                    
358              else goto badopt;
# Line 382 | Line 382 | int main (int argc, char* argv [])
382           case 'f':
383              if (argv [i][2] == 'o') {
384                 /* Force overwrite */
385 <               bool(3, clobber);
385 >               check_bool(3, clobber);
386              }
387                    
388              else goto badopt;
# Line 485 | Line 485 | badopt:
485     error(USER, errmsg);
486  
487     #undef check
488 <   #undef bool
488 >   #undef check_bool
489     return 0;
490   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines