ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/paths.h
(Generate patch)

Comparing ray/src/common/paths.h (file contents):
Revision 2.2 by greg, Tue Sep 8 10:04:36 1992 UTC vs.
Revision 2.12 by schorsch, Fri Jun 6 16:38:47 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1992 Regents of the University of California */
2 <
3 < /* SCCSid "$SunId$ LBL" */
4 <
1 > /* RCSid $Id$ */
2   /*
3   * Definitions for paths on different machines
4   */
5 + #ifndef _RAD_PATHS_H_
6 + #define _RAD_PATHS_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
11 < #ifdef NIX
11 > #include "copyright.h"
12  
13 < #ifdef MSDOS
13 > #ifdef _WIN32
14  
15   #define DIRSEP          '/'
16   #define ISDIRSEP(c)     ((c)=='/' || (c)=='\\')
17   #define CASEDIRSEP      case '/': case '\\'
18   #define PATHSEP         ';'
19   #define MAXPATH         128
20 < #define TEMPLATE        "c:/tmp/rtXXXXXX"
21 < #define TEMPLEN         15
20 > #define TEMPLATE        "rtXXXXXX"
21 > #define TEMPLEN         8
22   #define ULIBVAR         "RAYPATH"
23 < #ifndef DEFPATH
24 < #define DEFPATH         ";c:/ray/lib"
23 > #ifndef DEFPATH
24 > #define DEFPATH         ";c:/ray/lib"
25   #endif
26 + extern char  *fixargv0();
27  
28 < #endif
28 > #else
29   #ifdef AMIGA
30  
31   #define DIRSEP          '/'
# Line 31 | Line 34
34   #define TEMPLATE        "/tmp/rtXXXXXX"
35   #define TEMPLEN         13
36   #define ULIBVAR         "RAYPATH"
37 < #ifndef DEFPATH
38 < #define DEFPATH         ";/ray/lib"
37 > #ifndef DEFPATH
38 > #define DEFPATH         ";/ray/lib"
39   #endif
40 + #define  fixargv0(a0)   (a0)
41  
38 #endif
39
42   #else
43  
44   #define DIRSEP          '/'
45   #define PATHSEP         ':'
46   #define MAXPATH         256
47 < #define TEMPLATE        "/tmp/rtXXXXXX"
48 < #define TEMPLEN         13
47 > #define TEMPLATE        "/usr/tmp/rtXXXXXX"
48 > #define TEMPLEN         17
49   #define ULIBVAR         "RAYPATH"
50 < #ifndef DEFPATH
51 < #define DEFPATH         ":/usr/local/lib/ray"
50 > #ifndef DEFPATH
51 > #define DEFPATH         ":/usr/local/lib/ray"
52   #endif
53 + #define  fixargv0(a0)   (a0)
54  
55   #endif
56 + #endif
57  
58   #ifndef ISDIRSEP
59   #define ISDIRSEP(c)     ((c)==DIRSEP)
# Line 59 | Line 63
63   #endif
64  
65   extern char  *mktemp(), *getenv();
66 +
67 + #ifdef BSD
68 + extern char  *getwd();
69 + #else
70 + extern char  *getcwd();
71 + #define  getwd(p)       getcwd(p, sizeof(p))
72 + #endif
73 +
74 +
75 + #ifdef __cplusplus
76 + }
77 + #endif
78 + #endif /* _RAD_PATHS_H_ */
79 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines