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

Comparing ray/src/meta/mx80.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 36 | Line 36 | static const char      RCSid[] = "$Id$";
36  
37  
38  
39 <
40 <
39 > #include  "rtprocess.h"
40   #include  "meta.h"
42
41   #include  "plot.h"
44
42   #include  "span.h"
43  
44  
48
49
45   char  *progname;
46  
47   struct span  outspan;
# Line 67 | Line 62 | static short  condonly = FALSE,
62                conditioned = FALSE;
63  
64  
65 < main(argc, argv)
66 <
67 < int  argc;
68 < char  **argv;
69 <
65 > int
66 > main(
67 >        int  argc,
68 >        char  **argv
69 > )
70   {
71   FILE  *fp;
77 FILE  *popen();
72   char  comargs[200], command[300];
73  
74   progname = *argv++;
# Line 137 | Line 131 | char  **argv;
131   }
132  
133  
134 <
135 <
142 <
143 <
144 <
145 < thispage()              /* rewind and initialize current page */
146 <
134 > void
135 > thispage(void)          /* rewind and initialize current page */
136   {
148
137      if (lineno)
138          error(USER, "cannot restart page in thispage");
151
139   }
140  
141  
142 <
143 <
157 < nextpage()              /* advance to next page */
158 <
142 > void
143 > nextpage(void)          /* advance to next page */
144   {
160
145      fputs("\f\r", stdout);
146  
147      lineno = 0;
164
148   }
149  
150  
151 <
152 <
170 < contpage()              /* continue new plot on current page */
171 <
151 > void
152 > contpage(void)          /* continue new plot on current page */
153   {
173
154      while (lineno++ < NLINES)
155          putc('\n', stdout);
156      
157      lineno = 0;
178    
158   }
159  
160  
161 <
162 < printspan()             /* output span to printer */
184 <
161 > void
162 > printspan(void)         /* output span to printer */
163   {
164      register int  k;
165  
# Line 209 | Line 187 | printspan()            /* output span to printer */
187   }
188  
189  
190 <
191 <
192 <
193 < printstr(p)             /* output a string to the printer */
216 <
217 < PRIMITIVE  *p;
190 > void
191 > printstr(               /* output a string to the printer */
192 >        PRIMITIVE  *p
193 > )
194  
195   {
196      int  i;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines