#ifndef __TYPES_H__
#define __TYPES_H__

#define NULL  (0)
#define TRUE  (1)
#define FALSE (0)

typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;

typedef char  int8;
typedef short int16;
typedef long  int32;
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned long uint32;

typedef unsigned int size_t;
typedef unsigned int time_t;

typedef void (*func_t)(void);
typedef void (*callback_t)(void*);

#define BIT(n) (1 << n)

#ifdef __cplusplus
class Object {};
#endif

#endif /* __TYPES_H__ */
