annotate Include/osdefs.h @ 54294:dba767bc3155 legacy-trunk

remove mention of old ctypes version
author Benjamin Peterson <benjamin@python.org>
date Sat, 23 May 2009 20:59:09 +0000
parents b535c191a44b
children 4d2aa4bfb2d6 bb21c800cf49
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
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 /* Operating system dependencies */
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
9
6716
d854a1c7e74d Patch for QNX, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents: 6626
diff changeset
10 /* Mod by chrish: QNX has WATCOM, but isn't DOS */
d854a1c7e74d Patch for QNX, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents: 6626
diff changeset
11 #if !defined(__QNX__)
6761
748abc7f8808 Use the proper OS2 test symbol: PYOS_OS2.
Guido van Rossum <guido@python.org>
parents: 6716
diff changeset
12 #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
22052
08d5cf596b01 OS/2 EMX port changes (Include part of patch #450267):
Andrew MacIntyre <andymac@bullseye.apana.org.au>
parents: 16943
diff changeset
13 #if defined(PYOS_OS2) && defined(PYCC_GCC)
08d5cf596b01 OS/2 EMX port changes (Include part of patch #450267):
Andrew MacIntyre <andymac@bullseye.apana.org.au>
parents: 16943
diff changeset
14 #define MAXPATHLEN 260
08d5cf596b01 OS/2 EMX port changes (Include part of patch #450267):
Andrew MacIntyre <andymac@bullseye.apana.org.au>
parents: 16943
diff changeset
15 #define SEP '/'
08d5cf596b01 OS/2 EMX port changes (Include part of patch #450267):
Andrew MacIntyre <andymac@bullseye.apana.org.au>
parents: 16943
diff changeset
16 #define ALTSEP '\\'
08d5cf596b01 OS/2 EMX port changes (Include part of patch #450267):
Andrew MacIntyre <andymac@bullseye.apana.org.au>
parents: 16943
diff changeset
17 #else
676
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
18 #define SEP '\\'
4281
4bdafa703a04 Rationalized PC compiler defines: require MS_WINDOWS or __BORLANDC__
Guido van Rossum <guido@python.org>
parents: 3581
diff changeset
19 #define ALTSEP '/'
676
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
20 #define MAXPATHLEN 256
22052
08d5cf596b01 OS/2 EMX port changes (Include part of patch #450267):
Andrew MacIntyre <andymac@bullseye.apana.org.au>
parents: 16943
diff changeset
21 #endif
711
3d9c2310afe8 Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents: 676
diff changeset
22 #define DELIM ';'
676
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
23 #endif
6716
d854a1c7e74d Patch for QNX, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents: 6626
diff changeset
24 #endif
676
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
25
16943
e9445c51ff29 RISCOS patch by dschwertberger
Guido van Rossum <guido@python.org>
parents: 14375
diff changeset
26 #ifdef RISCOS
e9445c51ff29 RISCOS patch by dschwertberger
Guido van Rossum <guido@python.org>
parents: 14375
diff changeset
27 #define SEP '.'
e9445c51ff29 RISCOS patch by dschwertberger
Guido van Rossum <guido@python.org>
parents: 14375
diff changeset
28 #define MAXPATHLEN 256
e9445c51ff29 RISCOS patch by dschwertberger
Guido van Rossum <guido@python.org>
parents: 14375
diff changeset
29 #define DELIM ','
e9445c51ff29 RISCOS patch by dschwertberger
Guido van Rossum <guido@python.org>
parents: 14375
diff changeset
30 #endif
e9445c51ff29 RISCOS patch by dschwertberger
Guido van Rossum <guido@python.org>
parents: 14375
diff changeset
31
e9445c51ff29 RISCOS patch by dschwertberger
Guido van Rossum <guido@python.org>
parents: 14375
diff changeset
32
711
3d9c2310afe8 Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents: 676
diff changeset
33 /* Filename separator */
676
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
34 #ifndef SEP
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
35 #define SEP '/'
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
36 #endif
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
37
711
3d9c2310afe8 Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents: 676
diff changeset
38 /* Max pathname length */
676
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
39 #ifndef MAXPATHLEN
37980
b535c191a44b Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses
Thomas Wouters <thomas@python.org>
parents: 30979
diff changeset
40 #if defined(PATH_MAX) && PATH_MAX > 1024
b535c191a44b Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses
Thomas Wouters <thomas@python.org>
parents: 30979
diff changeset
41 #define MAXPATHLEN PATH_MAX
b535c191a44b Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses
Thomas Wouters <thomas@python.org>
parents: 30979
diff changeset
42 #else
676
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
43 #define MAXPATHLEN 1024
e34ebcbbdca6 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
44 #endif
37980
b535c191a44b Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses
Thomas Wouters <thomas@python.org>
parents: 30979
diff changeset
45 #endif
711
3d9c2310afe8 Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents: 676
diff changeset
46
3d9c2310afe8 Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents: 676
diff changeset
47 /* 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
48 #ifndef DELIM
3d9c2310afe8 Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents: 676
diff changeset
49 #define DELIM ':'
3d9c2310afe8 Moved definition of search path DELIM here (from sysmodule.c).
Guido van Rossum <guido@python.org>
parents: 676
diff changeset
50 #endif
1329
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1257
diff changeset
51
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1257
diff changeset
52 #ifdef __cplusplus
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1257
diff changeset
53 }
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1257
diff changeset
54 #endif
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1257
diff changeset
55 #endif /* !Py_OSDEFS_H */