Added 'list_only' option (and modified 'run()' to respect it).
[python/dscho.git] / Mac / Include / macdefs.h
blobb89000460af279a7c520c73f03bdf51c73edb14d
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 #ifdef THINK_C
11 #include <pascal.h>
12 #endif
14 #include <errno.h>
15 #include <string.h>
16 #ifdef __MWERKS__
17 #include "errno_unix.h"
18 #include <TextUtils.h>
19 #endif
21 /* We may be able to use a std routine in think, don't know */
22 unsigned char *Pstring(char *);
24 /* Macro to find out whether we can do HFS-only calls: */
25 #define FSFCBLen (* (short *) 0x3f6)
26 #define hfsrunning() (FSFCBLen > 0)
28 /* Universal constants: */
29 #define MAXPATH 256
30 #ifndef __MSL__
31 #define TRUE 1
32 #define FALSE 0
33 #endif
34 #ifndef NULL
35 #define NULL 0
36 #endif
37 #define EOS '\0'
38 #define SEP ':'