File: xTypes.h

package info (click to toggle)
picp 0.4d-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 272 kB
  • ctags: 444
  • sloc: ansic: 4,614; makefile: 63
file content (32 lines) | stat: -rw-r--r-- 834 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* all the definitions, and types for random programs
 */
#ifndef __XTYPES__
#define __XTYPES__

#define		Abs(x)		((x)<0?-(x):(x))
#define		Max(a,b) 	((a)>(b)?(a):(b))
#define		Min(a,b) 	((a)<(b)?(a):(b))

// simulate the ever-so useful bool type so we can compile under straight C
//
#define false 0
#define true (!false)
typedef unsigned int bool;



typedef	int					LONG;				/* 32 bits signed */
typedef	unsigned int		ULONG;				/* 32 bits unsigned */
typedef	short int			WORD;				/* 16 bits signed */
typedef	unsigned short int	UWORD;				/* 16 bits unsigned */
typedef	char				BYTE;				/* 8 bits signed */
typedef	unsigned char		UBYTE;				/* 8 bits unsigned */

typedef int					INT32;
typedef unsigned int		UINT32;
typedef short				INT16;
typedef unsigned short		UINT16;
typedef char				INT8;
typedef unsigned char		UINT8;

#endif