Staging
v0.5.1
Revision b6b43e00f8ba7ffd142795d2ed2e340e4a897a95 authored by cvs2svn on 08 August 1996, 19:05:09 UTC, committed by cvs2svn on 08 August 1996, 19:05:09 UTC
1 parent b4ae6a3
Raw File
macdefs.h
/* 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

#ifdef __MWERKS__
#include "errno_unix.h"
#include <Strings.h>
#define c2pstr C2PStr
#define p2cstr P2CStr
#endif
#include <errno.h>
#include <string.h>

/* 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
#define TRUE 1
#define FALSE 0
#ifndef NULL
#define NULL 0
#endif
#define EOS '\0'
#define SEP ':'
back to top