--- ray/src/common/fropen.c 2003/05/13 17:58:32 2.10 +++ ray/src/common/fropen.c 2013/12/19 16:38:12 2.16 @@ -1,32 +1,33 @@ #ifndef lint -static const char RCSid[] = "$Id: fropen.c,v 2.10 2003/05/13 17:58:32 greg Exp $"; +static const char RCSid[] = "$Id: fropen.c,v 2.16 2013/12/19 16:38:12 greg Exp $"; #endif /* * Find and open a Radiance library file. * - * External symbols declared in standard.h + * External symbols declared in rtio.h */ #include "copyright.h" #include +#include "rtio.h" #include "paths.h" FILE * -frlibopen(fname) /* find file and open for reading */ -register char *fname; +frlibopen( /* find file and open for reading */ + char *fname +) { - extern char *strcpy(), *getrlibpath(); FILE *fp; - char pname[MAXPATH]; - register char *sp, *cp; + char pname[PATH_MAX]; + char *sp, *cp; if (fname == NULL) return(NULL); - if (ISDIRSEP(fname[0]) || fname[0] == '.') /* absolute path */ + if (ISABS(fname) || fname[0] == '.') /* absolute path */ return(fopen(fname, "r")); /* check search path */ sp = getrlibpath();