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

Comparing ray/src/meta/mt160.c (file contents):
Revision 1.2 by schorsch, Fri Aug 1 14:14:24 2003 UTC vs.
Revision 1.4 by schorsch, Sat Nov 15 02:13:37 2003 UTC

# Line 39 | Line 39 | static const char      RCSid[] = "$Id$";
39   #define  XCOM  "pexpand +vOCIsp %s | psort -Y +x"
40  
41  
42 <
43 <
42 > #include  "rtprocess.h"
43   #include  "meta.h"
45
44   #include  "plot.h"
47
45   #include  "span.h"
46  
47  
51
52
48   char  *progname;
49  
50   struct span  outspan;
# Line 89 | Line 84 | static short  condonly = FALSE,
84                conditioned = FALSE;
85  
86  
87 < main(argc, argv)
88 <
89 < int  argc;
90 < char  **argv;
91 <
87 > int
88 > main(
89 >        int  argc,
90 >        char  **argv
91 > )
92   {
93   FILE  *fp;
99 FILE  *popen();
94   char  comargs[200], command[300];
95  
96   progname = *argv++;
# Line 163 | Line 157 | char  **argv;
157   }
158  
159  
160 <
161 <
168 <
169 <
170 < thispage()              /* rewind and initialize current page */
171 <
160 > void
161 > thispage(void)          /* rewind and initialize current page */
162   {
173
163      if (lineno)
164          error(USER, "cannot restart page in thispage");
176
165   }
166  
167  
168 <
169 <
182 < nextpage()              /* advance to next page */
183 <
168 > void
169 > nextpage(void)          /* advance to next page */
170   {
185
171      fputs("\f\r", stdout);
172  
173      lineno = 0;
189
174   }
175  
176  
177 <
178 < contpage()              /* continue new plot on current page */
195 <
177 > void
178 > contpage(void)          /* continue new plot on current page */
179   {
197
180      while (lineno++ < NLINES)
181          putc('\n', stdout);
182      
183      lineno = 0;
202    
184   }
185  
186  
187 <
188 < printspan()             /* output span to printer */
208 <
187 > void
188 > printspan(void)         /* output span to printer */
189   {
190 <    register  i;
190 >    register int i;
191  
192      if (spanmin <= spanmax) {
193  
# Line 230 | Line 210 | printspan()            /* output span to printer */
210  
211      putc('\n', stdout);
212      lineno++;
233    
213   }
214  
215  
216 <
217 <
218 <
219 <
241 <
242 < printstr(p)             /* output a string to the printer */
243 <
244 < PRIMITIVE  *p;
245 <
216 > void
217 > printstr(               /* output a string to the printer */
218 > PRIMITIVE  *p
219 > )
220   {
221      int  i;
222  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines