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

Comparing ray/src/px/greyscale.c (file contents):
Revision 2.6 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 2.7 by schorsch, Sun Mar 28 20:33:13 2004 UTC

# Line 16 | Line 16 | static const char      RCSid[] = "$Id$";
16  
17   double  minlog = 0.0;           /* minimum for log scale (0 == linear) */
18  
19 + static void greyscale(COLOR  col0);
20 + static void printargs(int  ac, char  **av, FILE  *fp);
21  
22 < main(argc, argv)
23 < int  argc;
24 < char  *argv[];
22 >
23 > int
24 > main(
25 >        int  argc,
26 >        char  *argv[]
27 > )
28   {
29          COLOR  col;
30          double  d1,d2,d3;
# Line 53 | Line 58 | char  *argv[];
58          printf("\n");
59          printf("-Y 512 +X 512\n");
60          greyscale(col);
61 +        return 0;
62   }
63  
64  
65 < greyscale(col0)                 /* output our grey scale */
66 < COLOR  col0;
65 > static void
66 > greyscale(                      /* output our grey scale */
67 >        COLOR  col0
68 > )
69   {
70          COLOR  col1, col2, scanline[512];
71          double  x;
# Line 102 | Line 110 | writerr:
110   }
111  
112  
113 < printargs(ac, av, fp)           /* print arguments to a file */
114 < int  ac;
115 < char  **av;
116 < FILE  *fp;
113 > static void
114 > printargs(              /* print arguments to a file */
115 >        int  ac,
116 >        char  **av,
117 >        FILE  *fp
118 > )
119   {
120          while (ac-- > 0) {
121                  fputs(*av++, fp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines