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

Comparing ray/src/meta/psmeta.c (file contents):
Revision 1.3 by schorsch, Mon Jul 21 22:30:18 2003 UTC vs.
Revision 1.4 by schorsch, Sat Nov 15 02:13:37 2003 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10  
11   #include  "meta.h"
12
12   #include  "plot.h"
13 + #include  "psplot.h"
14  
15  
16   char  *progname;
17  
18   static short  newpage = TRUE;
19  
20 + static void doprim(PRIMITIVE  *p);
21 + static int doglobal(PRIMITIVE  *g);
22  
23 <
24 < main(argc, argv)
25 <
26 < int  argc;
27 < char  **argv;
26 <
23 > int
24 > main(
25 >        int  argc,
26 >        char  **argv
27 > )
28   {
29          FILE  *fp;
30  
# Line 51 | Line 52 | char  **argv;
52  
53  
54  
55 <
56 < plot(infp)              /* plot meta-file */
57 <
58 < FILE  *infp;
58 <
55 > void
56 > plot(           /* plot meta-file */
57 >        FILE  *infp
58 > )
59   {
60          PRIMITIVE  nextp;
61  
# Line 70 | Line 70 | FILE  *infp;
70   }
71  
72  
73 <
74 < doglobal(g)                     /* execute a global command */
75 <
76 < PRIMITIVE  *g;
77 <
73 > int
74 > doglobal(                       /* execute a global command */
75 >        PRIMITIVE  *g
76 > )
77   {
78 <        FILE  *fp;
78 >        FILE  *fp = NULL;
79  
80          switch (g->com) {
81  
# Line 142 | Line 141 | PRIMITIVE  *g;
141  
142  
143  
144 <
145 < doprim(p)               /* plot primitive */
146 <
147 < PRIMITIVE  *p;
149 <
144 > void
145 > doprim(         /* plot primitive */
146 >        PRIMITIVE  *p
147 > )
148   {
149  
150          switch (p->com) {
# Line 185 | Line 183 | PRIMITIVE  *p;
183                  return;
184          }
185          newpage = FALSE;
188
186   }
187 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines