--- ray/src/common/paths.h 1992/09/08 09:08:02 2.1 +++ ray/src/common/paths.h 1993/07/21 10:00:57 2.7 @@ -6,44 +6,56 @@ * Definitions for paths on different machines */ -#ifdef NIX - #ifdef MSDOS -#define DIRSEP '\\' +#define DIRSEP '/' +#define ISDIRSEP(c) ((c)=='/' || (c)=='\\') +#define CASEDIRSEP case '/': case '\\' #define PATHSEP ';' -#define TEMPLATE "c:\\tmp\\rtXXXXXX" -#define TEMPLEN 15 +#define MAXPATH 128 +#define TEMPLATE "rtXXXXXX" +#define TEMPLEN 8 #define ULIBVAR "RAYPATH" -#ifndef DEFPATH -#define DEFPATH ";\\ray\\lib" +#ifndef DEFPATH +#define DEFPATH ";c:/ray/lib" #endif +extern char *fixargv0(); -#endif +#else #ifdef AMIGA #define DIRSEP '/' #define PATHSEP ';' +#define MAXPATH 128 #define TEMPLATE "/tmp/rtXXXXXX" #define TEMPLEN 13 #define ULIBVAR "RAYPATH" -#ifndef DEFPATH -#define DEFPATH ";/ray/lib" +#ifndef DEFPATH +#define DEFPATH ";/ray/lib" #endif +#define fixargv0(a0) (a0) -#endif - #else #define DIRSEP '/' #define PATHSEP ':' -#define TEMPLATE "/tmp/rtXXXXXX" -#define TEMPLEN 13 +#define MAXPATH 256 +#define TEMPLATE "/usr/tmp/rtXXXXXX" +#define TEMPLEN 17 #define ULIBVAR "RAYPATH" -#ifndef DEFPATH -#define DEFPATH ":/usr/local/lib/ray" +#ifndef DEFPATH +#define DEFPATH ":/usr/local/lib/ray" #endif +#define fixargv0(a0) (a0) +#endif +#endif + +#ifndef ISDIRSEP +#define ISDIRSEP(c) ((c)==DIRSEP) +#endif +#ifndef CASEDIRSEP +#define CASEDIRSEP case DIRSEP #endif extern char *mktemp(), *getenv();