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

Comparing ray/src/rt/p_func.c (file contents):
Revision 2.2 by greg, Mon Nov 25 09:50:57 1991 UTC vs.
Revision 2.5 by greg, Tue Feb 25 02:47:23 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1991 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  p_func.c - routine for procedural patterns.
9 *
10 *     4/8/86
6   */
7  
8 + #include "copyright.h"
9 +
10   #include  "ray.h"
11  
12   #include  "func.h"
# Line 52 | Line 49 | RAY  *r;
49          bval = evalue(mf->ep[0]);
50          if (errno) {
51                  objerror(m, WARNING, "compute error");
52 <                return;
52 >                return(0);
53          }
54          scalecolor(r->pcol, bval);
55 +        return(0);
56   }
57  
58  
# Line 75 | Line 73 | RAY  *r;
73                          evalue(mf->ep[2]));
74          if (errno) {
75                  objerror(m, WARNING, "compute error");
76 <                return;
76 >                return(0);
77          }
78          multcolor(r->pcol, cval);
79 +        return(0);
80   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines