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.6 by gwlarson, Tue Oct 27 16:32:33 1998 UTC vs.
Revision 2.8 by greg, Thu May 15 05:13:35 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1991 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   * prot.c - program to rotate picture file 90 degrees clockwise.
6   *
# Line 14 | Line 11 | static char SCCSid[] = "$SunId$ LBL";
11  
12   #include "color.h"
13  
14 + #include <time.h>
15 +
16   #include "resolu.h"
17  
18   int     order;                          /* input scanline order */
# Line 22 | Line 21 | int    xres, yres;                     /* input resolution */
21   int     correctorder = 0;               /* order correction? */
22   int     ccw = 0;                        /* rotate CCW? */
23  
24 < #ifdef BIGMEM
26 < char    buf[1<<22];                     /* output buffer */
27 < #else
24 > #ifdef SMLMEM
25   char    buf[1<<20];                     /* output buffer */
26 + #else
27 + char    buf[1<<22];                     /* output buffer */
28   #endif
29  
30   int     nrows;                          /* number of rows output at once */
# Line 151 | Line 150 | FILE   *fp;
150                                  exit(1);
151                          }
152          }
153 <        free((char *)inln);
153 >        free((void *)inln);
154   }
155  
156  
# Line 187 | Line 186 | FILE   *fp;
186                                  exit(1);
187                          }
188          }
189 <        free((char *)inln);
189 >        free((void *)inln);
190   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines