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

Comparing ray/src/px/pcomb.c (file contents):
Revision 2.22 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 2.26 by schorsch, Mon Jul 21 22:30:18 2003 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   */
9  
10   #include "standard.h"
11 <
11 > #include "platform.h"
12   #include "color.h"
13
13   #include "calcomp.h"
15
14   #include "view.h"
15  
16   #define MAXINP          32              /* maximum number of input files */
# Line 83 | Line 81 | char   *argv[];
81          int     original;
82          double  f;
83          int     a, i;
84 < #ifdef MSDOS
85 <        extern int  _fmode;
86 <        _fmode = O_BINARY;
89 <        setmode(fileno(stdin), O_BINARY);
90 <        setmode(fileno(stdout), O_BINARY);
91 < #endif
84 >        SET_DEFAULT_BINARY();
85 >        SET_FILE_BINARY(stdin);
86 >        SET_FILE_BINARY(stdout);
87          progname = argv[0];
88                                                  /* scan options */
89          for (a = 1; a < argc; a++) {
# Line 114 | Line 109 | char   *argv[];
109          for (nfiles = 0; nfiles < MAXINP; nfiles++) {
110                  setcolor(input[nfiles].coef, 1.0, 1.0, 1.0);
111                  setcolor(input[nfiles].expos, 1.0, 1.0, 1.0);
112 <                copystruct(&input[nfiles].vw, &stdview);
112 >                input[nfiles].vw = stdview;
113                  input[nfiles].pa = 1.0;
114          }
115          nfiles = 0;
# Line 523 | Line 518 | register char  *nam;
518          static unsigned long    ltick[MAXINP];
519          static FVECT    lorg[MAXINP], ldir[MAXINP];
520          static double   ldist[MAXINP];
521 <        FLOAT   loc[2];
521 >        RREAL   loc[2];
522          int     fn;
523          register int    i;
524  
# Line 561 | Line 556 | l_psize()                      /* compute pixel size in steradians */
556          static unsigned long    ltick[MAXINP];
557          static double   psize[MAXINP];
558          FVECT   dir0, org, dirx, diry;
559 <        FLOAT   locx[2], locy[2];
559 >        RREAL   locx[2], locy[2];
560          double  d;
561          int     fn;
562          register int    i;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines