/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
5.2.7 by Gustav Hartvigsson
* Switched licence to a more permisive one.
1
/*
2
*/
3
4
#ifndef __H_DEFS__
5
#define __H_DEFS__
6
23 by Gustav Hartvigsson
* Fixed some of the build warnings.
7
#include <limits.h>
8
5.2.7 by Gustav Hartvigsson
* Switched licence to a more permisive one.
9
/** @file
10
 * 
11
 */
12
13
#ifdef __cplusplus
14
#define BEGIN_DECLS extern "C" {
15
#else
16
#define BEGIN_DECLS
17
#endif /*__cplusplus*/
18
19
20
#ifdef __cplusplus
21
#define END_DECLS }
22
#else
23
#define END_DECLS
24
#endif /* __cplusplus */
25
23 by Gustav Hartvigsson
* Fixed some of the build warnings.
26
#ifndef FALSE
27
#define FALSE 0
28
#endif
29
30
#ifndef TRUE
31
#define TRUE !FALSE
32
#endif
33
34
typedef long hash_t;
35
36
typedef void* spointer;
37
38
typedef enum {
39
  S_TYPES_NONE = 0,
40
  S_TYPES_INT,
41
  S_TYPES_CHAR,
42
  S_TYPES_SHORT,
43
  S_TYPES_BOOLEAN,
44
  S_TYPES_LONG,
45
  S_TYPES_UINT,
46
  
47
  
48
  S_TYPES_OBJECT = INT_MAX - 1,
49
  S_TYPES_INVALID = INT_MAX
50
} S_TYPES;
5.2.7 by Gustav Hartvigsson
* Switched licence to a more permisive one.
51
52
#endif