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.26 by greg, Fri Apr 5 17:55:25 2024 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines