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 #include <sys/types.h>
40 void __ecereNameSpace__ecere__sys__FillBytesBy2(void * area, unsigned short value, unsigned int count)
42 unsigned short * dest = area;
45 for(c = 0; c < count; c++)
49 void __ecereNameSpace__ecere__sys__FillBytesBy4(void * area, unsigned int value, unsigned int count)
51 unsigned int * dest = area;
54 for(c = 0; c < count; c++)
58 struct __ecereNameSpace__ecere__sys__OldList
65 } __attribute__ ((gcc_struct));
67 struct __ecereNameSpace__ecere__sys__BTNode;
69 struct __ecereNameSpace__ecere__com__DataValue
84 } __attribute__ ((gcc_struct)) __anon1;
85 } __attribute__ ((gcc_struct));
87 struct __ecereNameSpace__ecere__com__SerialBuffer
89 unsigned char * _buffer;
93 } __attribute__ ((gcc_struct));
95 extern void * __ecereNameSpace__ecere__com__eSystem_New(unsigned int size);
97 extern void * __ecereNameSpace__ecere__com__eSystem_New0(unsigned int size);
99 extern void * __ecereNameSpace__ecere__com__eSystem_Renew(void * memory, unsigned int size);
101 extern void * __ecereNameSpace__ecere__com__eSystem_Renew0(void * memory, unsigned int size);
103 extern void __ecereNameSpace__ecere__com__eSystem_Delete(void * memory);
105 extern void * memmove(void * , const void * , size_t size);
107 extern void * memcpy(void * , const void * , size_t size);
109 extern void * memset(void * area, int value, size_t count);
111 struct __ecereNameSpace__ecere__com__GlobalFunction;
113 void __ecereNameSpace__ecere__sys__MoveBytes(void * dest, const void * source, unsigned int count)
115 memmove(dest, source, count);
118 void __ecereNameSpace__ecere__sys__CopyBytes(void * dest, const void * source, unsigned int count)
120 memcpy(dest, source, count);
123 void __ecereNameSpace__ecere__sys__CopyBytesBy2(void * dest, const void * source, unsigned int count)
125 memcpy(dest, source, count << 1);
128 void __ecereNameSpace__ecere__sys__CopyBytesBy4(void * dest, const void * source, unsigned int count)
130 memcpy(dest, source, count << 2);
133 void __ecereNameSpace__ecere__sys__FillBytes(void * area, unsigned char value, unsigned int count)
135 memset(area, value, count);
138 struct __ecereNameSpace__ecere__com__Class;
140 struct __ecereNameSpace__ecere__com__Instance
143 struct __ecereNameSpace__ecere__com__Class * _class;
145 } __attribute__ ((gcc_struct));
147 extern long long __ecereNameSpace__ecere__com__eClass_GetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name);
149 extern void __ecereNameSpace__ecere__com__eClass_SetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, long long value);
151 extern void __ecereNameSpace__ecere__com__eInstance_SetMethod(struct __ecereNameSpace__ecere__com__Instance * instance, const char * name, void * function);
153 extern void __ecereNameSpace__ecere__com__eInstance_IncRef(struct __ecereNameSpace__ecere__com__Instance * instance);
155 struct __ecereNameSpace__ecere__com__Property;
157 struct __ecereNameSpace__ecere__com__Property
159 struct __ecereNameSpace__ecere__com__Property * prev;
160 struct __ecereNameSpace__ecere__com__Property * next;
162 unsigned int isProperty;
165 struct __ecereNameSpace__ecere__com__Class * _class;
166 const char * dataTypeString;
167 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
168 struct __ecereNameSpace__ecere__com__Instance * dataType;
169 void (* Set)(void * , int);
170 int (* Get)(void * );
171 unsigned int (* IsSet)(void * );
175 unsigned int conversion;
176 unsigned int watcherOffset;
177 const char * category;
178 unsigned int compiled;
179 unsigned int selfWatchable;
180 unsigned int isWatchable;
181 } __attribute__ ((gcc_struct));
183 extern void __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
185 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);
187 extern void __ecereNameSpace__ecere__com__eInstance_Watch(void * instance, struct __ecereNameSpace__ecere__com__Property * _property, void * object, void (* callback)(void * , void * ));
189 extern void __ecereNameSpace__ecere__com__eInstance_FireWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
191 struct __ecereNameSpace__ecere__sys__BinaryTree;
193 struct __ecereNameSpace__ecere__sys__BinaryTree
195 struct __ecereNameSpace__ecere__sys__BTNode * root;
197 int (* CompareKey)(struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t a, uintptr_t b);
198 void (* FreeKey)(void * key);
199 } __attribute__ ((gcc_struct));
201 struct __ecereNameSpace__ecere__com__Method;
203 struct __ecereNameSpace__ecere__com__Method
206 struct __ecereNameSpace__ecere__com__Method * parent;
207 struct __ecereNameSpace__ecere__com__Method * left;
208 struct __ecereNameSpace__ecere__com__Method * right;
213 struct __ecereNameSpace__ecere__com__Class * _class;
215 const char * dataTypeString;
216 struct __ecereNameSpace__ecere__com__Instance * dataType;
218 } __attribute__ ((gcc_struct));
220 struct __ecereNameSpace__ecere__com__Module;
222 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);
224 struct __ecereNameSpace__ecere__com__NameSpace;
226 struct __ecereNameSpace__ecere__com__NameSpace
229 struct __ecereNameSpace__ecere__com__NameSpace * btParent;
230 struct __ecereNameSpace__ecere__com__NameSpace * left;
231 struct __ecereNameSpace__ecere__com__NameSpace * right;
233 struct __ecereNameSpace__ecere__com__NameSpace * parent;
234 struct __ecereNameSpace__ecere__sys__BinaryTree nameSpaces;
235 struct __ecereNameSpace__ecere__sys__BinaryTree classes;
236 struct __ecereNameSpace__ecere__sys__BinaryTree defines;
237 struct __ecereNameSpace__ecere__sys__BinaryTree functions;
238 } __attribute__ ((gcc_struct));
240 struct __ecereNameSpace__ecere__com__Application
245 unsigned int isGUIApp;
246 struct __ecereNameSpace__ecere__sys__OldList allModules;
247 char * parsedCommand;
248 struct __ecereNameSpace__ecere__com__NameSpace systemNameSpace;
249 } __attribute__ ((gcc_struct));
251 struct __ecereNameSpace__ecere__com__Module
253 struct __ecereNameSpace__ecere__com__Instance * application;
254 struct __ecereNameSpace__ecere__sys__OldList classes;
255 struct __ecereNameSpace__ecere__sys__OldList defines;
256 struct __ecereNameSpace__ecere__sys__OldList functions;
257 struct __ecereNameSpace__ecere__sys__OldList modules;
258 struct __ecereNameSpace__ecere__com__Instance * prev;
259 struct __ecereNameSpace__ecere__com__Instance * next;
265 struct __ecereNameSpace__ecere__com__NameSpace privateNameSpace;
266 struct __ecereNameSpace__ecere__com__NameSpace publicNameSpace;
267 } __attribute__ ((gcc_struct));
269 void __ecereRegisterModule_memory(struct __ecereNameSpace__ecere__com__Instance * module)
271 struct __ecereNameSpace__ecere__com__Class __attribute__((unused)) * class;
273 __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);
274 __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);
275 __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);
276 __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);
277 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytes", "void ecere::sys::FillBytes(void * area, byte value, uint count)", __ecereNameSpace__ecere__sys__FillBytes, module, 1);
278 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytesBy2", "void ecere::sys::FillBytesBy2(void * area, uint16 value, uint count)", __ecereNameSpace__ecere__sys__FillBytesBy2, module, 1);
279 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytesBy4", "void ecere::sys::FillBytesBy4(void * area, uint value, uint count)", __ecereNameSpace__ecere__sys__FillBytesBy4, module, 1);
282 void __ecereUnregisterModule_memory(struct __ecereNameSpace__ecere__com__Instance * module)
287 struct __ecereNameSpace__ecere__com__DataMember;
289 struct __ecereNameSpace__ecere__com__ClassTemplateArgument
295 const char * dataTypeString;
296 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
297 } __attribute__ ((gcc_struct)) __anon1;
298 struct __ecereNameSpace__ecere__com__DataValue expression;
301 const char * memberString;
304 struct __ecereNameSpace__ecere__com__DataMember * member;
305 struct __ecereNameSpace__ecere__com__Property * prop;
306 struct __ecereNameSpace__ecere__com__Method * method;
307 } __attribute__ ((gcc_struct)) __anon1;
308 } __attribute__ ((gcc_struct)) __anon2;
309 } __attribute__ ((gcc_struct)) __anon1;
310 } __attribute__ ((gcc_struct));
312 struct __ecereNameSpace__ecere__com__DataMember
314 struct __ecereNameSpace__ecere__com__DataMember * prev;
315 struct __ecereNameSpace__ecere__com__DataMember * next;
317 unsigned int isProperty;
320 struct __ecereNameSpace__ecere__com__Class * _class;
321 const char * dataTypeString;
322 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
323 struct __ecereNameSpace__ecere__com__Instance * dataType;
327 struct __ecereNameSpace__ecere__sys__OldList members;
328 struct __ecereNameSpace__ecere__sys__BinaryTree membersAlpha;
330 short structAlignment;
331 short pointerAlignment;
332 } __attribute__ ((gcc_struct));
334 struct __ecereNameSpace__ecere__com__Class
336 struct __ecereNameSpace__ecere__com__Class * prev;
337 struct __ecereNameSpace__ecere__com__Class * next;
343 unsigned int (* Constructor)(void * );
344 void (* Destructor)(void * );
347 struct __ecereNameSpace__ecere__com__Class * base;
348 struct __ecereNameSpace__ecere__sys__BinaryTree methods;
349 struct __ecereNameSpace__ecere__sys__BinaryTree members;
350 struct __ecereNameSpace__ecere__sys__BinaryTree prop;
351 struct __ecereNameSpace__ecere__sys__OldList membersAndProperties;
352 struct __ecereNameSpace__ecere__sys__BinaryTree classProperties;
353 struct __ecereNameSpace__ecere__sys__OldList derivatives;
357 struct __ecereNameSpace__ecere__com__Instance * module;
358 struct __ecereNameSpace__ecere__com__NameSpace * nameSpace;
359 const char * dataTypeString;
360 struct __ecereNameSpace__ecere__com__Instance * dataType;
362 int defaultAlignment;
363 void (* Initialize)();
365 struct __ecereNameSpace__ecere__sys__OldList selfWatchers;
366 const char * designerClass;
367 unsigned int noExpansion;
368 const char * defaultProperty;
369 unsigned int comRedefinition;
372 unsigned int internalDecl;
374 unsigned int computeSize;
375 short structAlignment;
376 short pointerAlignment;
377 int destructionWatchOffset;
379 struct __ecereNameSpace__ecere__sys__OldList delayedCPValues;
380 int inheritanceAccess;
381 const char * fullName;
383 struct __ecereNameSpace__ecere__sys__OldList conversions;
384 struct __ecereNameSpace__ecere__sys__OldList templateParams;
385 struct __ecereNameSpace__ecere__com__ClassTemplateArgument * templateArgs;
386 struct __ecereNameSpace__ecere__com__Class * templateClass;
387 struct __ecereNameSpace__ecere__sys__OldList templatized;
389 unsigned int isInstanceClass;
390 unsigned int byValueSystemClass;
391 } __attribute__ ((gcc_struct));