EMILE/libmacos/macos/types.h

49 lines
888 B
C
Raw Normal View History

2005-11-08 02:02:16 +00:00
/*
*
* (c) 2004,2005 Laurent Vivier <Laurent@lvivier.info>
2005-11-08 02:02:16 +00:00
*
*/
#ifndef __MACOS_TYPES_H__
#define __MACOS_TYPES_H__
#ifndef _SYS_TYPES_H
2005-11-08 02:02:16 +00:00
#ifdef ARCH_M68K
typedef unsigned char u_int8_t;
typedef signed char int8_t;
typedef unsigned short u_int16_t;
typedef signed short int16_t;
typedef unsigned int u_int32_t;
typedef signed int int32_t;
#endif /* ARCH_M68K */
#endif /* _SYS_TYPES_H */
2005-11-08 02:02:16 +00:00
typedef int16_t OSErr;
typedef unsigned long FourCharCode;
typedef FourCharCode OSType;
typedef unsigned char Str255[256];
typedef const unsigned char * ConstStr255Param;
typedef unsigned char Str27[28];
enum {
false = 0,
true = 1
};
struct Rect {
int16_t top;
int16_t left;
int16_t bottom;
int16_t right;
};
typedef struct Rect Rect;
typedef Rect* RectPtr;
struct Point {
int16_t v;
int16_t h;
};
typedef struct Point Point;
typedef Point* PointPtr;
#endif /* __MACOS_TYPES_H__ */