py-cvs-rel2_1 (Rev 1.2) merge
[python/dscho.git] / Mac / Include / macdefs.h
blob409c2535c5c9bf5f4faff31782bc743ced35a9c7
1 /* Useful #includes and #defines for programming a set of Unix
2 look-alike file system access functions on the Macintosh.
3 Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
4 */
6 #include <Types.h>
7 #include <Files.h>
8 #include <OSUtils.h>
10 #include <errno.h>
11 #include <string.h>
12 #ifdef __MWERKS__
13 #include "errno_unix.h"
14 #include <TextUtils.h>
15 #endif
17 /* We may be able to use a std routine in think, don't know */
18 extern unsigned char *Pstring(char *);
19 extern char *getbootvol(void);
20 extern char *getwd(char *);
21 #ifndef USE_GUSI
22 extern int sync(void);
23 #endif
25 /* Universal constants: */
26 #define MAXPATH 256
27 #ifndef __MSL__
28 #define TRUE 1
29 #define FALSE 0
30 #endif
31 #ifndef NULL
32 #define NULL 0
33 #endif
34 #define EOS '\0'
35 #define SEP ':'