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

Comparing ray/src/rt/p_data.c (file contents):
Revision 1.1 by greg, Thu Feb 2 10:41:33 1989 UTC vs.
Revision 1.4 by greg, Wed Jan 2 18:22:40 1991 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1991 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 68 | Line 68 | RAY  *r;
68                  objerror(m, USER, "bad # arguments");
69          if (!vardefined(sa[3]))
70                  loadfunc(sa[2]);
71 +        errno = 0;
72          for (nv = 0; nv+3 < m->oargs.nsargs &&
73                          sa[nv+3][0] != '-'; nv++) {
74                  if (nv >= MAXDIM)
75                          goto dimerr;
75                errno = 0;
76                  pt[nv] = varvalue(sa[nv+3]);
77                if (errno)
78                        goto computerr;
77          }
78 +        if (errno)
79 +                goto computerr;
80          dp = getdata(sa[1]);
81          if (dp->nd != nv)
82                  goto dimerr;
# Line 172 | Line 172 | RAY  *r;
172                  objerror(m, USER, "bad # arguments");
173          if (!vardefined(sa[5]))
174                  loadfunc(sa[4]);
175 <        for (i = 0; i < 2; i++) {
176 <                errno = 0;
177 <                pt[i] = varvalue(sa[i+5]);
178 <                if (errno)
179 <                        goto computerr;
180 <        }
175 >        errno = 0;
176 >        pt[1] = varvalue(sa[5]);        /* y major ordering */
177 >        pt[0] = varvalue(sa[6]);
178 >        if (errno)
179 >                goto computerr;
180          dp = getpict(sa[3]);
181          for (i = 0; i < 3; i++)
182                  col[i] = datavalue(dp+i, pt);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines