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.3 by schorsch, Mon Oct 27 10:28:59 2003 UTC vs.
Revision 1.4 by schorsch, Sat Nov 15 02:13:37 2003 UTC

# Line 84 | 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;
94   char  comargs[200], command[300];
# Line 157 | Line 157 | char  **argv;
157   }
158  
159  
160 <
161 <
162 <
163 <
164 < thispage()              /* rewind and initialize current page */
165 <
160 > void
161 > thispage(void)          /* rewind and initialize current page */
162   {
167
163      if (lineno)
164          error(USER, "cannot restart page in thispage");
170
165   }
166  
167  
168 <
169 <
176 < nextpage()              /* advance to next page */
177 <
168 > void
169 > nextpage(void)          /* advance to next page */
170   {
179
171      fputs("\f\r", stdout);
172  
173      lineno = 0;
183
174   }
175  
176  
177 <
178 < contpage()              /* continue new plot on current page */
189 <
177 > void
178 > contpage(void)          /* continue new plot on current page */
179   {
191
180      while (lineno++ < NLINES)
181          putc('\n', stdout);
182      
183      lineno = 0;
196    
184   }
185  
186  
187 <
188 < printspan()             /* output span to printer */
202 <
187 > void
188 > printspan(void)         /* output span to printer */
189   {
190 <    register  i;
190 >    register int i;
191  
192      if (spanmin <= spanmax) {
193  
# Line 224 | Line 210 | printspan()            /* output span to printer */
210  
211      putc('\n', stdout);
212      lineno++;
227    
213   }
214  
215  
216 <
217 <
218 <
219 <
235 <
236 < printstr(p)             /* output a string to the printer */
237 <
238 < PRIMITIVE  *p;
239 <
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