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

Comparing ray/src/meta/gcalc.c (file contents):
Revision 1.2 by schorsch, Mon Jun 30 14:59:12 2003 UTC vs.
Revision 1.3 by schorsch, Sat Nov 15 02:13:37 2003 UTC

# Line 19 | Line 19 | static double  xmin, xmax, ymin, ymax;
19   static double  lastx, lasty, rsum;
20   static int  npts;
21  
22 + static void gcheader(char  *types);
23 + static void calcpoint(int  c, double  x, double  y);
24 + static void gcvalue(int  c, char  *types);
25  
26 < gcalc(types)                    /* do a calculation */
27 < char  *types;
26 > void
27 > gcalc(                  /* do a calculation */
28 >        char  *types
29 > )
30   {
31 <        int  i, calcpoint();
31 >        int  i;
32  
33          if (strchr(types, 'h') == NULL)
34                  gcheader(types);
# Line 45 | Line 50 | char  *types;
50   }
51  
52  
53 < gcheader(types)                 /* print header */
54 < register char  *types;
53 > void
54 > gcheader(                       /* print header */
55 >        register char  *types
56 > )
57   {
58          printf("__");
59          while (*types)
# Line 73 | Line 80 | register char  *types;
80   }
81  
82  
83 < gcvalue(c, types)               /* print the values for the curve */
84 < int  c;
85 < register char  *types;
83 > void
84 > gcvalue(                /* print the values for the curve */
85 >        int  c,
86 >        register char  *types
87 > )
88   {
89          double  d1, d2, d3, sqrt();
90  
# Line 113 | Line 122 | register char  *types;
122   }
123  
124  
125 < calcpoint(c, x, y)              /* add a point to our calculation */
126 < int  c;
127 < double  x, y;
125 > void
126 > calcpoint(              /* add a point to our calculation */
127 >        int  c,
128 >        double  x,
129 >        double  y
130 > )
131   {
132          if (x < xmin || x > xmax)
133                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines