--- ray/src/common/paths.h 1992/09/08 09:08:02 2.1 +++ ray/src/common/paths.h 1992/09/08 10:04:36 2.2 @@ -10,13 +10,16 @@ #ifdef MSDOS -#define DIRSEP '\\' +#define DIRSEP '/' +#define ISDIRSEP(c) ((c)=='/' || (c)=='\\') +#define CASEDIRSEP case '/': case '\\' #define PATHSEP ';' -#define TEMPLATE "c:\\tmp\\rtXXXXXX" +#define MAXPATH 128 +#define TEMPLATE "c:/tmp/rtXXXXXX" #define TEMPLEN 15 #define ULIBVAR "RAYPATH" #ifndef DEFPATH -#define DEFPATH ";\\ray\\lib" +#define DEFPATH ";c:/ray/lib" #endif #endif @@ -24,6 +27,7 @@ #define DIRSEP '/' #define PATHSEP ';' +#define MAXPATH 128 #define TEMPLATE "/tmp/rtXXXXXX" #define TEMPLEN 13 #define ULIBVAR "RAYPATH" @@ -37,6 +41,7 @@ #define DIRSEP '/' #define PATHSEP ':' +#define MAXPATH 256 #define TEMPLATE "/tmp/rtXXXXXX" #define TEMPLEN 13 #define ULIBVAR "RAYPATH" @@ -44,6 +49,13 @@ #define DEFPATH ":/usr/local/lib/ray" #endif +#endif + +#ifndef ISDIRSEP +#define ISDIRSEP(c) ((c)==DIRSEP) +#endif +#ifndef CASEDIRSEP +#define CASEDIRSEP case DIRSEP #endif extern char *mktemp(), *getenv();