1 |
< |
/* Copyright (c) 1990 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
10 |
|
|
11 |
|
#include <stdio.h> |
12 |
|
|
13 |
< |
#ifndef DEFPATH |
14 |
< |
#define DEFPATH ":/usr/local/lib/ray" |
15 |
< |
#endif |
16 |
< |
#ifndef ULIBVAR |
17 |
< |
#define ULIBVAR "RAYPATH" |
18 |
< |
#endif |
19 |
< |
#ifndef DIRSEP |
20 |
< |
#define DIRSEP '/' |
21 |
< |
#endif |
22 |
< |
#ifndef PATHSEP |
23 |
< |
#define PATHSEP ':' |
24 |
< |
#endif |
13 |
> |
#include "paths.h" |
14 |
|
|
15 |
|
char *libpath = NULL; /* library search path */ |
16 |
|
|
19 |
|
fropen(fname) /* find file and open for reading */ |
20 |
|
register char *fname; |
21 |
|
{ |
22 |
< |
extern char *strcpy(), *getenv(); |
22 |
> |
extern char *strcpy(); |
23 |
|
FILE *fp; |
24 |
|
char pname[256]; |
25 |
|
register char *sp, *cp; |