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

Comparing ray/src/px/pcompos.c (file contents):
Revision 2.14 by greg, Tue Sep 8 10:36:22 1992 UTC vs.
Revision 2.16 by greg, Fri Jun 4 14:47:01 1993 UTC

# Line 12 | Line 12 | static char SCCSid[] = "$SunId$ LBL";
12  
13   #include  <stdio.h>
14  
15 + #include  <math.h>
16 +
17 + #ifdef MSDOS
18 + #include  <fcntl.h>
19 + #endif
20 +
21   #include  "color.h"
22  
23   #include  "resolu.h"
24  
25 < #define  MAXFILE        64
25 > #define  MAXFILE        64
26  
27                                          /* output picture size */
28   int  xsiz = 0;
# Line 53 | Line 59 | int  wrongformat = 0;
59  
60   FILE  *popen(), *lblopen();
61  
62 + extern char  *malloc();
63  
64 +
65   tabputs(s)                      /* print line preceded by a tab */
66   char  *s;
67   {
# Line 78 | Line 86 | char  *argv[];
86          int  curcol = 0, x0 = 0, curx = 0, cury = 0, spacing = 0;
87          char  *thislabel;
88          int  an;
89 <
89 > #ifdef MSDOS
90 >        extern int  _fmode;
91 >        _fmode = O_BINARY;
92 >        setmode(fileno(stdin), O_BINARY);
93 >        setmode(fileno(stdout), O_BINARY);
94 > #endif
95          progname = argv[0];
96  
97          for (an = 1; an < argc && argv[an][0] == '-'; an++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines