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

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

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7  
8   #include  <stdio.h>
9   #include  <math.h>
10 < #ifdef MSDOS
11 < #include  <fcntl.h>
12 < #endif
10 > #include  <string.h>
11 >
12 > #include  "platform.h"
13   #include  "color.h"
14 + #include  "resolu.h"
15  
16  
17   int  orig = 0;
# Line 19 | Line 20 | int  wrongformat = 0;
20  
21   COLOR  expos = WHTCOLOR;
22  
23 + static gethfunc headline;
24  
25 < headline(s)                     /* check header line */
26 < char  *s;
25 >
26 > static int
27 > headline(                       /* check header line */
28 >        char  *s,
29 >        void    *p
30 > )
31   {
32          char    fmt[32];
33          double  d;
# Line 44 | Line 50 | char  *s;
50   }
51  
52  
53 < main(argc, argv)
54 < int  argc;
55 < char  *argv[];
53 > int
54 > main(
55 >        int  argc,
56 >        char  *argv[]
57 > )
58   {
59          int  i;
60          int  xres, yres;
# Line 55 | Line 63 | char  *argv[];
63          COLR  *scan;
64          COLR  cmin, cmax;
65          int  xmin, ymin, xmax, ymax;
66 < #ifdef MSDOS
67 <        extern int  _fmode;
60 <        _fmode = O_BINARY;
61 <        setmode(fileno(stdin), O_BINARY);
62 < #endif
66 >        SET_DEFAULT_BINARY();
67 >        SET_FILE_BINARY(stdin);
68          for (i = 1; i < argc; i++)      /* get options */
69                  if (!strcmp(argv[i], "-o"))
70                          orig++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines