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.1 by greg, Fri Aug 21 13:48:48 1992 UTC vs.
Revision 2.4 by gwlarson, Tue Oct 27 09:08:26 1998 UTC

# Line 9 | Line 9 | static char SCCSid[] = "$SunId$ LBL";
9   */
10  
11   #include  <stdio.h>
12 + #include  <math.h>
13 + #ifdef MSDOS
14 + #include  <fcntl.h>
15 + #endif
16   #include  "color.h"
17  
18  
# Line 18 | Line 22 | int  wrongformat = 0;
22  
23   COLOR  expos = WHTCOLOR;
24  
25 + extern char  *malloc();
26  
27 +
28   headline(s)                     /* check header line */
29   char  *s;
30   {
# Line 31 | Line 37 | char  *s;
37                  wrongformat = strcmp(fmt, COLRFMT);
38          }
39          if (!orig)
40 <                return;
40 >                return(0);
41          if (isexpos(s)) {                       /* exposure */
42                  d = exposval(s);
43                  scalecolor(expos, d);
# Line 39 | Line 45 | char  *s;
45                  colcorval(ctmp, s);
46                  multcolor(expos, ctmp);
47          }
48 +        return(0);
49   }
50  
51  
# Line 53 | Line 60 | char  *argv[];
60          COLR  *scan;
61          COLR  cmin, cmax;
62          int  xmin, ymin, xmax, ymax;
63 <        
63 > #ifdef MSDOS
64 >        extern int  _fmode;
65 >        _fmode = O_BINARY;
66 >        setmode(fileno(stdin), O_BINARY);
67 > #endif
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