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.9 by greg, Tue Mar 28 11:18:52 1995 UTC vs.
Revision 2.10 by greg, Wed Jan 8 17:10:24 1997 UTC

# Line 55 | Line 55 | static EPNODE  *outchan;
55   #endif
56  
57   #ifdef  FUNCTION
58 < EPNODE  *curfunc;
58 > EPNODE  *curfunc = NULL;
59   #define  dname(ep)      ((ep)->v.kid->type == SYM ? \
60                          (ep)->v.kid->v.name : \
61                          (ep)->v.kid->v.kid->v.name)
# Line 620 | Line 620 | getdefn()                      /* A -> SYM = E1 */
620              syntax("')' expected");
621          scan();
622          curfunc = ep1;
623 <    } else
624 <        curfunc = NULL;
623 >    }
624   #endif
625  
626      if (nextc != '=' && nextc != ':')
# Line 646 | Line 645 | getdefn()                      /* A -> SYM = E1 */
645          ep1->type = NUM;
646          addekid(ep2, ep1);
647      }
648 +
649 + #ifdef  FUNCTION
650 +    curfunc = NULL;
651 + #endif
652  
653      return(ep2);
654   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines