--- ray/src/common/readoct.c 2003/07/16 01:32:53 2.19 +++ ray/src/common/readoct.c 2003/10/27 10:19:31 2.24 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: readoct.c,v 2.19 2003/07/16 01:32:53 greg Exp $"; +static const char RCSid[] = "$Id: readoct.c,v 2.24 2003/10/27 10:19:31 schorsch Exp $"; #endif /* * readoct.c - routines to read octree information. @@ -10,20 +10,21 @@ static const char RCSid[] = "$Id: readoct.c,v 2.19 200 #include #include -#include "standard.h" #include "platform.h" +#include "rtprocess.h" +#include "standard.h" #include "octree.h" #include "object.h" #include "otypes.h" #include "resolu.h" -static double ogetflt(); -static long ogetint(); -static char *ogetstr(); -static int nonsurfinset(); +static double ogetflt(void); +static long ogetint(int); +static char *ogetstr(char *); +static int nonsurfinset(OBJECT *); static void octerror(int etyp, char *msg); static void skiptree(void); -static OCTREE getfullnode(), gettree(); +static OCTREE getfullnode(void), gettree(void); static char *infn; /* input file specification */ static FILE *infp; /* input file stream */ @@ -99,7 +100,7 @@ char *ofn[]; else if (load & IO_SCENE && nf == 0) skiptree(); - if (load & IO_SCENE) /* get the scene */ + if (load & IO_SCENE) { /* get the scene */ if (nf == 0) { /* load binary scene data */ readscene(infp, objsize); @@ -112,6 +113,7 @@ char *ofn[]; if (dosets(nonsurfinset)) octerror(USER, "modifier in tree; octree stale?"); } + } /* close the input */ if (infn[0] == '!') pclose(infp); @@ -200,7 +202,7 @@ gettree() /* get a pre-ordered octree */ default: octerror(USER, "damaged octree"); } - return NULL; /* pro forma return */ + return EMPTY; /* pro forma return */ }