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 1.1 by greg, Thu Feb 2 10:34:26 1989 UTC vs.
Revision 1.2 by greg, Thu May 31 10:24:28 1990 UTC

# Line 16 | Line 16 | static char SCCSid[] = "$SunId$ LBL";
16   *  1/15/88  Added clock for caching of variable values.
17   *
18   *  11/16/88  Added VARDEF structure for hard linking.
19 + *
20 + *  5/31/90  Added conditional compile (REDEFW) for redefinition warning.
21   */
22  
23   #include  <stdio.h>
# Line 370 | Line 372 | loaddefn()                     /* load next definition */
372   #endif
373      {                           /* ordinary definition */
374          ep = getdefn();
375 + #ifdef  REDEFW
376 +        if (dlookup(dname(ep)) != NULL) {
377 +                dclear(dname(ep));
378 +                wputs(dname(ep));
379 +                wputs(": redefined\n");
380 +        }
381 + #else
382          dclear(dname(ep));
383 + #endif
384          dpush(ep);
385      }
386      if (nextc != EOF) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines