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

Comparing ray/src/rt/renderopts.c (file contents):
Revision 2.24 by greg, Sat Nov 18 18:14:26 2023 UTC vs.
Revision 2.25 by greg, Fri Apr 5 17:52:20 2024 UTC

# Line 76 | Line 76 | match_subfeatures(     /* check if subfeatures are support
76                          cp++;
77                  *cp = '\0';
78                  n = cp - subfeat;
79 <                if (!(cp = strstr(mysublist, subfeat)) ||
80 <                                (cp[-1] != ',') & (cp[-1] != '=') ||
81 <                                (cp[n] != ',') & (cp[n] != '\n'))
79 >                for (cp = mysublist; (cp = strstr(cp, subfeat)) != NULL; cp++)
80 >                        if ((cp[-1] == ',') | (cp[-1] == '=') &&
81 >                                        (cp[n] == ',') | (cp[n] == '\n'))
82 >                                break;  /* match */
83 >                if (!cp)
84                          return(0);      /* missing this one! */
85          }
86          return(1);                      /* matched them all */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines