--- ray/src/ot/oconv.c 1990/12/13 10:52:51 1.12 +++ ray/src/ot/oconv.c 1991/12/19 15:06:31 2.2 @@ -18,6 +18,10 @@ static char SCCSid[] = "$SunId$ LBL"; #include "otypes.h" +#ifndef DEFPATH +#define DEFPATH ":/usr/local/lib/ray" +#endif + #define OMARGIN (10*FTINY) /* margin around global cube */ #define MAXOBJFIL 63 /* maximum number of scene files */ @@ -46,8 +50,7 @@ main(argc, argv) /* convert object files to an octree int argc; char **argv; { - char *getenv(); - double atof(); + extern char *getenv(); FVECT bbmin, bbmax; char *infile = NULL; int outflags = IO_ALL; @@ -57,7 +60,7 @@ char **argv; progname = argv[0]; if ((libpath = getenv("RAYPATH")) == NULL) - libpath = ":/usr/local/lib/ray"; + libpath = DEFPATH; initotypes(); @@ -103,6 +106,7 @@ breakopt: } printargs(argc, argv, stdout); /* info. header */ + fputformat(OCTFMT, stdout); printf("\n"); startobj = nobjects; /* previous objects already converted */