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

Comparing ray/src/common/loadvars.c (file contents):
Revision 2.19 by greg, Fri Jun 9 22:52:47 2023 UTC vs.
Revision 2.20 by greg, Sat Jun 10 15:49:55 2023 UTC

# Line 266 | Line 266 | qualvalue(                     /* check qualitative var. for legal value
266          quit(1);
267   }
268  
269 + void
270 + strvalue(                               /* check for single (quoted) string value */
271 +        VARIABLE        *vp
272 + )
273 + {
274 +        if (!vp->nass) return;
275 +        onevalue(vp);
276 +        if ((vp->value[0] == '"') | (vp->value[0] == '\'')) {
277 +                char    *cp = vp->value + strlen(vp->value+1);
278 +                if ((cp != vp->value) & (*cp == vp->value[0])) {
279 +                        vp->value++;    /* elide quotation marks */
280 +                        *cp = '\0';
281 +                }
282 +        }
283 + }
284 +
285  
286   void
287   intvalue(                               /* check integer variable for legal values */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines