Mercurial > cpython-lru_cache-weakref
annotate Include/osdefs.h @ 5817:48b94de85bf3 legacy-trunk
Extensive changes by AMK.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 1997 16:29:42 +0000 |
| parents | ee70b4c71899 |
| children | 5e31d381fa47 |
| rev | line source |
|---|---|
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
1 #ifndef Py_OSDEFS_H |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
2 #define Py_OSDEFS_H |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
3 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
4 extern "C" { |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
5 #endif |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
6 |
| 676 | 7 /*********************************************************** |
| 2058 | 8 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, |
| 9 The Netherlands. | |
| 676 | 10 |
| 11 All Rights Reserved | |
| 12 | |
|
4503
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
13 Permission to use, copy, modify, and distribute this software and its |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
14 documentation for any purpose and without fee is hereby granted, |
| 676 | 15 provided that the above copyright notice appear in all copies and that |
|
4503
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
16 both that copyright notice and this permission notice appear in |
| 676 | 17 supporting documentation, and that the names of Stichting Mathematisch |
|
4503
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
18 Centrum or CWI or Corporation for National Research Initiatives or |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
19 CNRI not be used in advertising or publicity pertaining to |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
20 distribution of the software without specific, written prior |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
21 permission. |
| 676 | 22 |
|
4503
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
23 While CWI is the initial source for this software, a modified version |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
24 is made available by the Corporation for National Research Initiatives |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
25 (CNRI) at the Internet address ftp://ftp.python.org. |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
26 |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
27 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
28 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
29 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
30 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
31 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
32 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
33 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
|
65d2d8e67da3
New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents:
4281
diff
changeset
|
34 PERFORMANCE OF THIS SOFTWARE. |
| 676 | 35 |
| 36 ******************************************************************/ | |
| 37 | |
| 38 /* Operating system dependencies */ | |
| 39 | |
| 40 #ifdef macintosh | |
| 41 #define SEP ':' | |
| 42 #define MAXPATHLEN 256 | |
|
2021
ee12edfc2095
Use \n as PYTHONPATH delimiter on Mac (less likely to occur in
Jack Jansen <jack.jansen@cwi.nl>
parents:
1746
diff
changeset
|
43 /* Mod by Jack: newline is less likely to occur in filenames than space */ |
|
ee12edfc2095
Use \n as PYTHONPATH delimiter on Mac (less likely to occur in
Jack Jansen <jack.jansen@cwi.nl>
parents:
1746
diff
changeset
|
44 #define DELIM '\n' |
| 676 | 45 #endif |
| 46 | |
| 5102 | 47 #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) |
| 676 | 48 #define SEP '\\' |
|
4281
4bdafa703a04
Rationalized PC compiler defines: require MS_WINDOWS or __BORLANDC__
Guido van Rossum <guido@python.org>
parents:
3581
diff
changeset
|
49 #define ALTSEP '/' |
| 676 | 50 #define MAXPATHLEN 256 |
|
711
3d9c2310afe8
Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents:
676
diff
changeset
|
51 #define DELIM ';' |
| 676 | 52 #endif |
| 53 | |
|
711
3d9c2310afe8
Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents:
676
diff
changeset
|
54 /* Filename separator */ |
| 676 | 55 #ifndef SEP |
| 56 #define SEP '/' | |
| 57 #endif | |
| 58 | |
|
711
3d9c2310afe8
Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents:
676
diff
changeset
|
59 /* Max pathname length */ |
| 676 | 60 #ifndef MAXPATHLEN |
| 61 #define MAXPATHLEN 1024 | |
| 62 #endif | |
|
711
3d9c2310afe8
Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents:
676
diff
changeset
|
63 |
|
3d9c2310afe8
Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents:
676
diff
changeset
|
64 /* Search path entry delimiter */ |
|
3d9c2310afe8
Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents:
676
diff
changeset
|
65 #ifndef DELIM |
|
3d9c2310afe8
Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents:
676
diff
changeset
|
66 #define DELIM ':' |
|
3d9c2310afe8
Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents:
676
diff
changeset
|
67 #endif |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
68 |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
69 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
70 } |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
71 #endif |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
72 #endif /* !Py_OSDEFS_H */ |
