1 /* Code generated from eC source file: memory.ec */
3 #define __runtimePlatform 1
4 #elif defined(__APPLE__)
5 #define __runtimePlatform 3
7 #define __runtimePlatform 2
10 typedef long long int64;
11 typedef unsigned long long uint64;
15 #elif defined(__TINYC__)
17 #define __builtin_va_list va_list
18 #define __builtin_va_start va_start
19 #define __builtin_va_end va_end
21 #define strcasecmp stricmp
22 #define strncasecmp strnicmp
23 #define __declspec(x) __attribute__((x))
27 typedef long long int64;
28 typedef unsigned long long uint64;
30 typedef __int64 int64;
31 typedef unsigned __int64 uint64;
34 #define __ENDIAN_PAD(x) (8 - (x))
36 #define __ENDIAN_PAD(x) 0
39 # if defined(__GNUC__) || defined(__TINYC__)
40 # define stdcall __attribute__((__stdcall__))
42 # define stdcall __stdcall
48 #include <sys/types.h>
49 void __ecereNameSpace__ecere__sys__FillBytesBy2(void * area, unsigned short value, unsigned int count)
51 unsigned short * dest = area;
54 for(c = 0; c < count; c++)
58 void __ecereNameSpace__ecere__sys__FillBytesBy4(void * area, unsigned int value, unsigned int count)
60 unsigned int * dest = area;
63 for(c = 0; c < count; c++)
67 struct __ecereNameSpace__ecere__sys__OldList
74 } __attribute__ ((gcc_struct));
76 struct __ecereNameSpace__ecere__sys__BTNode;
78 struct __ecereNameSpace__ecere__com__DataValue
93 } __attribute__ ((gcc_struct)) __anon1;
94 } __attribute__ ((gcc_struct));
96 struct __ecereNameSpace__ecere__com__SerialBuffer
98 unsigned char * _buffer;
102 } __attribute__ ((gcc_struct));
104 extern void * __ecereNameSpace__ecere__com__eSystem_New(unsigned int size);
106 extern void * __ecereNameSpace__ecere__com__eSystem_New0(unsigned int size);
108 extern void * __ecereNameSpace__ecere__com__eSystem_Renew(void * memory, unsigned int size);
110 extern void * __ecereNameSpace__ecere__com__eSystem_Renew0(void * memory, unsigned int size);
112 extern void __ecereNameSpace__ecere__com__eSystem_Delete(void * memory);
114 extern void * memmove(void * , const void * , size_t size);
116 extern void * memcpy(void * , const void * , size_t size);
118 extern void * memset(void * area, int value, size_t count);
120 struct __ecereNameSpace__ecere__com__GlobalFunction;
122 void __ecereNameSpace__ecere__sys__MoveBytes(void * dest, const void * source, unsigned int count)
124 memmove(dest, source, count);
127 void __ecereNameSpace__ecere__sys__CopyBytes(void * dest, const void * source, unsigned int count)
129 memcpy(dest, source, count);
132 void __ecereNameSpace__ecere__sys__CopyBytesBy2(void * dest, const void * source, unsigned int count)
134 memcpy(dest, source, count << 1);
137 void __ecereNameSpace__ecere__sys__CopyBytesBy4(void * dest, const void * source, unsigned int count)
139 memcpy(dest, source, count << 2);
142 void __ecereNameSpace__ecere__sys__FillBytes(void * area, unsigned char value, unsigned int count)
144 memset(area, value, count);
147 struct __ecereNameSpace__ecere__com__Class;
149 struct __ecereNameSpace__ecere__com__Instance
152 struct __ecereNameSpace__ecere__com__Class * _class;
154 } __attribute__ ((gcc_struct));
156 extern long long __ecereNameSpace__ecere__com__eClass_GetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name);
158 extern void __ecereNameSpace__ecere__com__eClass_SetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, long long value);
160 extern void __ecereNameSpace__ecere__com__eInstance_SetMethod(struct __ecereNameSpace__ecere__com__Instance * instance, const char * name, void * function);
162 extern void __ecereNameSpace__ecere__com__eInstance_IncRef(struct __ecereNameSpace__ecere__com__Instance * instance);
164 struct __ecereNameSpace__ecere__com__Property;
166 struct __ecereNameSpace__ecere__com__Property
168 struct __ecereNameSpace__ecere__com__Property * prev;
169 struct __ecereNameSpace__ecere__com__Property * next;
171 unsigned int isProperty;
174 struct __ecereNameSpace__ecere__com__Class * _class;
175 const char * dataTypeString;
176 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
177 struct __ecereNameSpace__ecere__com__Instance * dataType;
178 void (* Set)(void * , int);
179 int (* Get)(void * );
180 unsigned int (* IsSet)(void * );
184 unsigned int conversion;
185 unsigned int watcherOffset;
186 const char * category;
187 unsigned int compiled;
188 unsigned int selfWatchable;
189 unsigned int isWatchable;
190 } __attribute__ ((gcc_struct));
192 extern void __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
194 extern void __ecereNameSpace__ecere__com__eInstance_StopWatching(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property, struct __ecereNameSpace__ecere__com__Instance * object);
196 extern void __ecereNameSpace__ecere__com__eInstance_Watch(void * instance, struct __ecereNameSpace__ecere__com__Property * _property, void * object, void (* callback)(void * , void * ));
198 extern void __ecereNameSpace__ecere__com__eInstance_FireWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
200 struct __ecereNameSpace__ecere__sys__BinaryTree;
202 struct __ecereNameSpace__ecere__sys__BinaryTree
204 struct __ecereNameSpace__ecere__sys__BTNode * root;
206 int (* CompareKey)(struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t a, uintptr_t b);
207 void (* FreeKey)(void * key);
208 } __attribute__ ((gcc_struct));
210 struct __ecereNameSpace__ecere__com__Method;
212 struct __ecereNameSpace__ecere__com__Method
215 struct __ecereNameSpace__ecere__com__Method * parent;
216 struct __ecereNameSpace__ecere__com__Method * left;
217 struct __ecereNameSpace__ecere__com__Method * right;
222 struct __ecereNameSpace__ecere__com__Class * _class;
224 const char * dataTypeString;
225 struct __ecereNameSpace__ecere__com__Instance * dataType;
227 } __attribute__ ((gcc_struct));
229 struct __ecereNameSpace__ecere__com__Module;
231 extern struct __ecereNameSpace__ecere__com__GlobalFunction * __ecereNameSpace__ecere__com__eSystem_RegisterFunction(const char * name, const char * type, void * func, struct __ecereNameSpace__ecere__com__Instance * module, int declMode);
233 struct __ecereNameSpace__ecere__com__NameSpace;
235 struct __ecereNameSpace__ecere__com__NameSpace
238 struct __ecereNameSpace__ecere__com__NameSpace * btParent;
239 struct __ecereNameSpace__ecere__com__NameSpace * left;
240 struct __ecereNameSpace__ecere__com__NameSpace * right;
242 struct __ecereNameSpace__ecere__com__NameSpace * parent;
243 struct __ecereNameSpace__ecere__sys__BinaryTree nameSpaces;
244 struct __ecereNameSpace__ecere__sys__BinaryTree classes;
245 struct __ecereNameSpace__ecere__sys__BinaryTree defines;
246 struct __ecereNameSpace__ecere__sys__BinaryTree functions;
247 } __attribute__ ((gcc_struct));
249 struct __ecereNameSpace__ecere__com__Application
254 unsigned int isGUIApp;
255 struct __ecereNameSpace__ecere__sys__OldList allModules;
256 char * parsedCommand;
257 struct __ecereNameSpace__ecere__com__NameSpace systemNameSpace;
258 } __attribute__ ((gcc_struct));
260 struct __ecereNameSpace__ecere__com__Module
262 struct __ecereNameSpace__ecere__com__Instance * application;
263 struct __ecereNameSpace__ecere__sys__OldList classes;
264 struct __ecereNameSpace__ecere__sys__OldList defines;
265 struct __ecereNameSpace__ecere__sys__OldList functions;
266 struct __ecereNameSpace__ecere__sys__OldList modules;
267 struct __ecereNameSpace__ecere__com__Instance * prev;
268 struct __ecereNameSpace__ecere__com__Instance * next;
274 struct __ecereNameSpace__ecere__com__NameSpace privateNameSpace;
275 struct __ecereNameSpace__ecere__com__NameSpace publicNameSpace;
276 } __attribute__ ((gcc_struct));
278 void __ecereRegisterModule_memory(struct __ecereNameSpace__ecere__com__Instance * module)
280 struct __ecereNameSpace__ecere__com__Class __attribute__((unused)) * class;
282 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::MoveBytes", "void ecere::sys::MoveBytes(void * dest, const void * source, uint count)", __ecereNameSpace__ecere__sys__MoveBytes, module, 1);
283 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::CopyBytes", "void ecere::sys::CopyBytes(void * dest, const void * source, uint count)", __ecereNameSpace__ecere__sys__CopyBytes, module, 1);
284 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::CopyBytesBy2", "void ecere::sys::CopyBytesBy2(void * dest, const void * source, uint count)", __ecereNameSpace__ecere__sys__CopyBytesBy2, module, 1);
285 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::CopyBytesBy4", "void ecere::sys::CopyBytesBy4(void * dest, const void * source, uint count)", __ecereNameSpace__ecere__sys__CopyBytesBy4, module, 1);
286 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytes", "void ecere::sys::FillBytes(void * area, byte value, uint count)", __ecereNameSpace__ecere__sys__FillBytes, module, 1);
287 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytesBy2", "void ecere::sys::FillBytesBy2(void * area, uint16 value, uint count)", __ecereNameSpace__ecere__sys__FillBytesBy2, module, 1);
288 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytesBy4", "void ecere::sys::FillBytesBy4(void * area, uint value, uint count)", __ecereNameSpace__ecere__sys__FillBytesBy4, module, 1);
291 void __ecereUnregisterModule_memory(struct __ecereNameSpace__ecere__com__Instance * module)
296 struct __ecereNameSpace__ecere__com__DataMember;
298 struct __ecereNameSpace__ecere__com__ClassTemplateArgument
304 const char * dataTypeString;
305 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
306 } __attribute__ ((gcc_struct)) __anon1;
307 struct __ecereNameSpace__ecere__com__DataValue expression;
310 const char * memberString;
313 struct __ecereNameSpace__ecere__com__DataMember * member;
314 struct __ecereNameSpace__ecere__com__Property * prop;
315 struct __ecereNameSpace__ecere__com__Method * method;
316 } __attribute__ ((gcc_struct)) __anon1;
317 } __attribute__ ((gcc_struct)) __anon2;
318 } __attribute__ ((gcc_struct)) __anon1;
319 } __attribute__ ((gcc_struct));
321 struct __ecereNameSpace__ecere__com__DataMember
323 struct __ecereNameSpace__ecere__com__DataMember * prev;
324 struct __ecereNameSpace__ecere__com__DataMember * next;
326 unsigned int isProperty;
329 struct __ecereNameSpace__ecere__com__Class * _class;
330 const char * dataTypeString;
331 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
332 struct __ecereNameSpace__ecere__com__Instance * dataType;
336 struct __ecereNameSpace__ecere__sys__OldList members;
337 struct __ecereNameSpace__ecere__sys__BinaryTree membersAlpha;
339 short structAlignment;
340 short pointerAlignment;
341 } __attribute__ ((gcc_struct));
343 struct __ecereNameSpace__ecere__com__Class
345 struct __ecereNameSpace__ecere__com__Class * prev;
346 struct __ecereNameSpace__ecere__com__Class * next;
352 unsigned int (* Constructor)(void * );
353 void (* Destructor)(void * );
356 struct __ecereNameSpace__ecere__com__Class * base;
357 struct __ecereNameSpace__ecere__sys__BinaryTree methods;
358 struct __ecereNameSpace__ecere__sys__BinaryTree members;
359 struct __ecereNameSpace__ecere__sys__BinaryTree prop;
360 struct __ecereNameSpace__ecere__sys__OldList membersAndProperties;
361 struct __ecereNameSpace__ecere__sys__BinaryTree classProperties;
362 struct __ecereNameSpace__ecere__sys__OldList derivatives;
366 struct __ecereNameSpace__ecere__com__Instance * module;
367 struct __ecereNameSpace__ecere__com__NameSpace * nameSpace;
368 const char * dataTypeString;
369 struct __ecereNameSpace__ecere__com__Instance * dataType;
371 int defaultAlignment;
372 void (* Initialize)();
374 struct __ecereNameSpace__ecere__sys__OldList selfWatchers;
375 const char * designerClass;
376 unsigned int noExpansion;
377 const char * defaultProperty;
378 unsigned int comRedefinition;
381 unsigned int internalDecl;
383 unsigned int computeSize;
384 short structAlignment;
385 short pointerAlignment;
386 int destructionWatchOffset;
388 struct __ecereNameSpace__ecere__sys__OldList delayedCPValues;
389 int inheritanceAccess;
390 const char * fullName;
392 struct __ecereNameSpace__ecere__sys__OldList conversions;
393 struct __ecereNameSpace__ecere__sys__OldList templateParams;
394 struct __ecereNameSpace__ecere__com__ClassTemplateArgument * templateArgs;
395 struct __ecereNameSpace__ecere__com__Class * templateClass;
396 struct __ecereNameSpace__ecere__sys__OldList templatized;
398 unsigned int isInstanceClass;
399 unsigned int byValueSystemClass;
400 } __attribute__ ((gcc_struct));