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

Comparing ray/src/px/colorscale.c (file contents):
Revision 1.1 by greg, Thu Feb 2 10:49:11 1989 UTC vs.
Revision 2.5 by schorsch, Sun Mar 28 20:33:13 2004 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1987 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  colorscale.c - program to produce color pallets
6   *
# Line 12 | Line 9 | static char SCCSid[] = "$SunId$ LBL";
9  
10   #include  <stdio.h>
11  
12 + #include  <math.h>
13 +
14   #include  "color.h"
15  
16   int  primary = -1;
17   double  prival = 0.0;
18  
19 + static void colorscale(void);
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   {
25        double  atof();
29          int  i;
30  
31          for (i = 1; i < argc && argv[i][0] == '-'; i++)
# Line 55 | Line 58 | userr:
58   }
59  
60  
61 < colorscale()                    /* output our color scale */
61 > static void
62 > colorscale(void)                        /* output our color scale */
63   {
64          COLOR  scanline[256];
65          int  j;
# Line 84 | Line 88 | writerr:
88   }
89  
90  
91 < printargs(ac, av, fp)           /* print arguments to a file */
92 < int  ac;
93 < char  **av;
94 < FILE  *fp;
91 > static void
92 > printargs(              /* print arguments to a file */
93 >        int  ac,
94 >        char  **av,
95 >        FILE  *fp
96 > )
97   {
98          while (ac-- > 0) {
99                  fputs(*av++, fp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines