]>
Commit | Line | Data |
---|---|---|
3608c106 UH |
1 | // Copyright (C) 2009 Ubixum, Inc. |
2 | // | |
3 | // This library is free software; you can redistribute it and/or | |
4 | // modify it under the terms of the GNU Lesser General Public | |
5 | // License as published by the Free Software Foundation; either | |
6 | // version 2.1 of the License, or (at your option) any later version. | |
7 | // | |
8 | // This library is distributed in the hope that it will be useful, | |
9 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
11 | // Lesser General Public License for more details. | |
12 | // | |
13 | // You should have received a copy of the GNU Lesser General Public | |
040a6eae | 14 | // License along with this library; if not, see <http://www.gnu.org/licenses/>. |
3608c106 UH |
15 | |
16 | /*! \file | |
17 | * define standard types of fixed widths. | |
18 | * */ | |
19 | ||
20 | #ifndef FXTYPES_H | |
21 | #define FXTYPES_H | |
22 | ||
23 | typedef unsigned int WORD; | |
24 | typedef unsigned char BYTE; | |
25 | typedef unsigned long DWORD; | |
26 | typedef unsigned char BOOL; | |
27 | typedef enum { | |
28 | FALSE=0, | |
29 | TRUE | |
30 | } BOOL_VALS; | |
31 | ||
32 | #ifndef NULL | |
33 | #define NULL (void*)0 | |
34 | #endif | |
35 | ||
36 | /*----------------------------------------------------------------------------- | |
37 | Bit Masks | |
38 | -----------------------------------------------------------------------------*/ | |
39 | ||
40 | #define bmBIT0 1 | |
41 | #define bmBIT1 2 | |
42 | #define bmBIT2 4 | |
43 | #define bmBIT3 8 | |
44 | #define bmBIT4 16 | |
45 | #define bmBIT5 32 | |
46 | #define bmBIT6 64 | |
47 | #define bmBIT7 128 | |
48 | ||
49 | #endif |