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

Comparing ray/src/gen/genbranch.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:04:47 1991 UTC vs.
Revision 2.4 by greg, Mon Aug 2 14:23:00 1993 UTC

# Line 12 | Line 12 | static char SCCSid[] = "$SunId$ LBL";
12  
13   #include  <stdio.h>
14  
15 + #include  <math.h>
16 +
17   #include  "random.h"
18  
19   #define  errf()         (var*(0.5-frandom()))
# Line 30 | Line 32 | int  rdepth = 3;                       /* recursion depth */
32  
33   double  var = 0.3;                      /* variability */
34  
35 + #ifdef  DCL_ATOF
36 + extern double  atof();
37 + #endif
38  
39 +
40   main(argc, argv)
41   int  argc;
42   char  *argv[];
43   {
38        double  atof();
44          int  i, j;
45  
46          for (i = 1; i < argc && argv[i][0] == '-'; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines