mirror of
https://github.com/python/cpython.git
synced 2024-11-27 23:47:29 +01:00
739267b7c3
versions -- they now share config.c and config.h, and statting is always done through macstat.[ch] (THINK's <stat.h> defines funny constants). Also the configuration of stdwin is done differently: you have to define USE_STDWIN to the compiler prefix.
30 lines
615 B
C
30 lines
615 B
C
/* 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>
|
|
|
|
/* Macro to find out whether we can do HFS-only calls: */
|
|
#define FSFCBLen (* (short *) 0x3f6)
|
|
#define hfsrunning() (FSFCBLen > 0)
|
|
|
|
/* Universal constants: */
|
|
#define MAXPATH 256
|
|
#define TRUE 1
|
|
#define FALSE 0
|
|
#ifndef NULL
|
|
#define NULL 0
|
|
#endif
|
|
#define EOS '\0'
|
|
#define SEP ':'
|