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

Comparing ray/src/meta/cgraph.c (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 1.2 by schorsch, Sat Nov 15 02:13:36 2003 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11  
12   #include  <stdio.h>
13  
14 + #include  "rterror.h"
15 + #include  "meta.h"
16   #include  "mgvars.h"
17  
18  
# Line 29 | Line 31 | static int  dwidth, dlength;           /* device width and leng
31  
32   static int  nplottable;         /* number of plottable points */
33  
34 + static void climits(void);
35 + static void cstretch(int  c, double  x, double  y);
36  
37 < cgraph(width, length)           /* do a character graph to stdout */
38 < int  width, length;
37 >
38 > extern void
39 > cgraph(         /* do a character graph to stdout */
40 >        int width,
41 >        int length
42 > )
43   {
44          if (width * length > MAXSIZE) {
45                  fprintf(stderr, "%s: page too big\n", progname);
# Line 44 | Line 52 | int  width, length;
52   }
53  
54  
55 < climits()                       /* get min & max values */
55 > static void
56 > climits(void)                   /* get min & max values */
57   {
58 <        int  i, cstretch();
58 >        int  i;
59  
60          xmin = gparam[XMIN].flags & DEFINED ?
61                          varvalue(gparam[XMIN].name) :
# Line 74 | Line 83 | climits()                      /* get min & max values */
83   }
84  
85  
86 < cstretch(c, x, y)                       /* stretch our boundaries */
87 < int  c;
88 < double  x, y;
86 > void
87 > cstretch(                       /* stretch our boundaries */
88 >        int  c,
89 >        double  x,
90 >        double  y
91 > )
92   {
93          if (gparam[XMIN].flags & DEFINED &&
94                          x < xmin)
# Line 104 | Line 116 | double  x, y;
116   }
117  
118  
119 < cplot()                         /* do character  plot */
119 > extern void
120 > cplot(void)                             /* do character  plot */
121   {
109        int  cpoint();
122          int  i, j;
123          register char  *op;
124  
# Line 124 | Line 136 | cplot()                                /* do character  plot */
136   }
137  
138  
139 < cpoint(c, x, y)                 /* store a point */
140 < int  c;
141 < double  x, y;
139 > extern void
140 > cpoint(                 /* store a point */
141 >        int  c,
142 >        double  x,
143 >        double  y
144 > )
145   {
146          register int  ndx;
147  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines