blob: df7d6f74b4eeae23d5ee3207496c699d4db211c4 [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*/
Jack Jansen47ec1412002-09-10 12:32:47 +00005#ifndef Py_MACDEFS_H
6#define Py_MACDEFS_H
Guido van Rossumd4d77281994-08-19 10:51:31 +00007
8#include <Types.h>
9#include <Files.h>
10#include <OSUtils.h>
11
Jack Jansen54956721997-04-08 15:24:58 +000012#include <errno.h>
13#include <string.h>
Jack Jansen0c637701994-12-14 14:10:51 +000014#ifdef __MWERKS__
15#include "errno_unix.h"
Jack Jansend1d242e1997-05-07 15:45:01 +000016#include <TextUtils.h>
Jack Jansen0c637701994-12-14 14:10:51 +000017#endif
Guido van Rossumd4d77281994-08-19 10:51:31 +000018
Jack Jansen47ec1412002-09-10 12:32:47 +000019#ifdef __cplusplus
20 extern "C" {
21#endif
22
Jack Jansend50e4e11995-01-18 13:58:04 +000023/* We may be able to use a std routine in think, don't know */
Jack Jansen9ae898b2000-07-11 21:16:03 +000024extern unsigned char *Pstring(char *);
25extern char *getbootvol(void);
26extern char *getwd(char *);
Jack Jansenc3f593e2000-07-14 22:14:46 +000027#ifndef USE_GUSI
Jack Jansen9ae898b2000-07-11 21:16:03 +000028extern int sync(void);
Jack Jansenc3f593e2000-07-14 22:14:46 +000029#endif
Guido van Rossumd4d77281994-08-19 10:51:31 +000030
31/* Universal constants: */
32#define MAXPATH 256
Jack Jansen54956721997-04-08 15:24:58 +000033#ifndef __MSL__
Guido van Rossumd4d77281994-08-19 10:51:31 +000034#define TRUE 1
35#define FALSE 0
Jack Jansen54956721997-04-08 15:24:58 +000036#endif
Guido van Rossumd4d77281994-08-19 10:51:31 +000037#ifndef NULL
38#define NULL 0
39#endif
40#define EOS '\0'
41#define SEP ':'
Jack Jansen47ec1412002-09-10 12:32:47 +000042
43#ifdef __cplusplus
44}
45#endif
46#endif