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 ecere_stdcall __attribute__((__stdcall__))
41 # define ecere_gcc_struct __attribute__((gcc_struct))
43 # define ecere_stdcall __stdcall
44 # define ecere_gcc_struct
47 # define ecere_stdcall
48 # define ecere_gcc_struct
51 #include <sys/types.h>
52 void __ecereNameSpace__ecere__sys__FillBytesBy2(void * area, unsigned short value, unsigned int count)
54 unsigned short * dest = area;
57 for(c = 0; c < count; c++)
61 void __ecereNameSpace__ecere__sys__FillBytesBy4(void * area, unsigned int value, unsigned int count)
63 unsigned int * dest = area;
66 for(c = 0; c < count; c++)
70 struct __ecereNameSpace__ecere__sys__OldList
79 struct __ecereNameSpace__ecere__sys__BTNode;
81 struct __ecereNameSpace__ecere__com__DataValue
96 } ecere_gcc_struct __anon1;
99 struct __ecereNameSpace__ecere__com__SerialBuffer
101 unsigned char * _buffer;
107 extern void * __ecereNameSpace__ecere__com__eSystem_New(unsigned int size);
109 extern void * __ecereNameSpace__ecere__com__eSystem_New0(unsigned int size);
111 extern void * __ecereNameSpace__ecere__com__eSystem_Renew(void * memory, unsigned int size);
113 extern void * __ecereNameSpace__ecere__com__eSystem_Renew0(void * memory, unsigned int size);
115 extern void __ecereNameSpace__ecere__com__eSystem_Delete(void * memory);
117 extern void * memmove(void * , const void * , size_t size);
119 extern void * memcpy(void * , const void * , size_t size);
121 extern void * memset(void * area, int value, size_t count);
123 struct __ecereNameSpace__ecere__com__GlobalFunction;
125 void __ecereNameSpace__ecere__sys__MoveBytes(void * dest, const void * source, unsigned int count)
127 memmove(dest, source, count);
130 void __ecereNameSpace__ecere__sys__CopyBytes(void * dest, const void * source, unsigned int count)
132 memcpy(dest, source, count);
135 void __ecereNameSpace__ecere__sys__CopyBytesBy2(void * dest, const void * source, unsigned int count)
137 memcpy(dest, source, count << 1);
140 void __ecereNameSpace__ecere__sys__CopyBytesBy4(void * dest, const void * source, unsigned int count)
142 memcpy(dest, source, count << 2);
145 void __ecereNameSpace__ecere__sys__FillBytes(void * area, unsigned char value, unsigned int count)
147 memset(area, value, count);
150 struct __ecereNameSpace__ecere__com__Class;
152 struct __ecereNameSpace__ecere__com__Instance
155 struct __ecereNameSpace__ecere__com__Class * _class;
159 extern long long __ecereNameSpace__ecere__com__eClass_GetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name);
161 extern void __ecereNameSpace__ecere__com__eClass_SetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, long long value);
163 extern void __ecereNameSpace__ecere__com__eInstance_SetMethod(struct __ecereNameSpace__ecere__com__Instance * instance, const char * name, void * function);
165 extern void __ecereNameSpace__ecere__com__eInstance_IncRef(struct __ecereNameSpace__ecere__com__Instance * instance);
167 struct __ecereNameSpace__ecere__com__Property;
169 struct __ecereNameSpace__ecere__com__Property
171 struct __ecereNameSpace__ecere__com__Property * prev;
172 struct __ecereNameSpace__ecere__com__Property * next;
174 unsigned int isProperty;
177 struct __ecereNameSpace__ecere__com__Class * _class;
178 const char * dataTypeString;
179 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
180 struct __ecereNameSpace__ecere__com__Instance * dataType;
181 void (* Set)(void * , int);
182 int (* Get)(void * );
183 unsigned int (* IsSet)(void * );
187 unsigned int conversion;
188 unsigned int watcherOffset;
189 const char * category;
190 unsigned int compiled;
191 unsigned int selfWatchable;
192 unsigned int isWatchable;
195 extern void __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
197 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);
199 extern void __ecereNameSpace__ecere__com__eInstance_Watch(void * instance, struct __ecereNameSpace__ecere__com__Property * _property, void * object, void (* callback)(void * , void * ));
201 extern void __ecereNameSpace__ecere__com__eInstance_FireWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
203 struct __ecereNameSpace__ecere__sys__BinaryTree;
205 struct __ecereNameSpace__ecere__sys__BinaryTree
207 struct __ecereNameSpace__ecere__sys__BTNode * root;
209 int (* CompareKey)(struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t a, uintptr_t b);
210 void (* FreeKey)(void * key);
213 struct __ecereNameSpace__ecere__com__Method;
215 struct __ecereNameSpace__ecere__com__Method
218 struct __ecereNameSpace__ecere__com__Method * parent;
219 struct __ecereNameSpace__ecere__com__Method * left;
220 struct __ecereNameSpace__ecere__com__Method * right;
225 struct __ecereNameSpace__ecere__com__Class * _class;
227 const char * dataTypeString;
228 struct __ecereNameSpace__ecere__com__Instance * dataType;
232 struct __ecereNameSpace__ecere__com__Module;
234 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);
236 struct __ecereNameSpace__ecere__com__NameSpace;
238 struct __ecereNameSpace__ecere__com__NameSpace
241 struct __ecereNameSpace__ecere__com__NameSpace * btParent;
242 struct __ecereNameSpace__ecere__com__NameSpace * left;
243 struct __ecereNameSpace__ecere__com__NameSpace * right;
245 struct __ecereNameSpace__ecere__com__NameSpace * parent;
246 struct __ecereNameSpace__ecere__sys__BinaryTree nameSpaces;
247 struct __ecereNameSpace__ecere__sys__BinaryTree classes;
248 struct __ecereNameSpace__ecere__sys__BinaryTree defines;
249 struct __ecereNameSpace__ecere__sys__BinaryTree functions;
252 struct __ecereNameSpace__ecere__com__Application
257 unsigned int isGUIApp;
258 struct __ecereNameSpace__ecere__sys__OldList allModules;
259 char * parsedCommand;
260 struct __ecereNameSpace__ecere__com__NameSpace systemNameSpace;
263 struct __ecereNameSpace__ecere__com__Module
265 struct __ecereNameSpace__ecere__com__Instance * application;
266 struct __ecereNameSpace__ecere__sys__OldList classes;
267 struct __ecereNameSpace__ecere__sys__OldList defines;
268 struct __ecereNameSpace__ecere__sys__OldList functions;
269 struct __ecereNameSpace__ecere__sys__OldList modules;
270 struct __ecereNameSpace__ecere__com__Instance * prev;
271 struct __ecereNameSpace__ecere__com__Instance * next;
277 struct __ecereNameSpace__ecere__com__NameSpace privateNameSpace;
278 struct __ecereNameSpace__ecere__com__NameSpace publicNameSpace;
281 void __ecereRegisterModule_memory(struct __ecereNameSpace__ecere__com__Instance * module)
283 struct __ecereNameSpace__ecere__com__Class __attribute__((unused)) * class;
285 __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);
286 __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);
287 __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);
288 __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);
289 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytes", "void ecere::sys::FillBytes(void * area, byte value, uint count)", __ecereNameSpace__ecere__sys__FillBytes, module, 1);
290 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytesBy2", "void ecere::sys::FillBytesBy2(void * area, uint16 value, uint count)", __ecereNameSpace__ecere__sys__FillBytesBy2, module, 1);
291 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytesBy4", "void ecere::sys::FillBytesBy4(void * area, uint value, uint count)", __ecereNameSpace__ecere__sys__FillBytesBy4, module, 1);
294 void __ecereUnregisterModule_memory(struct __ecereNameSpace__ecere__com__Instance * module)
299 struct __ecereNameSpace__ecere__com__DataMember;
301 struct __ecereNameSpace__ecere__com__ClassTemplateArgument
307 const char * dataTypeString;
308 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
309 } ecere_gcc_struct __anon1;
310 struct __ecereNameSpace__ecere__com__DataValue expression;
313 const char * memberString;
316 struct __ecereNameSpace__ecere__com__DataMember * member;
317 struct __ecereNameSpace__ecere__com__Property * prop;
318 struct __ecereNameSpace__ecere__com__Method * method;
319 } ecere_gcc_struct __anon1;
320 } ecere_gcc_struct __anon2;
321 } ecere_gcc_struct __anon1;
324 struct __ecereNameSpace__ecere__com__DataMember
326 struct __ecereNameSpace__ecere__com__DataMember * prev;
327 struct __ecereNameSpace__ecere__com__DataMember * next;
329 unsigned int isProperty;
332 struct __ecereNameSpace__ecere__com__Class * _class;
333 const char * dataTypeString;
334 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
335 struct __ecereNameSpace__ecere__com__Instance * dataType;
339 struct __ecereNameSpace__ecere__sys__OldList members;
340 struct __ecereNameSpace__ecere__sys__BinaryTree membersAlpha;
342 short structAlignment;
343 short pointerAlignment;
346 struct __ecereNameSpace__ecere__com__Class
348 struct __ecereNameSpace__ecere__com__Class * prev;
349 struct __ecereNameSpace__ecere__com__Class * next;
355 unsigned int (* Constructor)(void * );
356 void (* Destructor)(void * );
359 struct __ecereNameSpace__ecere__com__Class * base;
360 struct __ecereNameSpace__ecere__sys__BinaryTree methods;
361 struct __ecereNameSpace__ecere__sys__BinaryTree members;
362 struct __ecereNameSpace__ecere__sys__BinaryTree prop;
363 struct __ecereNameSpace__ecere__sys__OldList membersAndProperties;
364 struct __ecereNameSpace__ecere__sys__BinaryTree classProperties;
365 struct __ecereNameSpace__ecere__sys__OldList derivatives;
369 struct __ecereNameSpace__ecere__com__Instance * module;
370 struct __ecereNameSpace__ecere__com__NameSpace * nameSpace;
371 const char * dataTypeString;
372 struct __ecereNameSpace__ecere__com__Instance * dataType;
374 int defaultAlignment;
375 void (* Initialize)();
377 struct __ecereNameSpace__ecere__sys__OldList selfWatchers;
378 const char * designerClass;
379 unsigned int noExpansion;
380 const char * defaultProperty;
381 unsigned int comRedefinition;
384 unsigned int internalDecl;
386 unsigned int computeSize;
387 short structAlignment;
388 short pointerAlignment;
389 int destructionWatchOffset;
391 struct __ecereNameSpace__ecere__sys__OldList delayedCPValues;
392 int inheritanceAccess;
393 const char * fullName;
395 struct __ecereNameSpace__ecere__sys__OldList conversions;
396 struct __ecereNameSpace__ecere__sys__OldList templateParams;
397 struct __ecereNameSpace__ecere__com__ClassTemplateArgument * templateArgs;
398 struct __ecereNameSpace__ecere__com__Class * templateClass;
399 struct __ecereNameSpace__ecere__sys__OldList templatized;
401 unsigned int isInstanceClass;
402 unsigned int byValueSystemClass;