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

Comparing ray/src/rt/data.c (file contents):
Revision 2.2 by greg, Thu Dec 19 14:54:58 1991 UTC vs.
Revision 2.3 by greg, Mon Sep 21 12:07:42 1992 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1992 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 23 | Line 23 | extern char  *fgetword();
23  
24   extern char  *libpath;                  /* library search path */
25  
26 < static DATARRAY  *dlist = NULL;         /* data array list */
26 > static DATARRAY  *dlist = NULL;         /* data array list */
27  
28 < static DATARRAY  *plist = NULL;         /* picture list */
28 > static DATARRAY  *plist = NULL;         /* picture list */
29  
30  
31   DATARRAY *
# Line 159 | Line 159 | char  *pname;
159          FILE  *fp;
160          COLOR  *scanin;
161          int  sl, ns;
162 <        RESOLU  inpres;
162 >        RESOLU  inpres;
163          FLOAT  loc[2];
164          int  y;
165          register int  x, i;
# Line 184 | Line 184 | char  *pname;
184                  sprintf(errmsg, "cannot open picture file \"%s\"", pfname);
185                  error(SYSTEM, errmsg);
186          }
187 + #ifdef MSDOS
188 +        setmode(fileno(fp), O_BINARY);
189 + #endif
190                                                  /* get dimensions */
191          inpaspect = 1.0;
192          getheader(fp, headaspect);
# Line 289 | Line 292 | char  *pname;
292   double
293   datavalue(dp, pt)               /* interpolate data value at a point */
294   register DATARRAY  *dp;
295 < double  *pt;
295 > double  *pt;
296   {
297          DATARRAY  sd;
298          int  asize;
299          int  lower, upper;
300          register int  i;
301 <        double  x, y, y0, y1;
301 >        double  x, y, y0, y1;
302                                          /* set up dimensions for recursion */
303          sd.nd = dp->nd - 1;
304          asize = 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines