#include <sys/types.h>
#include "msdefs.h"
Go to the source code of this file.
Defines | |
#define | min(x, y) (((x)<(y))?(x):(y)) |
#define | max(x, y) (((x)>(y))?(x):(y)) |
#define | ZEROMEMORY(address, numBytes) memset((void*)(address), (int)0, (size_t)(numBytes)) |
#define | FREE_NULL(ptr) {free(ptr);ptr=NULL;} |
#define | IS_EVEN(n) ((int)((n)/2)*2 == (n)) |
#define | IS_ODD(n) (!((int)((n)/2)*2 == (n))) |
#define | NULL_TERMINATE(s, n) ((s[(n)-1] = '\0')) |
#define | RND(min, max) (rand()%(max+1-min)+min) |
#define | BREAK |
#define | BREAK_ALWAYS asm("int $3") |
#define | UNUSED(x) |
#define | UNUSED_ALWAYS(x) ((void)x) |
Typedefs | |
typedef unsigned char | byte |
typedef unsigned short | word |
typedef short | sword |
typedef long | dsword |
typedef unsigned long | dword |
typedef unsigned long | ulong |
typedef unsigned int | uint |
typedef const char | CONSTCHAR |
typedef const char * | PCONSTCHAR |
typedef unsigned char | unsigned8 |
typedef signed char | signed8 |
typedef unsigned short | unsigned16 |
typedef signed short | signed16 |
typedef unsigned long | unsigned32 |
typedef signed long | signed32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|