/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/defs.h

  • Committer: Gustav Hartvigsson
  • Date: 2015-06-04 17:36:18 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150604173618-qobcg09u33eyrpfd
* started work SBox (Untested).
* Fixed compilation errors.
* added more macros and made use of them.
* Added more documentation.
* Made s_object_get_class return a SObjectClass pointer instead.
* Reorderd S_TYPE_* enum.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
typedef enum {
71
71
  S_TYPE_NONE = 0,
72
72
  S_TYPE_INT,
 
73
  S_TYPE_LONG,
 
74
  S_TYPE_SHORT,
73
75
  S_TYPE_CHAR,
74
 
  S_TYPE_SHORT,
 
76
  S_TYPE_WCHAR,
 
77
  S_TYPE_UINT,
 
78
  S_TYPE_ULONG,
 
79
  S_TYPE_USHORT,
75
80
  S_TYPE_BOOLEAN,
76
 
  S_TYPE_LONG,
77
 
  S_TYPE_UINT,
 
81
  S_TYPE_STRING,
 
82
  S_TYPE_WSTRING,
78
83
  S_TYPE_UNUSED_0,
79
84
  S_TYPE_UNUSED_1,
80
85
  S_TYPE_UNUSED_2,
 
86
  S_TYPE_POINTER,
81
87
  S_TYPE_OBJECT,
82
88
  S_TYPE_INVALID
83
89
} SType;
84
90
 
85
91
/** @brief
86
92
 * The names of the SType's
 
93
 *
 
94
 * 
87
95
 */
88
96
static const char * STypeName[] __attribute__((unused)) = {
89
97
  "NONE",
90
98
  "INT",
 
99
  "LONG",
 
100
  "SHORT",
91
101
  "CHAR",
92
 
  "SHORT",
 
102
  "WCHAR",
 
103
  "UINT",
 
104
  "ULONG",
 
105
  "USHORT"
93
106
  "BOOLEAN",
94
 
  "LONG",
95
 
  "ULONG",
96
 
  0x0,
97
 
  0x0,
98
 
  0x0,
 
107
  "STRING",
 
108
  "WSTRING",
 
109
  "UNUSED_0/INVALID",
 
110
  "UNUSED_1/INVALID",
 
111
  "UNUSED_2/INVALID",
 
112
  "POINTER",
99
113
  "OBJECT",
100
114
  "INVALID",
101
115
  0x0,