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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 /***********************************************************
2058
508036dbba3b Added 1995 copyright.
Guido van Rossum <guido@python.org>
parents: 2021
diff changeset
8 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
508036dbba3b Added 1995 copyright.
Guido van Rossum <guido@python.org>
parents: 2021
diff changeset
9 The Netherlands.
676
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
10
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
11 All Rights Reserved
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
35
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
36 ******************************************************************/
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
37
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
38 /* Operating system dependencies */
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
39
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
40 #ifdef macintosh
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
41 #define SEP ':'
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
45 #endif
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
46
5102
ee70b4c71899 djgpp support.
Guido van Rossum <guido@python.org>
parents: 4503
diff changeset
47 #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__)
676
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
52 #endif
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
55 #ifndef SEP
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
56 #define SEP '/'
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
57 #endif
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
60 #ifndef MAXPATHLEN
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
61 #define MAXPATHLEN 1024
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
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 */