Adonthell  0.4
types.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 1999/2000/2001 Alexandre Courbot.
3  Part of the Adonthell Project <http://adonthell.nongnu.org>
4 
5  Adonthell is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  Adonthell is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with Adonthell. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 
20 /** @file types.h
21  * @author Alexandre Courbot <alexandrecourbot@linuxgames.com>
22  * @brief Declares some basic types.
23  */
24 
25 
26 #ifndef TYPES_H__
27 #define TYPES_H__
28 
29 #include <SDL.h>
30 
31 // We should put ifdefs here to put the correct int values accordingly to the system type
32 
33 
34 /// 8 bits long unsigned integer
35 #define u_int8 unsigned char
36 
37 /// 16 bits long unsigned integer
38 #define u_int16 unsigned short
39 
40 /// 32 bits long unsigned integer
41 #define u_int32 unsigned int
42 
43 /// 8 bits long signed integer
44 #define s_int8 signed char
45 
46 /// 16 bits long signed integer
47 #define s_int16 signed short
48 
49 /// 32 bits long signed integer
50 #define s_int32 signed int
51 
52 
53 /*
54 typedef Uint8 u_int8;
55 typedef Uint16 u_int16;
56 typedef Uint32 u_int32;
57 typedef Sint8 s_int8;
58 typedef Sint16 s_int16;
59 typedef Sint32 s_int32;
60 */
61 #endif