--- ray/src/common/readoct.c 2003/06/05 19:29:34 2.16 +++ ray/src/common/readoct.c 2003/08/29 16:46:51 2.22 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: readoct.c,v 2.16 2003/06/05 19:29:34 schorsch Exp $"; +static const char RCSid[] = "$Id: readoct.c,v 2.22 2003/08/29 16:46:51 greg Exp $"; #endif /* * readoct.c - routines to read octree information. @@ -7,20 +7,23 @@ static const char RCSid[] = "$Id: readoct.c,v 2.16 200 #include "copyright.h" -#include "standard.h" +#include +#include +#include "standard.h" +#include "platform.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 int octerror(), skiptree(); -static OCTREE getfullnode(), gettree(); +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(void), gettree(void); static char *infn; /* input file specification */ static FILE *infp; /* input file stream */ @@ -96,7 +99,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); @@ -109,6 +112,7 @@ char *ofn[]; if (dosets(nonsurfinset)) octerror(USER, "modifier in tree; octree stale?"); } + } /* close the input */ if (infn[0] == '!') pclose(infp); @@ -197,6 +201,7 @@ gettree() /* get a pre-ordered octree */ default: octerror(USER, "damaged octree"); } + return EMPTY; /* pro forma return */ } @@ -215,8 +220,8 @@ register OBJECT *os; } -static -skiptree() /* skip octree on input */ +static void +skiptree(void) /* skip octree on input */ { register int i; @@ -240,7 +245,7 @@ skiptree() /* skip octree on input */ } -static +static void octerror(etyp, msg) /* octree error */ int etyp; char *msg;