--- ray/src/ot/getbbox.c 1993/02/10 14:46:11 2.3 +++ ray/src/ot/getbbox.c 2003/02/22 02:07:26 2.5 @@ -1,9 +1,6 @@ -/* Copyright (c) 1991 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: getbbox.c,v 2.5 2003/02/22 02:07:26 greg Exp $"; #endif - /* * getbbox.c - compute bounding box for scene files * @@ -16,17 +13,11 @@ static char SCCSid[] = "$SunId$ LBL"; #include "object.h" -#ifndef DEFPATH -#define DEFPATH ":/usr/local/lib/ray" -#endif - char *progname; /* argv[0] */ -char *libpath; /* library search path */ - int nowarn = 0; /* supress warnings? */ -int (*addobjnotify[])() = {NULL}; /* new object notifier functions */ +void (*addobjnotify[])() = {NULL}; /* new object notifier functions */ FVECT bbmin, bbmax; /* bounding box */ @@ -47,9 +38,6 @@ char **argv; progname = argv[0]; - if ((libpath = getenv("RAYPATH")) == NULL) - libpath = DEFPATH; - for (i = 1; i < argc && argv[i][0] == '-'; i++) { switch (argv[i][1]) { case 'w': @@ -66,13 +54,13 @@ char **argv; bbmax[0] = bbmax[1] = bbmax[2] = -FHUGE; /* read input */ if (i >= argc) - readobj(NULL, addobject); + readobj2(NULL, addobject); else for ( ; i < argc; i++) if (!strcmp(argv[i], "-")) /* from stdin */ - readobj(NULL, addobject); + readobj2(NULL, addobject); else /* from file */ - readobj(argv[i], addobject); + readobj2(argv[i], addobject); /* print bounding box */ if (!nohead) printf( @@ -84,6 +72,7 @@ char **argv; } +void quit(code) /* exit program */ int code; { @@ -91,12 +80,14 @@ int code; } +void cputs() /* interactive error */ { /* referenced, but not used */ } +void wputs(s) /* warning message */ char *s; { @@ -105,6 +96,7 @@ char *s; } +void eputs(s) /* put string to stderr */ register char *s; {