blob: 9cc3ae19403a9ca6bbc361e946178db54583fe57 [file] [log] [blame]
Guido van Rossumd4d77281994-08-19 10:51:31 +00001/* 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*/
5
6#include <Types.h>
7#include <Files.h>
8#include <OSUtils.h>
9
Jack Jansen54956721997-04-08 15:24:58 +000010#include <errno.h>
11#include <string.h>
Jack Jansen0c637701994-12-14 14:10:51 +000012#ifdef __MWERKS__
13#include "errno_unix.h"
Jack Jansend1d242e1997-05-07 15:45:01 +000014#include <TextUtils.h>
Jack Jansen0c637701994-12-14 14:10:51 +000015#endif
Guido van Rossumd4d77281994-08-19 10:51:31 +000016
Jack Jansend50e4e11995-01-18 13:58:04 +000017/* We may be able to use a std routine in think, don't know */
18unsigned char *Pstring(char *);
19
Guido van Rossumd4d77281994-08-19 10:51:31 +000020
21/* Universal constants: */
22#define MAXPATH 256
Jack Jansen54956721997-04-08 15:24:58 +000023#ifndef __MSL__
Guido van Rossumd4d77281994-08-19 10:51:31 +000024#define TRUE 1
25#define FALSE 0
Jack Jansen54956721997-04-08 15:24:58 +000026#endif
Guido van Rossumd4d77281994-08-19 10:51:31 +000027#ifndef NULL
28#define NULL 0
29#endif
30#define EOS '\0'
31#define SEP ':'