File: types.h

package info (click to toggle)
unicorn 0.8.7-1.1
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 3,984 kB
  • ctags: 3,428
  • sloc: ansic: 20,028; cpp: 1,265; sh: 1,033; makefile: 710; yacc: 316; sed: 16
file content (48 lines) | stat: -rw-r--r-- 946 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef __TYPES_H__
#define __TYPES_H__

#ifndef FAR
#define	FAR
#endif
#ifndef VOID
#define	VOID void
#endif
#ifndef CALLBACK	       
#define	CALLBACK	_stdcall
#endif

#ifndef FALSE
#define	FALSE	0
#endif
#ifndef TRUE
#define	TRUE	1
#endif
 
typedef unsigned char BYTE, *PBYTE, *PUCHAR, FAR *LPBYTE, BOOL;
typedef unsigned short WORD, *PWORD, FAR *LPWORD;
typedef unsigned long DWORD, *PDWORD, FAR * LPDWORD;
typedef unsigned int UINT;
typedef unsigned long ULONG;
typedef long int LONG;
typedef unsigned long long ULONGLONG;
typedef char *PSTR, FAR *LPSTR;
typedef const char *PCSTR, FAR *LPCSTR;
typedef void *PVOID, FAR *LPVOID;
typedef int BOOLEAN;
#ifndef __cplusplus
typedef int bool;
#endif


#ifndef MAX
#define MAX(a,b)	(((a)>(b))?(a):(b))
#endif
#ifndef MIN
#define MIN(a,b)	(((a)>(b))?(b):(a))
#endif

#ifndef offsetof
#define offsetof(typ,id) (unsigned)&(((typ*)0)->id)
#endif

#endif