Line | |
---|
1 | /************************************************************************ |
---|
2 | Standard type definitions |
---|
3 | Written by Chris Hodges <hodges@in.tum.de>. |
---|
4 | Last change: 03.06.03 |
---|
5 | ************************************************************************/ |
---|
6 | |
---|
7 | #ifndef TYPES_H |
---|
8 | #define TYPES_H |
---|
9 | #ifndef VOID |
---|
10 | #define VOID void |
---|
11 | #endif |
---|
12 | |
---|
13 | typedef void *APTR; // 32-bit untyped pointer |
---|
14 | typedef long long LLONG; // signed 64-bit quantity |
---|
15 | typedef unsigned long long ULLONG; // unsigned 64-bit quantity |
---|
16 | typedef long LONG; // signed 32-bit quantity |
---|
17 | typedef unsigned long ULONG; // unsigned 32-bit quantity |
---|
18 | typedef unsigned long LONGBITS; // 32 bits manipulated individually |
---|
19 | typedef short WORD; // signed 16-bit quantity |
---|
20 | typedef unsigned short UWORD; // unsigned 16-bit quantity |
---|
21 | typedef unsigned short WORDBITS; // 16 bits manipulated individually |
---|
22 | typedef signed char BYTE; // signed 8-bit quantity |
---|
23 | typedef unsigned char UBYTE; // unsigned 8-bit quantity |
---|
24 | typedef unsigned char BYTEBITS; // 8 bits manipulated individually |
---|
25 | typedef char *STRPTR; // string pointer (NULL terminated) |
---|
26 | typedef short BOOL; |
---|
27 | |
---|
28 | #ifndef TRUE |
---|
29 | #define TRUE 1 |
---|
30 | #endif |
---|
31 | #ifndef FALSE |
---|
32 | #define FALSE 0 |
---|
33 | #endif |
---|
34 | #ifndef NULL |
---|
35 | #define NULL 0L |
---|
36 | #endif |
---|
37 | #endif // TYPES_H |
---|
38 | |
---|
39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.