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

Comparing ray/src/common/calexpr.c (file contents):
Revision 2.2 by greg, Thu Dec 19 14:45:47 1991 UTC vs.
Revision 2.3 by greg, Thu May 7 22:30:41 1992 UTC

# Line 753 | Line 753 | register EPNODE  *ep;
753  
754      if (ep->type != VAR)
755          return(0);
756 <    dp = ep->v.ln->def;
757 <    if (dp != NULL && dp->type != ':')
758 <        return(0);
759 <    if ((dp == NULL || dp->v.kid->type != FUNC)
760 <            && ((lp = liblookup(ep->v.ln->name)) == NULL
761 <                    || lp->atyp != ':'))
762 <        return(0);
763 <    return(1);
756 >    if ((dp = ep->v.ln->def) != NULL && dp->v.kid->type == FUNC)
757 >        return(dp->type == ':');
758 >    if ((lp = liblookup(ep->v.ln->name)) != NULL)
759 >        return(lp->atyp == ':');
760 >    return(0);
761   }
762   #endif
763   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines