#ifdef __APPLE_API_PRIVATE
#include <sys/param.h>
- #ifdef KERNEL
- #include <libkern/libkern.h>
- #include <sys/systm.h>
- #endif
+#include <libkern/OSTypes.h>
+#include <libkern/libkern.h>
+#include <sys/systm.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/proc.h>
#define nil NULL
#endif
-
-typedef u_int8_t UInt8;
-typedef int8_t SInt8;
-typedef u_int16_t UInt16;
-typedef int16_t SInt16;
-typedef u_int32_t UInt32;
-typedef int32_t SInt32;
-typedef u_int64_t UInt64;
-typedef int64_t SInt64;
-
typedef char * Ptr;
typedef long Size;
-typedef SInt16 OSErr;
-typedef SInt32 OSStatus;
-typedef UInt32 ItemCount;
-typedef void * LogicalAddress;
-typedef UInt32 ByteCount;
-typedef UInt8 * BytePtr;
-typedef UInt32 ByteOffset;
-typedef UInt32 OptionBits;
-typedef unsigned long FourCharCode;
-typedef FourCharCode OSType;
-
-typedef UInt16 UniChar;
+typedef int16_t OSErr;
+typedef u_int32_t ItemCount;
+typedef u_int32_t ByteCount;
+typedef u_int8_t * BytePtr;
+typedef u_int32_t ByteOffset;
+
+typedef u_int16_t UniChar;
typedef unsigned char Str255[256];
typedef unsigned char Str31[32];
typedef unsigned char * StringPtr;
typedef const unsigned char * ConstStr31Param;
typedef const unsigned char * ConstUTF8Param;
-typedef UInt8 Byte;
+typedef u_int8_t Byte;
-typedef UInt32 TextEncoding;
-typedef UniChar * UniCharArrayPtr;
+typedef u_int32_t TextEncoding;
+typedef UniChar * UniCharArrayPtr;
typedef const UniChar * ConstUniCharArrayPtr;
#endif /* !TYPE_BOOL */
-typedef unsigned char Boolean;
-
-
-
-EXTERN_API( void ) DebugStr(ConstStr255Param debuggerMsg);
+EXTERN_API( void ) DebugStr(const char * debuggerMsg);
/*********************************************************************************
#define BlockMoveData(src, dest, len) bcopy((src), (dest), (len))
EXTERN_API_C( void )
-ClearMemory(void * start, UInt32 length);
+ClearMemory(void * start, u_int32_t length);
#define ClearMemory(start, length) bzero((start), (size_t)(length));