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__sys__BinaryTree;
169 struct __ecereNameSpace__ecere__sys__BinaryTree
171 struct __ecereNameSpace__ecere__sys__BTNode * root;
173 int (* CompareKey)(struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t a, uintptr_t b);
174 void (* FreeKey)(void * key);
177 struct __ecereNameSpace__ecere__com__DataMember;
179 struct __ecereNameSpace__ecere__com__DataMember
181 struct __ecereNameSpace__ecere__com__DataMember * prev;
182 struct __ecereNameSpace__ecere__com__DataMember * next;
184 unsigned int isProperty;
187 struct __ecereNameSpace__ecere__com__Class * _class;
188 const char * dataTypeString;
189 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
190 struct __ecereNameSpace__ecere__com__Instance * dataType;
194 struct __ecereNameSpace__ecere__sys__OldList members;
195 struct __ecereNameSpace__ecere__sys__BinaryTree membersAlpha;
197 short structAlignment;
198 short pointerAlignment;
201 struct __ecereNameSpace__ecere__com__Property;
203 struct __ecereNameSpace__ecere__com__Property
205 struct __ecereNameSpace__ecere__com__Property * prev;
206 struct __ecereNameSpace__ecere__com__Property * next;
208 unsigned int isProperty;
211 struct __ecereNameSpace__ecere__com__Class * _class;
212 const char * dataTypeString;
213 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
214 struct __ecereNameSpace__ecere__com__Instance * dataType;
215 void (* Set)(void * , int);
216 int (* Get)(void * );
217 unsigned int (* IsSet)(void * );
221 unsigned int conversion;
222 unsigned int watcherOffset;
223 const char * category;
224 unsigned int compiled;
225 unsigned int selfWatchable;
226 unsigned int isWatchable;
229 extern void __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
231 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);
233 extern void __ecereNameSpace__ecere__com__eInstance_Watch(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property, void * object, void (* callback)(void * , void * ));
235 extern void __ecereNameSpace__ecere__com__eInstance_FireWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
237 struct __ecereNameSpace__ecere__com__Method;
239 struct __ecereNameSpace__ecere__com__ClassTemplateArgument
245 const char * dataTypeString;
246 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
247 } ecere_gcc_struct __anon1;
248 struct __ecereNameSpace__ecere__com__DataValue expression;
251 const char * memberString;
254 struct __ecereNameSpace__ecere__com__DataMember * member;
255 struct __ecereNameSpace__ecere__com__Property * prop;
256 struct __ecereNameSpace__ecere__com__Method * method;
257 } ecere_gcc_struct __anon1;
258 } ecere_gcc_struct __anon2;
259 } ecere_gcc_struct __anon1;
262 struct __ecereNameSpace__ecere__com__Method
265 struct __ecereNameSpace__ecere__com__Method * parent;
266 struct __ecereNameSpace__ecere__com__Method * left;
267 struct __ecereNameSpace__ecere__com__Method * right;
272 struct __ecereNameSpace__ecere__com__Class * _class;
274 const char * dataTypeString;
275 struct __ecereNameSpace__ecere__com__Instance * dataType;
279 struct __ecereNameSpace__ecere__com__Module;
281 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);
283 struct __ecereNameSpace__ecere__com__NameSpace;
285 struct __ecereNameSpace__ecere__com__NameSpace
288 struct __ecereNameSpace__ecere__com__NameSpace * btParent;
289 struct __ecereNameSpace__ecere__com__NameSpace * left;
290 struct __ecereNameSpace__ecere__com__NameSpace * right;
292 struct __ecereNameSpace__ecere__com__NameSpace * parent;
293 struct __ecereNameSpace__ecere__sys__BinaryTree nameSpaces;
294 struct __ecereNameSpace__ecere__sys__BinaryTree classes;
295 struct __ecereNameSpace__ecere__sys__BinaryTree defines;
296 struct __ecereNameSpace__ecere__sys__BinaryTree functions;
299 struct __ecereNameSpace__ecere__com__Class
301 struct __ecereNameSpace__ecere__com__Class * prev;
302 struct __ecereNameSpace__ecere__com__Class * next;
308 unsigned int (* Constructor)(void * );
309 void (* Destructor)(void * );
312 struct __ecereNameSpace__ecere__com__Class * base;
313 struct __ecereNameSpace__ecere__sys__BinaryTree methods;
314 struct __ecereNameSpace__ecere__sys__BinaryTree members;
315 struct __ecereNameSpace__ecere__sys__BinaryTree prop;
316 struct __ecereNameSpace__ecere__sys__OldList membersAndProperties;
317 struct __ecereNameSpace__ecere__sys__BinaryTree classProperties;
318 struct __ecereNameSpace__ecere__sys__OldList derivatives;
322 struct __ecereNameSpace__ecere__com__Instance * module;
323 struct __ecereNameSpace__ecere__com__NameSpace * nameSpace;
324 const char * dataTypeString;
325 struct __ecereNameSpace__ecere__com__Instance * dataType;
327 int defaultAlignment;
328 void (* Initialize)();
330 struct __ecereNameSpace__ecere__sys__OldList selfWatchers;
331 const char * designerClass;
332 unsigned int noExpansion;
333 const char * defaultProperty;
334 unsigned int comRedefinition;
337 unsigned int internalDecl;
339 unsigned int computeSize;
340 short structAlignment;
341 short pointerAlignment;
342 int destructionWatchOffset;
344 struct __ecereNameSpace__ecere__sys__OldList delayedCPValues;
345 int inheritanceAccess;
346 const char * fullName;
348 struct __ecereNameSpace__ecere__sys__OldList conversions;
349 struct __ecereNameSpace__ecere__sys__OldList templateParams;
350 struct __ecereNameSpace__ecere__com__ClassTemplateArgument * templateArgs;
351 struct __ecereNameSpace__ecere__com__Class * templateClass;
352 struct __ecereNameSpace__ecere__sys__OldList templatized;
354 unsigned int isInstanceClass;
355 unsigned int byValueSystemClass;
356 void * bindingsClass;
359 struct __ecereNameSpace__ecere__com__Application
364 unsigned int isGUIApp;
365 struct __ecereNameSpace__ecere__sys__OldList allModules;
366 char * parsedCommand;
367 struct __ecereNameSpace__ecere__com__NameSpace systemNameSpace;
370 struct __ecereNameSpace__ecere__com__Module
372 struct __ecereNameSpace__ecere__com__Instance * application;
373 struct __ecereNameSpace__ecere__sys__OldList classes;
374 struct __ecereNameSpace__ecere__sys__OldList defines;
375 struct __ecereNameSpace__ecere__sys__OldList functions;
376 struct __ecereNameSpace__ecere__sys__OldList modules;
377 struct __ecereNameSpace__ecere__com__Instance * prev;
378 struct __ecereNameSpace__ecere__com__Instance * next;
384 struct __ecereNameSpace__ecere__com__NameSpace privateNameSpace;
385 struct __ecereNameSpace__ecere__com__NameSpace publicNameSpace;
388 void __ecereRegisterModule_memory(struct __ecereNameSpace__ecere__com__Instance * module)
390 struct __ecereNameSpace__ecere__com__Class __attribute__((unused)) * class;
392 __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);
393 __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);
394 __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);
395 __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);
396 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytes", "void ecere::sys::FillBytes(void * area, byte value, uint count)", __ecereNameSpace__ecere__sys__FillBytes, module, 1);
397 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytesBy2", "void ecere::sys::FillBytesBy2(void * area, uint16 value, uint count)", __ecereNameSpace__ecere__sys__FillBytesBy2, module, 1);
398 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::FillBytesBy4", "void ecere::sys::FillBytesBy4(void * area, uint value, uint count)", __ecereNameSpace__ecere__sys__FillBytesBy4, module, 1);
401 void __ecereUnregisterModule_memory(struct __ecereNameSpace__ecere__com__Instance * module)