Adonthell
0.4
Main Page
Related Pages
Classes
Files
File List
File Members
types.h
Go to the documentation of this file.
1
// $Id: types.h,v 1.16 2002/04/25 15:34:11 gnurou Exp $
2
/*
3
Copyright (C) 1999/2000/2001 Alexandre Courbot.
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY.
9
See the COPYING file for more details.
10
11
*/
12
13
14
/** @file types.h
15
* @author Alexandre Courbot <alexandrecourbot@linuxgames.com>
16
* @brief Declares some basic types.
17
*/
18
19
20
#ifndef TYPES_H__
21
#define TYPES_H__
22
23
#include "SDL.h"
24
25
// We should put ifdefs here to put the correct int values accordingly to the system type
26
27
28
/// 8 bits long unsigned integer
29
#define u_int8 unsigned char
30
31
/// 16 bits long unsigned integer
32
#define u_int16 unsigned short
33
34
/// 32 bits long unsigned integer
35
#define u_int32 unsigned int
36
37
/// 8 bits long signed integer
38
#define s_int8 signed char
39
40
/// 16 bits long signed integer
41
#define s_int16 signed short
42
43
/// 32 bits long signed integer
44
#define s_int32 signed int
45
46
47
/*
48
typedef Uint8 u_int8;
49
typedef Uint16 u_int16;
50
typedef Uint32 u_int32;
51
typedef Sint8 s_int8;
52
typedef Sint16 s_int16;
53
typedef Sint32 s_int32;
54
*/
55
#endif
src
types.h
Generated by
1.8.4