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.3 by greg, Tue Oct 19 17:23:31 1993 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 53 | Line 59 | char  *argv[];
59          COLR  *scan;
60          COLR  cmin, cmax;
61          int  xmin, ymin, xmax, ymax;
62 <        
62 > #ifdef MSDOS
63 >        extern int  _fmode;
64 >        _fmode = O_BINARY;
65 >        setmode(fileno(stdin), O_BINARY);
66 > #endif
67          for (i = 1; i < argc; i++)      /* get options */
68                  if (!strcmp(argv[i], "-o"))
69                          orig++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines