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.2 by greg, Mon Sep 21 12:14:03 1992 UTC

# Line 9 | Line 9 | static char SCCSid[] = "$SunId$ LBL";
9   */
10  
11   #include  <stdio.h>
12 + #ifdef MSDOS
13 + #include  <fcntl.h>
14 + #endif
15   #include  "color.h"
16  
17  
# Line 18 | Line 21 | int  wrongformat = 0;
21  
22   COLOR  expos = WHTCOLOR;
23  
24 + extern char  *malloc();
25  
26 +
27   headline(s)                     /* check header line */
28   char  *s;
29   {
# Line 53 | Line 58 | char  *argv[];
58          COLR  *scan;
59          COLR  cmin, cmax;
60          int  xmin, ymin, xmax, ymax;
61 <        
61 > #ifdef MSDOS
62 >        extern int  _fmode;
63 >        _fmode = O_BINARY;
64 >        setmode(fileno(stdin), O_BINARY);
65 > #endif
66          for (i = 1; i < argc; i++)      /* get options */
67                  if (!strcmp(argv[i], "-o"))
68                          orig++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines