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

Comparing ray/src/common/readoct.c (file contents):
Revision 2.20 by schorsch, Thu Jul 17 09:21:29 2003 UTC vs.
Revision 2.23 by greg, Wed Oct 22 02:06:34 2003 UTC

# Line 10 | Line 10 | static const char      RCSid[] = "$Id$";
10   #include  <stdio.h>
11   #include  <time.h>
12  
13 #include  "standard.h"
13   #include  "platform.h"
14 + #include  "standard.h"
15   #include  "octree.h"
16   #include  "object.h"
17   #include  "otypes.h"
# Line 99 | Line 99 | char  *ofn[];
99          else if (load & IO_SCENE && nf == 0)
100                  skiptree();
101                  
102 <        if (load & IO_SCENE)            /* get the scene */
102 >        if (load & IO_SCENE) {          /* get the scene */
103              if (nf == 0) {
104                                          /* load binary scene data */
105                  readscene(infp, objsize);
# Line 112 | Line 112 | char  *ofn[];
112                  if (dosets(nonsurfinset))
113                          octerror(USER, "modifier in tree; octree stale?");
114              }
115 +        }
116                                  /* close the input */
117          if (infn[0] == '!')
118                  pclose(infp);
# Line 200 | Line 201 | gettree()                      /* get a pre-ordered octree */
201          default:
202                  octerror(USER, "damaged octree");
203          }
204 <        return NULL; /* pro forma return */
204 >        return EMPTY; /* pro forma return */
205   }
206  
207  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines