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

Comparing ray/src/px/protate.c (file contents):
Revision 2.8 by greg, Thu May 15 05:13:35 2003 UTC vs.
Revision 2.9 by schorsch, Sun Mar 28 20:33:14 2004 UTC

# Line 37 | Line 37 | short  ordertab[4][2] = {
37          {0,XDECR}, {XDECR,XDECR|YDECR}, {XDECR|YDECR,YDECR}, {YDECR,0}
38   };
39  
40 + static int neworder(void);
41 + static void rotatecw(FILE *fp);
42 + static void rotateccw(FILE *fp);
43  
44 < int
45 < neworder()              /* return corrected order */
44 >
45 >
46 > static int
47 > neworder(void)          /* return corrected order */
48   {
49          register int    i;
50  
# Line 52 | Line 57 | neworder()             /* return corrected order */
57          exit(2);
58   }
59  
60 <
61 < main(argc, argv)
62 < int     argc;
63 < char    *argv[];
60 > int
61 > main(
62 >        int     argc,
63 >        char    *argv[]
64 > )
65   {
66          static char     picfmt[LPICFMT+1] = PICFMT;
67          int     rval;
# Line 118 | Line 124 | userr:
124   }
125  
126  
127 < rotatecw(fp)                    /* rotate picture clockwise */
128 < FILE    *fp;
127 > static void
128 > rotatecw(                       /* rotate picture clockwise */
129 >        FILE    *fp
130 > )
131   {
132          register COLR   *inln;
133          register int    xoff, inx, iny;
# Line 154 | Line 162 | FILE   *fp;
162   }
163  
164  
165 < rotateccw(fp)                   /* rotate picture counter-clockwise */
166 < FILE    *fp;
165 > static void
166 > rotateccw(                      /* rotate picture counter-clockwise */
167 >        FILE    *fp
168 > )
169   {
170          register COLR   *inln;
171          register int    xoff, inx, iny;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines