ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/global.h
(Generate patch)

Comparing deliantra/server/include/global.h (file contents):
Revision 1.20 by pippijn, Mon Dec 11 19:46:46 2006 UTC vs.
Revision 1.21 by root, Mon Dec 11 21:32:17 2006 UTC

28#define EXTERN extern 28#define EXTERN extern
29#endif 29#endif
30 30
31#include "includes.h" 31#include "includes.h"
32 32
33 33typedef int8_t sint8;
34/* Type defines for specific signed/unsigned variables of a certain number 34typedef uint8_t uint8;
35 * of bits. Not really used anyplace, but if a certain number of bits 35typedef int16_t sint16;
36 * is required, these type defines should then be used. This will make 36typedef uint16_t uint16;
37 * porting to systems that have different sized data types easier. 37typedef int32_t sint32;
38 *
39 * Note: The type defines should just mean that the data type has at
40 * least that many bits. if a uint16 is actually 32 bits, no big deal,
41 * it is just a waste of space.
42 *
43 * Note2: When using something that is normally stored in a character
44 * (ie strings), don't use the uint8/sint8 typdefs, use 'char' instead.
45 * The signedness for char is probably not universal, and using char
46 * will probably be more portable than sint8/unit8
47 */
48
49
50typedef unsigned int uint32; 38typedef uint32_t uint32;
51 39typedef int64_t sint64;
52#ifndef UINT32_MAX 40typedef uint64_t uint64;
53#define UINT32_MAX 4294967295U
54#endif
55
56typedef signed int sint32;
57#define SINT32_MAX 2147483647
58
59typedef unsigned short uint16;
60#ifndef UINT16_MAX
61#define UINT16_MAX 65535
62#endif
63
64typedef signed short sint16;
65#define SINT16_MAX 32767
66
67typedef unsigned char uint8;
68#ifndef UINT8_MAX
69#define UINT8_MAX 255
70#endif
71
72typedef signed char sint8;
73#define SINT8_MAX 127
74 41
75typedef unsigned short Fontindex; 42typedef unsigned short Fontindex;
76
77#if SIZEOF_LONG == 8
78typedef unsigned long uint64;
79typedef signed long sint64;
80#elif SIZEOF_LONG_LONG == 8
81typedef unsigned long long uint64;
82typedef signed long long sint64;
83#else
84#error do not know how to get a 64 bit value on this system.
85#error correct and send mail to crossfire-devel on how to do this
86#endif
87 43
88#include <vector> 44#include <vector>
89 45
90#define ACC_CLASS(name) 46#define ACC_CLASS(name)
91#define ACC(meta,member) member 47#define ACC(meta,member) member

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines