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

Comparing ray/src/ot/readobj2.c (file contents):
Revision 2.4 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 2.5 by greg, Tue Mar 11 19:29:05 2003 UTC

# Line 70 | Line 70 | int  (*f)();
70          thisobj.omod = OVOID;
71                                          /* get type */
72          fgetword(sbuf, MAXSTR, fp);
73 <        if (!strcmp(sbuf, ALIASID))
74 <                thisobj.otype = -1;
75 <        else if ((thisobj.otype = otype(sbuf)) < 0) {
73 >        if ((thisobj.otype = otype(sbuf)) < 0) {
74                  sprintf(errmsg, "(%s): unknown type \"%s\"", name, sbuf);
75                  error(USER, errmsg);
76          }
# Line 80 | Line 78 | int  (*f)();
78          fgetword(sbuf, MAXSTR, fp);
79          thisobj.oname = sbuf;
80                                          /* get arguments */
81 <        if (thisobj.otype == -1) {
81 >        if (thisobj.otype == MOD_ALIAS) {
82                  fscanf(fp, "%*s");
83                  return;
84          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines