Mercurial > cpython-lru_cache-weakref
view Mac/Include/macdefs.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 | 5e2c17b374fb |
| children | 4e9eb866aac6 |
line wrap: on
line source
/* Useful #includes and #defines for programming a set of Unix look-alike file system access functions on the Macintosh. Public domain by Guido van Rossum, CWI, Amsterdam (July 1987). */ #include <Types.h> #include <Files.h> #include <OSUtils.h> #ifdef THINK_C #include <pascal.h> #endif #include <errno.h> #include <string.h> #ifdef __MWERKS__ #include "errno_unix.h" #include <TextUtils.h> #endif /* We may be able to use a std routine in think, don't know */ unsigned char *Pstring(char *); /* Macro to find out whether we can do HFS-only calls: */ #define FSFCBLen (* (short *) 0x3f6) #define hfsrunning() (FSFCBLen > 0) /* Universal constants: */ #define MAXPATH 256 #ifndef __MSL__ #define TRUE 1 #define FALSE 0 #endif #ifndef NULL #define NULL 0 #endif #define EOS '\0' #define SEP ':'
