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

Comparing ray/src/common/caldefn.c (file contents):
Revision 2.30 by greg, Sat Mar 12 15:50:13 2022 UTC vs.
Revision 2.31 by greg, Sat Mar 12 17:21:10 2022 UTC

# Line 200 | Line 200 | vardefined(    /* return '=' or ':' if variable/constant
200          char  *name
201   )
202   {
203 <    EPNODE  *dp;
203 >    EPNODE  *dp = dlookup(name);
204  
205 <    if ((dp = dlookup(name)) == NULL || dp->v.kid->type != SYM)
205 >    if (dp == NULL || dp->v.kid->type != SYM)
206          return(0);
207 +
208      return(dp->type);
209   }
210  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines