| 1 |
schorsch |
2.11 |
/* RCSid $Id: paths.h,v 2.10 2003/02/25 02:47:21 greg Exp $ */
|
| 2 |
greg |
2.1 |
/*
|
| 3 |
|
|
* Definitions for paths on different machines
|
| 4 |
greg |
2.9 |
*/
|
| 5 |
|
|
|
| 6 |
greg |
2.10 |
#include "copyright.h"
|
| 7 |
greg |
2.1 |
|
| 8 |
schorsch |
2.11 |
#ifdef _WIN32
|
| 9 |
greg |
2.1 |
|
| 10 |
greg |
2.2 |
#define DIRSEP '/'
|
| 11 |
|
|
#define ISDIRSEP(c) ((c)=='/' || (c)=='\\')
|
| 12 |
|
|
#define CASEDIRSEP case '/': case '\\'
|
| 13 |
greg |
2.1 |
#define PATHSEP ';'
|
| 14 |
greg |
2.2 |
#define MAXPATH 128
|
| 15 |
greg |
2.7 |
#define TEMPLATE "rtXXXXXX"
|
| 16 |
|
|
#define TEMPLEN 8
|
| 17 |
greg |
2.1 |
#define ULIBVAR "RAYPATH"
|
| 18 |
greg |
2.3 |
#ifndef DEFPATH
|
| 19 |
|
|
#define DEFPATH ";c:/ray/lib"
|
| 20 |
greg |
2.1 |
#endif
|
| 21 |
greg |
2.4 |
extern char *fixargv0();
|
| 22 |
greg |
2.1 |
|
| 23 |
greg |
2.3 |
#else
|
| 24 |
greg |
2.1 |
#ifdef AMIGA
|
| 25 |
|
|
|
| 26 |
|
|
#define DIRSEP '/'
|
| 27 |
|
|
#define PATHSEP ';'
|
| 28 |
greg |
2.2 |
#define MAXPATH 128
|
| 29 |
greg |
2.1 |
#define TEMPLATE "/tmp/rtXXXXXX"
|
| 30 |
|
|
#define TEMPLEN 13
|
| 31 |
|
|
#define ULIBVAR "RAYPATH"
|
| 32 |
greg |
2.3 |
#ifndef DEFPATH
|
| 33 |
|
|
#define DEFPATH ";/ray/lib"
|
| 34 |
greg |
2.1 |
#endif
|
| 35 |
greg |
2.4 |
#define fixargv0(a0) (a0)
|
| 36 |
greg |
2.1 |
|
| 37 |
|
|
#else
|
| 38 |
|
|
|
| 39 |
|
|
#define DIRSEP '/'
|
| 40 |
|
|
#define PATHSEP ':'
|
| 41 |
greg |
2.2 |
#define MAXPATH 256
|
| 42 |
greg |
2.5 |
#define TEMPLATE "/usr/tmp/rtXXXXXX"
|
| 43 |
greg |
2.6 |
#define TEMPLEN 17
|
| 44 |
greg |
2.1 |
#define ULIBVAR "RAYPATH"
|
| 45 |
greg |
2.3 |
#ifndef DEFPATH
|
| 46 |
|
|
#define DEFPATH ":/usr/local/lib/ray"
|
| 47 |
greg |
2.1 |
#endif
|
| 48 |
greg |
2.4 |
#define fixargv0(a0) (a0)
|
| 49 |
greg |
2.1 |
|
| 50 |
greg |
2.3 |
#endif
|
| 51 |
greg |
2.2 |
#endif
|
| 52 |
|
|
|
| 53 |
|
|
#ifndef ISDIRSEP
|
| 54 |
|
|
#define ISDIRSEP(c) ((c)==DIRSEP)
|
| 55 |
|
|
#endif
|
| 56 |
|
|
#ifndef CASEDIRSEP
|
| 57 |
|
|
#define CASEDIRSEP case DIRSEP
|
| 58 |
greg |
2.1 |
#endif
|
| 59 |
|
|
|
| 60 |
|
|
extern char *mktemp(), *getenv();
|
| 61 |
greg |
2.8 |
|
| 62 |
|
|
#ifdef BSD
|
| 63 |
|
|
extern char *getwd();
|
| 64 |
|
|
#else
|
| 65 |
|
|
extern char *getcwd();
|
| 66 |
|
|
#define getwd(p) getcwd(p, sizeof(p))
|
| 67 |
|
|
#endif
|