Added basic implementation of destroying a GPT table: just delete the
[AROS.git] / tools / adflib / adf_defs.h
blob415675ec89c776d3151a702af3aefc8292a25a61
1 /*
2 * ADF Library. (C) 1997-1999 Laurent Clevy
4 * adf_defs.h
6 *
7 */
10 #ifndef _ADF_DEFS_H
11 #define _ADF_DEFS_H 1
13 #define ADFLIB_VERSION "0.7.9b"
14 #define ADFLIB_DATE "10 september, 2000"
16 #define SECTNUM long
17 #define RETCODE long
19 #ifndef TRUE
20 #define TRUE 1
21 #endif
22 #ifndef FALSE
23 #define FALSE 0
24 #endif
26 #define ULONG unsigned long
27 #define USHORT unsigned short
28 #define UCHAR unsigned char
29 #define BOOL int
32 /* defines max and min */
34 #ifndef max
35 #define max(a,b) (a)>(b) ? (a) : (b)
36 #endif
37 #ifndef min
38 #define min(a,b) (a)<(b) ? (a) : (b)
39 #endif
42 /* (*byte) to (*short) and (*byte) to (*long) conversion */
44 #define Short(p) ((p)[0]<<8 | (p)[1])
45 #define Long(p) (Short(p)<<16 | Short(p+2))
48 /* swap short and swap long macros for little endian machines */
50 #define swapShort(p) ((p)[0]<<8 | (p)[1])
51 #define swapLong(p) (swapShort(p)<<16 | swapShort(p+2))
55 #endif /* _ADF_DEFS_H */
56 /*##########################################################################*/