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

Comparing ray/src/meta/mt160l.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 41 | Line 41 | static const char      RCSid[] = "$Id$";
41   #define  XCOM  "pexpand +vOCIsp %s | psort -Y +x"
42  
43  
44 <
45 <
44 > #include  "rtprocess.h"
45   #include  "meta.h"
47
46   #include  "plot.h"
49
47   #include  "span.h"
48  
49  
53
54
50   char  *progname;
51  
52   struct span  outspan;
# Line 91 | Line 86 | static short  condonly = FALSE,
86                conditioned = FALSE;
87  
88  
89 < main(argc, argv)
90 <
91 < int  argc;
92 < char  **argv;
93 <
89 > int
90 > main(
91 >        int  argc,
92 >        char  **argv
93 > )
94   {
95   FILE  *fp;
101 FILE  *popen();
96   char  comargs[200], command[300];
97  
98   progname = *argv++;
# Line 160 | Line 154 | char  **argv;
154         fputs(PUNINIT, stdout);
155         }
156      }
163
157   return(0);
158 < }
158 > }
159  
160  
161 <
162 <
170 <
171 <
172 <
173 < thispage()              /* rewind and initialize current page */
174 <
161 > void
162 > thispage(void)          /* rewind and initialize current page */
163   {
176
164      if (lineno)
165          error(USER, "cannot restart page in thispage");
179
166   }
167  
168  
169 <
170 <
185 < nextpage()              /* advance to next page */
186 <
169 > void
170 > nextpage(void)          /* advance to next page */
171   {
188
172      fputs("\f\r", stdout);
173  
174      lineno = 0;
192
175   }
176  
177  
178 <
179 <
198 < contpage()              /* continue new plot on current page */
199 <
178 > void
179 > contpage(void)          /* continue new plot on current page */
180   {
181  
182      while (lineno++ < NLINES)
183          putc('\n', stdout);
184      
185      lineno = 0;
206    
186   }
187  
188  
189 <
190 < printspan()             /* output span to printer */
212 <
189 > void
190 > printspan(void)         /* output span to printer */
191   {
192      register unsigned shiftreg;
193      unsigned short  outc;
194 <    register  k;
194 >    register int k;
195      unsigned short offset, mask;
196      int  i,j;
197  
# Line 255 | Line 233 | printspan()            /* output span to printer */
233          }
234      putc('\n', stdout);
235      lineno++;
258
236   }
237  
238  
239 <
240 <
241 <
242 < printstr(p)             /* output a string to the printer */
266 <
267 < PRIMITIVE  *p;
268 <
239 > void
240 > printstr(               /* output a string to the printer */
241 >        PRIMITIVE  *p
242 > )
243   {
244      int  i;
245  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines