61daa2286ed650189b68cc865fdddd9b95cccf30
[sdk] / compiler / bootstrap / libec / bootstrap / freeAst.c
1 /* Code generated from eC source file: freeAst.ec */
2 #if defined(_WIN32)
3 #define __runtimePlatform 1
4 #elif defined(__APPLE__)
5 #define __runtimePlatform 3
6 #else
7 #define __runtimePlatform 2
8 #endif
9 #if defined(__GNUC__)
10 typedef long long int64;
11 typedef unsigned long long uint64;
12 #ifndef _WIN32
13 #define __declspec(x)
14 #endif
15 #elif defined(__TINYC__)
16 #include <stdarg.h>
17 #define __builtin_va_list va_list
18 #define __builtin_va_start va_start
19 #define __builtin_va_end va_end
20 #ifdef _WIN32
21 #define strcasecmp stricmp
22 #define strncasecmp strnicmp
23 #define __declspec(x) __attribute__((x))
24 #else
25 #define __declspec(x)
26 #endif
27 typedef long long int64;
28 typedef unsigned long long uint64;
29 #else
30 typedef __int64 int64;
31 typedef unsigned __int64 uint64;
32 #endif
33 #ifdef __BIG_ENDIAN__
34 #define __ENDIAN_PAD(x) (8 - (x))
35 #else
36 #define __ENDIAN_PAD(x) 0
37 #endif
38 #include <stdint.h>
39 #include <sys/types.h>
40 extern unsigned int inCompiler;
41
42 extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BinaryTree_first;
43
44 extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_next;
45
46 extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__com__MapIterator_map;
47
48 extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__com__Iterator_data;
49
50 struct __ecereNameSpace__ecere__sys__OldList
51 {
52 void *  first;
53 void *  last;
54 int count;
55 unsigned int offset;
56 unsigned int circ;
57 } __attribute__ ((gcc_struct));
58
59 struct __ecereNameSpace__ecere__com__DataValue
60 {
61 union
62 {
63 char c;
64 unsigned char uc;
65 short s;
66 unsigned short us;
67 int i;
68 unsigned int ui;
69 void *  p;
70 float f;
71 double d;
72 long long i64;
73 uint64 ui64;
74 } __attribute__ ((gcc_struct)) __anon1;
75 } __attribute__ ((gcc_struct));
76
77 struct __ecereNameSpace__ecere__com__SerialBuffer
78 {
79 unsigned char *  _buffer;
80 unsigned int count;
81 unsigned int _size;
82 unsigned int pos;
83 } __attribute__ ((gcc_struct));
84
85 extern void *  __ecereNameSpace__ecere__com__eSystem_New(unsigned int size);
86
87 extern void *  __ecereNameSpace__ecere__com__eSystem_New0(unsigned int size);
88
89 extern void *  __ecereNameSpace__ecere__com__eSystem_Renew(void *  memory, unsigned int size);
90
91 extern void *  __ecereNameSpace__ecere__com__eSystem_Renew0(void *  memory, unsigned int size);
92
93 extern void __ecereNameSpace__ecere__com__eSystem_Delete(void *  memory);
94
95 struct __ecereNameSpace__ecere__sys__Item;
96
97 struct __ecereNameSpace__ecere__sys__OldLink;
98
99 struct CodePosition
100 {
101 int line;
102 int charPos;
103 int pos;
104 int included;
105 } __attribute__ ((gcc_struct));
106
107 struct TemplatedType;
108
109 struct __ecereNameSpace__ecere__com__LinkList
110 {
111 void * first;
112 void * last;
113 int count;
114 } __attribute__ ((gcc_struct));
115
116 struct __ecereNameSpace__ecere__com__LinkElement
117 {
118 void * prev;
119 void * next;
120 } __attribute__ ((gcc_struct));
121
122 struct __ecereNameSpace__ecere__com__IteratorPointer;
123
124 void __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(struct __ecereNameSpace__ecere__sys__OldList * this, void *  item);
125
126 void __ecereMethod___ecereNameSpace__ecere__sys__OldList_Delete(struct __ecereNameSpace__ecere__sys__OldList * this, void *  item);
127
128 void __ecereMethod___ecereNameSpace__ecere__sys__OldList_Free(struct __ecereNameSpace__ecere__sys__OldList * this, void (*  freeFn)(void * ));
129
130 struct Location
131 {
132 struct CodePosition start;
133 struct CodePosition end;
134 } __attribute__ ((gcc_struct));
135
136 void FreeList(struct __ecereNameSpace__ecere__sys__OldList * list, void (* FreeFunction)(void *))
137 {
138 if(list != (((void *)0)))
139 {
140 struct __ecereNameSpace__ecere__sys__Item * item;
141
142 while((item = list->first))
143 {
144 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(list, item);
145 FreeFunction(item);
146 }
147 (__ecereNameSpace__ecere__com__eSystem_Delete(list), list = 0);
148 }
149 }
150
151 struct Attrib
152 {
153 struct Location loc;
154 int type;
155 struct __ecereNameSpace__ecere__sys__OldList *  attribs;
156 } __attribute__ ((gcc_struct));
157
158 struct ExtDecl
159 {
160 struct Location loc;
161 int type;
162 union
163 {
164 char * s;
165 struct Attrib * attr;
166 } __attribute__ ((gcc_struct)) __anon1;
167 } __attribute__ ((gcc_struct));
168
169 struct Context;
170
171 extern struct Context * curContext;
172
173 extern struct Context * globalContext;
174
175 struct Expression;
176
177 static void _FreeExpression(struct Expression *  exp, unsigned int freePointer);
178
179 void FreeExpContents(struct Expression * exp)
180 {
181 _FreeExpression(exp, 0);
182 }
183
184 void FreeExpression(struct Expression * exp)
185 {
186 _FreeExpression(exp, 1);
187 }
188
189 struct __ecereNameSpace__ecere__com__Class;
190
191 struct __ecereNameSpace__ecere__com__Instance
192 {
193 void * *  _vTbl;
194 struct __ecereNameSpace__ecere__com__Class * _class;
195 int _refCount;
196 } __attribute__ ((gcc_struct));
197
198 extern long long __ecereNameSpace__ecere__com__eClass_GetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char *  name);
199
200 extern void __ecereNameSpace__ecere__com__eClass_SetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char *  name, long long value);
201
202 extern void __ecereNameSpace__ecere__com__eInstance_SetMethod(struct __ecereNameSpace__ecere__com__Instance * instance, const char *  name, void *  function);
203
204 extern void __ecereNameSpace__ecere__com__eInstance_IncRef(struct __ecereNameSpace__ecere__com__Instance * instance);
205
206 struct __ecereNameSpace__ecere__com__MapIterator
207 {
208 struct __ecereNameSpace__ecere__com__Instance * container;
209 struct __ecereNameSpace__ecere__com__IteratorPointer * pointer;
210 } __attribute__ ((gcc_struct));
211
212 extern struct __ecereNameSpace__ecere__com__Instance * loadedModules;
213
214 struct __ecereNameSpace__ecere__com__Iterator
215 {
216 struct __ecereNameSpace__ecere__com__Instance * container;
217 struct __ecereNameSpace__ecere__com__IteratorPointer * pointer;
218 } __attribute__ ((gcc_struct));
219
220 extern void __ecereNameSpace__ecere__com__eInstance_DecRef(struct __ecereNameSpace__ecere__com__Instance * instance);
221
222 int __ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove;
223
224 int __ecereVMethodID___ecereNameSpace__ecere__com__Container_GetFirst;
225
226 struct __ecereNameSpace__ecere__com__Instance * __ecereProp___ecereNameSpace__ecere__com__MapIterator_Get_map(struct __ecereNameSpace__ecere__com__MapIterator * this);
227
228 void __ecereProp___ecereNameSpace__ecere__com__MapIterator_Set_map(struct __ecereNameSpace__ecere__com__MapIterator * this, struct __ecereNameSpace__ecere__com__Instance * value);
229
230 unsigned int __ecereMethod___ecereNameSpace__ecere__com__Iterator_Next();
231
232 uint64 __ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data(struct __ecereNameSpace__ecere__com__Iterator * this);
233
234 void __ecereProp___ecereNameSpace__ecere__com__Iterator_Set_data(struct __ecereNameSpace__ecere__com__Iterator * this, uint64 value);
235
236 unsigned int __ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(struct __ecereNameSpace__ecere__com__Iterator * this, const uint64 index, unsigned int create);
237
238 struct __ecereNameSpace__ecere__sys__BTNode;
239
240 struct __ecereNameSpace__ecere__sys__BTNode
241 {
242 uintptr_t key;
243 struct __ecereNameSpace__ecere__sys__BTNode * parent;
244 struct __ecereNameSpace__ecere__sys__BTNode * left;
245 struct __ecereNameSpace__ecere__sys__BTNode * right;
246 int depth;
247 } __attribute__ ((gcc_struct));
248
249 struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_next(struct __ecereNameSpace__ecere__sys__BTNode * this);
250
251 struct __ecereNameSpace__ecere__com__Property;
252
253 extern void __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
254
255 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);
256
257 extern void __ecereNameSpace__ecere__com__eInstance_Watch(void *  instance, struct __ecereNameSpace__ecere__com__Property * _property, void *  object, void (*  callback)(void * , void * ));
258
259 extern void __ecereNameSpace__ecere__com__eInstance_FireWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
260
261 struct __ecereNameSpace__ecere__sys__NamedLink64;
262
263 struct __ecereNameSpace__ecere__sys__NamedLink64
264 {
265 struct __ecereNameSpace__ecere__sys__NamedLink64 * prev;
266 struct __ecereNameSpace__ecere__sys__NamedLink64 * next;
267 char *  name;
268 long long data;
269 } __attribute__ ((gcc_struct));
270
271 struct MethodImport;
272
273 struct MethodImport
274 {
275 struct MethodImport * prev;
276 struct MethodImport * next;
277 char *  name;
278 unsigned int isVirtual;
279 } __attribute__ ((gcc_struct));
280
281 void FreeMethodImport(struct MethodImport * imp)
282 {
283 (__ecereNameSpace__ecere__com__eSystem_Delete(imp->name), imp->name = 0);
284 }
285
286 void FreePropertyImport(struct MethodImport * imp)
287 {
288 (__ecereNameSpace__ecere__com__eSystem_Delete(imp->name), imp->name = 0);
289 }
290
291 struct Definition;
292
293 struct Definition
294 {
295 struct Definition * prev;
296 struct Definition * next;
297 char *  name;
298 int type;
299 } __attribute__ ((gcc_struct));
300
301 void FreeModuleDefine(struct Definition * def)
302 {
303 (__ecereNameSpace__ecere__com__eSystem_Delete(def->name), def->name = 0);
304 }
305
306 struct Symbol;
307
308 extern struct Symbol * FindClass(const char *  name);
309
310 struct DBTableDef
311 {
312 char *  name;
313 struct Symbol * symbol;
314 struct __ecereNameSpace__ecere__sys__OldList *  definitions;
315 int declMode;
316 } __attribute__ ((gcc_struct));
317
318 struct DBIndexItem;
319
320 struct ClassImport;
321
322 struct ClassImport
323 {
324 struct ClassImport * prev;
325 struct ClassImport * next;
326 char *  name;
327 struct __ecereNameSpace__ecere__sys__OldList methods;
328 struct __ecereNameSpace__ecere__sys__OldList properties;
329 unsigned int itself;
330 int isRemote;
331 } __attribute__ ((gcc_struct));
332
333 void FreeClassImport(struct ClassImport * imp)
334 {
335 (__ecereNameSpace__ecere__com__eSystem_Delete(imp->name), imp->name = 0);
336 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Free(&imp->methods, (void *)(FreeMethodImport));
337 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Free(&imp->properties, (void *)(FreePropertyImport));
338 }
339
340 void FreeFunctionImport(struct ClassImport * imp)
341 {
342 (__ecereNameSpace__ecere__com__eSystem_Delete(imp->name), imp->name = 0);
343 }
344
345 struct ModuleImport;
346
347 struct ModuleImport
348 {
349 struct ModuleImport * prev;
350 struct ModuleImport * next;
351 char *  name;
352 struct __ecereNameSpace__ecere__sys__OldList classes;
353 struct __ecereNameSpace__ecere__sys__OldList functions;
354 int importType;
355 int importAccess;
356 } __attribute__ ((gcc_struct));
357
358 void FreeModuleImport(struct ModuleImport * imp)
359 {
360 (__ecereNameSpace__ecere__com__eSystem_Delete(imp->name), imp->name = 0);
361 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Free(&imp->classes, (void *)(FreeClassImport));
362 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Free(&imp->functions, (void *)(FreeFunctionImport));
363 }
364
365 struct Declarator;
366
367 struct TemplateDatatype
368 {
369 struct __ecereNameSpace__ecere__sys__OldList *  specifiers;
370 struct Declarator * decl;
371 } __attribute__ ((gcc_struct));
372
373 struct DBTableEntry;
374
375 struct External;
376
377 struct TopoEdge
378 {
379 struct __ecereNameSpace__ecere__com__LinkElement in;
380 struct __ecereNameSpace__ecere__com__LinkElement out;
381 struct External * from;
382 struct External * to;
383 unsigned int breakable;
384 } __attribute__ ((gcc_struct));
385
386 struct Pointer;
387
388 struct Pointer
389 {
390 struct Pointer * prev;
391 struct Pointer * next;
392 struct Location loc;
393 struct __ecereNameSpace__ecere__sys__OldList *  qualifiers;
394 struct Pointer * pointer;
395 } __attribute__ ((gcc_struct));
396
397 struct PropertyWatch;
398
399 struct MemberInit;
400
401 struct MembersInit;
402
403 struct Enumerator;
404
405 struct Attribute;
406
407 struct Attribute
408 {
409 struct Attribute * prev;
410 struct Attribute * next;
411 struct Location loc;
412 char * attr;
413 struct Expression * exp;
414 } __attribute__ ((gcc_struct));
415
416 struct AsmField;
417
418 struct Statement;
419
420 struct PropertyWatch
421 {
422 struct PropertyWatch * prev;
423 struct PropertyWatch * next;
424 struct Location loc;
425 struct Statement * compound;
426 struct __ecereNameSpace__ecere__sys__OldList *  properties;
427 unsigned int deleteWatch;
428 } __attribute__ ((gcc_struct));
429
430 struct Initializer;
431
432 struct MemberInit
433 {
434 struct MemberInit * prev;
435 struct MemberInit * next;
436 struct Location loc;
437 struct Location realLoc;
438 struct __ecereNameSpace__ecere__sys__OldList *  identifiers;
439 struct Initializer * initializer;
440 unsigned int used;
441 unsigned int variable;
442 unsigned int takeOutExp;
443 } __attribute__ ((gcc_struct));
444
445 struct __ecereNameSpace__ecere__com__Method;
446
447 struct __ecereNameSpace__ecere__com__ClassProperty;
448
449 struct __ecereNameSpace__ecere__com__GlobalFunction;
450
451 struct __ecereNameSpace__ecere__com__Module;
452
453 extern void __ecereNameSpace__ecere__com__eModule_Unload(struct __ecereNameSpace__ecere__com__Instance * fromModule, struct __ecereNameSpace__ecere__com__Instance * module);
454
455 extern struct __ecereNameSpace__ecere__com__Instance * __thisModule;
456
457 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);
458
459 struct __ecereNameSpace__ecere__sys__BinaryTree;
460
461 struct __ecereNameSpace__ecere__sys__BinaryTree
462 {
463 struct __ecereNameSpace__ecere__sys__BTNode * root;
464 int count;
465 int (*  CompareKey)(struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t a, uintptr_t b);
466 void (*  FreeKey)(void *  key);
467 } __attribute__ ((gcc_struct));
468
469 void __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(struct __ecereNameSpace__ecere__sys__BinaryTree * this, struct __ecereNameSpace__ecere__sys__BTNode * node);
470
471 struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_first(struct __ecereNameSpace__ecere__sys__BinaryTree * this);
472
473 struct Type;
474
475 struct __ecereNameSpace__ecere__com__Property
476 {
477 struct __ecereNameSpace__ecere__com__Property * prev;
478 struct __ecereNameSpace__ecere__com__Property * next;
479 const char *  name;
480 unsigned int isProperty;
481 int memberAccess;
482 int id;
483 struct __ecereNameSpace__ecere__com__Class * _class;
484 const char *  dataTypeString;
485 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
486 struct Type * dataType;
487 void (*  Set)(void * , int);
488 int (*  Get)(void * );
489 unsigned int (*  IsSet)(void * );
490 void *  data;
491 void *  symbol;
492 int vid;
493 unsigned int conversion;
494 unsigned int watcherOffset;
495 const char *  category;
496 unsigned int compiled;
497 unsigned int selfWatchable;
498 unsigned int isWatchable;
499 } __attribute__ ((gcc_struct));
500
501 struct __ecereNameSpace__ecere__com__Method
502 {
503 const char *  name;
504 struct __ecereNameSpace__ecere__com__Method * parent;
505 struct __ecereNameSpace__ecere__com__Method * left;
506 struct __ecereNameSpace__ecere__com__Method * right;
507 int depth;
508 int (*  function)();
509 int vid;
510 int type;
511 struct __ecereNameSpace__ecere__com__Class * _class;
512 void *  symbol;
513 const char *  dataTypeString;
514 struct Type * dataType;
515 int memberAccess;
516 } __attribute__ ((gcc_struct));
517
518 struct Symbol
519 {
520 char *  string;
521 struct Symbol * parent;
522 struct Symbol * left;
523 struct Symbol * right;
524 int depth;
525 struct Type * type;
526 union
527 {
528 struct __ecereNameSpace__ecere__com__Method * method;
529 struct __ecereNameSpace__ecere__com__Property * _property;
530 struct __ecereNameSpace__ecere__com__Class * registered;
531 } __attribute__ ((gcc_struct)) __anon1;
532 unsigned int notYetDeclared;
533 union
534 {
535 struct
536 {
537 struct External * pointerExternal;
538 struct External * structExternal;
539 } __attribute__ ((gcc_struct)) __anon1;
540 struct
541 {
542 struct External * externalGet;
543 struct External * externalSet;
544 struct External * externalPtr;
545 struct External * externalIsSet;
546 } __attribute__ ((gcc_struct)) __anon2;
547 struct
548 {
549 struct External * methodExternal;
550 struct External * methodCodeExternal;
551 } __attribute__ ((gcc_struct)) __anon3;
552 } __attribute__ ((gcc_struct)) __anon2;
553 unsigned int imported;
554 unsigned int declaredStructSym;
555 struct __ecereNameSpace__ecere__com__Class * _class;
556 unsigned int declaredStruct;
557 unsigned int needConstructor;
558 unsigned int needDestructor;
559 char *  constructorName;
560 char *  structName;
561 char *  className;
562 char *  destructorName;
563 struct ModuleImport * module;
564 struct ClassImport * _import;
565 struct Location nameLoc;
566 unsigned int isParam;
567 unsigned int isRemote;
568 unsigned int isStruct;
569 unsigned int fireWatchersDone;
570 int declaring;
571 unsigned int classData;
572 unsigned int isStatic;
573 char *  shortName;
574 struct __ecereNameSpace__ecere__sys__OldList *  templateParams;
575 struct __ecereNameSpace__ecere__sys__OldList templatedClasses;
576 struct Context * ctx;
577 int isIterator;
578 struct Expression * propCategory;
579 } __attribute__ ((gcc_struct));
580
581 struct __ecereNameSpace__ecere__com__ClassProperty
582 {
583 const char *  name;
584 struct __ecereNameSpace__ecere__com__ClassProperty * parent;
585 struct __ecereNameSpace__ecere__com__ClassProperty * left;
586 struct __ecereNameSpace__ecere__com__ClassProperty * right;
587 int depth;
588 void (*  Set)(struct __ecereNameSpace__ecere__com__Class *, long long);
589 long long (*  Get)(struct __ecereNameSpace__ecere__com__Class *);
590 const char *  dataTypeString;
591 struct Type * dataType;
592 unsigned int constant;
593 } __attribute__ ((gcc_struct));
594
595 void FreeSymbol(struct Symbol *  symbol);
596
597 void FreeExcludedSymbols(struct __ecereNameSpace__ecere__sys__OldList * excludedSymbols)
598 {
599 struct Symbol * symbol;
600
601 while((symbol = excludedSymbols->first))
602 {
603 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(excludedSymbols, symbol);
604 FreeSymbol(symbol);
605 }
606 }
607
608 struct Specifier;
609
610 struct Identifier;
611
612 struct Enumerator
613 {
614 struct Enumerator * prev;
615 struct Enumerator * next;
616 struct Location loc;
617 struct Identifier * id;
618 struct Expression * exp;
619 } __attribute__ ((gcc_struct));
620
621 struct Identifier
622 {
623 struct Identifier * prev;
624 struct Identifier * next;
625 struct Location loc;
626 struct Symbol * classSym;
627 struct Specifier * _class;
628 char *  string;
629 struct Identifier * badID;
630 } __attribute__ ((gcc_struct));
631
632 struct Declarator
633 {
634 struct Declarator * prev;
635 struct Declarator * next;
636 struct Location loc;
637 int type;
638 struct Symbol * symbol;
639 struct Declarator * declarator;
640 union
641 {
642 struct Identifier * identifier;
643 struct
644 {
645 struct Expression * exp;
646 struct Expression * posExp;
647 struct Attrib * attrib;
648 } __attribute__ ((gcc_struct)) structDecl;
649 struct
650 {
651 struct Expression * exp;
652 struct Specifier * enumClass;
653 } __attribute__ ((gcc_struct)) array;
654 struct
655 {
656 struct __ecereNameSpace__ecere__sys__OldList * parameters;
657 } __attribute__ ((gcc_struct)) function;
658 struct
659 {
660 struct Pointer * pointer;
661 } __attribute__ ((gcc_struct)) pointer;
662 struct
663 {
664 struct ExtDecl * extended;
665 } __attribute__ ((gcc_struct)) extended;
666 } __attribute__ ((gcc_struct)) __anon1;
667 } __attribute__ ((gcc_struct));
668
669 struct AsmField
670 {
671 struct AsmField * prev;
672 struct AsmField * next;
673 struct Location loc;
674 char *  command;
675 struct Expression * expression;
676 struct Identifier * symbolic;
677 } __attribute__ ((gcc_struct));
678
679 struct Initializer
680 {
681 struct Initializer * prev;
682 struct Initializer * next;
683 struct Location loc;
684 int type;
685 union
686 {
687 struct Expression * exp;
688 struct __ecereNameSpace__ecere__sys__OldList *  list;
689 } __attribute__ ((gcc_struct)) __anon1;
690 unsigned int isConstant;
691 struct Identifier * id;
692 } __attribute__ ((gcc_struct));
693
694 struct DBIndexItem
695 {
696 struct DBIndexItem * prev;
697 struct DBIndexItem * next;
698 struct Identifier * id;
699 int order;
700 } __attribute__ ((gcc_struct));
701
702 struct TypeName;
703
704 struct TypeName
705 {
706 struct TypeName * prev;
707 struct TypeName * next;
708 struct Location loc;
709 struct __ecereNameSpace__ecere__sys__OldList *  qualifiers;
710 struct Declarator * declarator;
711 int classObjectType;
712 struct Expression * bitCount;
713 } __attribute__ ((gcc_struct));
714
715 struct DBTableEntry
716 {
717 struct DBTableEntry * prev;
718 struct DBTableEntry * next;
719 int type;
720 struct Identifier * id;
721 union
722 {
723 struct
724 {
725 struct TypeName * dataType;
726 char *  name;
727 } __attribute__ ((gcc_struct)) __anon1;
728 struct __ecereNameSpace__ecere__sys__OldList *  items;
729 } __attribute__ ((gcc_struct)) __anon1;
730 } __attribute__ ((gcc_struct));
731
732 void FreeExternal(struct External *  external);
733
734 void FreeASTTree(struct __ecereNameSpace__ecere__sys__OldList * ast)
735 {
736 if(ast != (((void *)0)))
737 {
738 struct External * external;
739
740 while((external = ast->first))
741 {
742 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(ast, external);
743 FreeExternal(external);
744 }
745 (__ecereNameSpace__ecere__com__eSystem_Delete(ast), ast = 0);
746 }
747 }
748
749 struct ClassFunction;
750
751 struct MembersInit
752 {
753 struct MembersInit * prev;
754 struct MembersInit * next;
755 struct Location loc;
756 int type;
757 union
758 {
759 struct __ecereNameSpace__ecere__sys__OldList *  dataMembers;
760 struct ClassFunction * function;
761 } __attribute__ ((gcc_struct)) __anon1;
762 } __attribute__ ((gcc_struct));
763
764 struct ClassFunction
765 {
766 struct ClassFunction * prev;
767 struct ClassFunction * next;
768 struct Location loc;
769 struct __ecereNameSpace__ecere__sys__OldList *  specifiers;
770 struct Declarator * declarator;
771 struct __ecereNameSpace__ecere__sys__OldList *  declarations;
772 struct Statement * body;
773 struct __ecereNameSpace__ecere__com__Class * _class;
774 struct __ecereNameSpace__ecere__sys__OldList attached;
775 int declMode;
776 struct Type * type;
777 struct Symbol * propSet;
778 unsigned int isVirtual;
779 unsigned int isConstructor;
780 unsigned int isDestructor;
781 unsigned int dontMangle;
782 int id;
783 int idCode;
784 } __attribute__ ((gcc_struct));
785
786 struct InitDeclarator;
787
788 struct InitDeclarator
789 {
790 struct InitDeclarator * prev;
791 struct InitDeclarator * next;
792 struct Location loc;
793 struct Declarator * declarator;
794 struct Initializer * initializer;
795 } __attribute__ ((gcc_struct));
796
797 struct __ecereNameSpace__ecere__com__DataMember;
798
799 struct __ecereNameSpace__ecere__com__ClassTemplateArgument
800 {
801 union
802 {
803 struct
804 {
805 const char *  dataTypeString;
806 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
807 } __attribute__ ((gcc_struct)) __anon1;
808 struct __ecereNameSpace__ecere__com__DataValue expression;
809 struct
810 {
811 const char *  memberString;
812 union
813 {
814 struct __ecereNameSpace__ecere__com__DataMember * member;
815 struct __ecereNameSpace__ecere__com__Property * prop;
816 struct __ecereNameSpace__ecere__com__Method * method;
817 } __attribute__ ((gcc_struct)) __anon1;
818 } __attribute__ ((gcc_struct)) __anon2;
819 } __attribute__ ((gcc_struct)) __anon1;
820 } __attribute__ ((gcc_struct));
821
822 struct __ecereNameSpace__ecere__com__DataMember
823 {
824 struct __ecereNameSpace__ecere__com__DataMember * prev;
825 struct __ecereNameSpace__ecere__com__DataMember * next;
826 const char *  name;
827 unsigned int isProperty;
828 int memberAccess;
829 int id;
830 struct __ecereNameSpace__ecere__com__Class * _class;
831 const char *  dataTypeString;
832 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
833 struct Type * dataType;
834 int type;
835 int offset;
836 int memberID;
837 struct __ecereNameSpace__ecere__sys__OldList members;
838 struct __ecereNameSpace__ecere__sys__BinaryTree membersAlpha;
839 int memberOffset;
840 short structAlignment;
841 short pointerAlignment;
842 } __attribute__ ((gcc_struct));
843
844 struct __ecereNameSpace__ecere__com__NameSpace;
845
846 struct __ecereNameSpace__ecere__com__NameSpace
847 {
848 const char *  name;
849 struct __ecereNameSpace__ecere__com__NameSpace *  btParent;
850 struct __ecereNameSpace__ecere__com__NameSpace *  left;
851 struct __ecereNameSpace__ecere__com__NameSpace *  right;
852 int depth;
853 struct __ecereNameSpace__ecere__com__NameSpace *  parent;
854 struct __ecereNameSpace__ecere__sys__BinaryTree nameSpaces;
855 struct __ecereNameSpace__ecere__sys__BinaryTree classes;
856 struct __ecereNameSpace__ecere__sys__BinaryTree defines;
857 struct __ecereNameSpace__ecere__sys__BinaryTree functions;
858 } __attribute__ ((gcc_struct));
859
860 struct __ecereNameSpace__ecere__com__Class
861 {
862 struct __ecereNameSpace__ecere__com__Class * prev;
863 struct __ecereNameSpace__ecere__com__Class * next;
864 const char *  name;
865 int offset;
866 int structSize;
867 void * *  _vTbl;
868 int vTblSize;
869 unsigned int (*  Constructor)(void * );
870 void (*  Destructor)(void * );
871 int offsetClass;
872 int sizeClass;
873 struct __ecereNameSpace__ecere__com__Class * base;
874 struct __ecereNameSpace__ecere__sys__BinaryTree methods;
875 struct __ecereNameSpace__ecere__sys__BinaryTree members;
876 struct __ecereNameSpace__ecere__sys__BinaryTree prop;
877 struct __ecereNameSpace__ecere__sys__OldList membersAndProperties;
878 struct __ecereNameSpace__ecere__sys__BinaryTree classProperties;
879 struct __ecereNameSpace__ecere__sys__OldList derivatives;
880 int memberID;
881 int startMemberID;
882 int type;
883 struct __ecereNameSpace__ecere__com__Instance * module;
884 struct __ecereNameSpace__ecere__com__NameSpace *  nameSpace;
885 const char *  dataTypeString;
886 struct Type * dataType;
887 int typeSize;
888 int defaultAlignment;
889 void (*  Initialize)();
890 int memberOffset;
891 struct __ecereNameSpace__ecere__sys__OldList selfWatchers;
892 const char *  designerClass;
893 unsigned int noExpansion;
894 const char *  defaultProperty;
895 unsigned int comRedefinition;
896 int count;
897 int isRemote;
898 unsigned int internalDecl;
899 void *  data;
900 unsigned int computeSize;
901 short structAlignment;
902 short pointerAlignment;
903 int destructionWatchOffset;
904 unsigned int fixed;
905 struct __ecereNameSpace__ecere__sys__OldList delayedCPValues;
906 int inheritanceAccess;
907 const char *  fullName;
908 void *  symbol;
909 struct __ecereNameSpace__ecere__sys__OldList conversions;
910 struct __ecereNameSpace__ecere__sys__OldList templateParams;
911 struct __ecereNameSpace__ecere__com__ClassTemplateArgument *  templateArgs;
912 struct __ecereNameSpace__ecere__com__Class * templateClass;
913 struct __ecereNameSpace__ecere__sys__OldList templatized;
914 int numParams;
915 unsigned int isInstanceClass;
916 unsigned int byValueSystemClass;
917 } __attribute__ ((gcc_struct));
918
919 struct __ecereNameSpace__ecere__com__GlobalFunction
920 {
921 struct __ecereNameSpace__ecere__com__GlobalFunction * prev;
922 struct __ecereNameSpace__ecere__com__GlobalFunction * next;
923 const char *  name;
924 int (*  function)();
925 struct __ecereNameSpace__ecere__com__Instance * module;
926 struct __ecereNameSpace__ecere__com__NameSpace *  nameSpace;
927 const char *  dataTypeString;
928 struct Type * dataType;
929 void *  symbol;
930 } __attribute__ ((gcc_struct));
931
932 struct __ecereNameSpace__ecere__com__Application
933 {
934 int argc;
935 const char * *  argv;
936 int exitCode;
937 unsigned int isGUIApp;
938 struct __ecereNameSpace__ecere__sys__OldList allModules;
939 char *  parsedCommand;
940 struct __ecereNameSpace__ecere__com__NameSpace systemNameSpace;
941 } __attribute__ ((gcc_struct));
942
943 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
944
945 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Type;
946
947 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Context;
948
949 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Symbol;
950
951 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TemplateArgument;
952
953 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TemplateDatatype;
954
955 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TemplateParameter;
956
957 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TemplatedType;
958
959 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__BTNode;
960
961 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Enumerator;
962
963 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Specifier;
964
965 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Identifier;
966
967 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TypeName;
968
969 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Expression;
970
971 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Pointer;
972
973 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Attrib;
974
975 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Attribute;
976
977 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_ExtDecl;
978
979 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Declarator;
980
981 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_PropertyWatch;
982
983 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_AsmField;
984
985 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Statement;
986
987 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Initializer;
988
989 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_InitDeclarator;
990
991 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Declaration;
992
993 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_FunctionDefinition;
994
995 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_MemberInit;
996
997 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_MembersInit;
998
999 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Instantiation;
1000
1001 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_ClassFunction;
1002
1003 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_PropertyDef;
1004
1005 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_ClassDef;
1006
1007 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_ClassDefinition;
1008
1009 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_DBIndexItem;
1010
1011 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_DBTableEntry;
1012
1013 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_DBTableDef;
1014
1015 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__LinkList;
1016
1017 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TopoEdge;
1018
1019 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_External;
1020
1021 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Module;
1022
1023 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__List;
1024
1025 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Map;
1026
1027 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Application;
1028
1029 struct __ecereNameSpace__ecere__com__Module
1030 {
1031 struct __ecereNameSpace__ecere__com__Instance * application;
1032 struct __ecereNameSpace__ecere__sys__OldList classes;
1033 struct __ecereNameSpace__ecere__sys__OldList defines;
1034 struct __ecereNameSpace__ecere__sys__OldList functions;
1035 struct __ecereNameSpace__ecere__sys__OldList modules;
1036 struct __ecereNameSpace__ecere__com__Instance * prev;
1037 struct __ecereNameSpace__ecere__com__Instance * next;
1038 const char *  name;
1039 void *  library;
1040 void *  Unload;
1041 int importType;
1042 int origImportType;
1043 struct __ecereNameSpace__ecere__com__NameSpace privateNameSpace;
1044 struct __ecereNameSpace__ecere__com__NameSpace publicNameSpace;
1045 } __attribute__ ((gcc_struct));
1046
1047 void FreeTemplateType(struct TemplatedType * type)
1048 {
1049 ((type ? (__ecereClass_TemplatedType->Destructor ? __ecereClass_TemplatedType->Destructor((void *)type) : 0, __ecereClass___ecereNameSpace__ecere__sys__BTNode->Destructor ? __ecereClass___ecereNameSpace__ecere__sys__BTNode->Destructor((void *)type) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(type)) : 0), type = 0);
1050 }
1051
1052 void FreeAttribute(struct Attribute * attr)
1053 {
1054 (__ecereNameSpace__ecere__com__eSystem_Delete(attr->attr), attr->attr = 0);
1055 if(attr->exp)
1056 FreeExpression(attr->exp);
1057 ((attr ? (__ecereClass_Attribute->Destructor ? __ecereClass_Attribute->Destructor((void *)attr) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(attr)) : 0), attr = 0);
1058 }
1059
1060 void __ecereUnregisterModule_freeAst(struct __ecereNameSpace__ecere__com__Instance * module)
1061 {
1062
1063 }
1064
1065 void FreeAttrib(struct Attrib * attr)
1066 {
1067 if(attr->attribs)
1068 FreeList(attr->attribs, (void *)(FreeAttribute));
1069 ((attr ? (__ecereClass_Attrib->Destructor ? __ecereClass_Attrib->Destructor((void *)attr) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(attr)) : 0), attr = 0);
1070 }
1071
1072 void FreeExtDecl(struct ExtDecl * extDecl)
1073 {
1074 if(extDecl->type == 1 && extDecl->__anon1.attr)
1075 FreeAttrib(extDecl->__anon1.attr);
1076 else if(extDecl->type == 0)
1077 (__ecereNameSpace__ecere__com__eSystem_Delete(extDecl->__anon1.s), extDecl->__anon1.s = 0);
1078 ((extDecl ? (__ecereClass_ExtDecl->Destructor ? __ecereClass_ExtDecl->Destructor((void *)extDecl) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(extDecl)) : 0), extDecl = 0);
1079 }
1080
1081 struct ClassDefinition;
1082
1083 struct Context
1084 {
1085 struct Context * parent;
1086 struct __ecereNameSpace__ecere__sys__BinaryTree types;
1087 struct __ecereNameSpace__ecere__sys__BinaryTree classes;
1088 struct __ecereNameSpace__ecere__sys__BinaryTree symbols;
1089 struct __ecereNameSpace__ecere__sys__BinaryTree structSymbols;
1090 int nextID;
1091 int simpleID;
1092 struct __ecereNameSpace__ecere__sys__BinaryTree templateTypes;
1093 struct ClassDefinition * classDef;
1094 unsigned int templateTypesOnly;
1095 unsigned int hasNameSpace;
1096 } __attribute__ ((gcc_struct));
1097
1098 struct ClassDefinition
1099 {
1100 struct ClassDefinition * prev;
1101 struct ClassDefinition * next;
1102 struct Location loc;
1103 struct Specifier * _class;
1104 struct __ecereNameSpace__ecere__sys__OldList *  baseSpecs;
1105 struct __ecereNameSpace__ecere__sys__OldList *  definitions;
1106 struct Symbol * symbol;
1107 struct Location blockStart;
1108 struct Location nameLoc;
1109 int declMode;
1110 unsigned int deleteWatchable;
1111 } __attribute__ ((gcc_struct));
1112
1113 void FreeContext(struct Context * context)
1114 {
1115 struct Symbol * symbol;
1116
1117 if(context == curContext)
1118 curContext = globalContext;
1119 while((symbol = (struct Symbol *)context->types.root))
1120 {
1121 __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(&context->types, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
1122 FreeSymbol(symbol);
1123 }
1124 while((symbol = (struct Symbol *)context->classes.root))
1125 {
1126 __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(&context->classes, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
1127 FreeSymbol(symbol);
1128 }
1129 while((symbol = (struct Symbol *)context->symbols.root))
1130 {
1131 __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(&context->symbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
1132 FreeSymbol(symbol);
1133 }
1134 while((symbol = (struct Symbol *)context->structSymbols.root))
1135 {
1136 __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(&context->structSymbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
1137 FreeSymbol(symbol);
1138 }
1139 while((symbol = (struct Symbol *)context->templateTypes.root))
1140 {
1141 __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(&context->templateTypes, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
1142 FreeTemplateType((struct TemplatedType *)symbol);
1143 }
1144 context->nextID = 0;
1145 context->simpleID = 0;
1146 context->parent = (((void *)0));
1147 }
1148
1149 struct TemplateParameter;
1150
1151 struct Type
1152 {
1153 struct Type * prev;
1154 struct Type * next;
1155 int refCount;
1156 union
1157 {
1158 struct Symbol * _class;
1159 struct
1160 {
1161 struct __ecereNameSpace__ecere__sys__OldList members;
1162 char *  enumName;
1163 } __attribute__ ((gcc_struct)) __anon1;
1164 struct
1165 {
1166 struct Type * returnType;
1167 struct __ecereNameSpace__ecere__sys__OldList params;
1168 struct Symbol * thisClass;
1169 unsigned int staticMethod;
1170 struct TemplateParameter * thisClassTemplate;
1171 } __attribute__ ((gcc_struct)) __anon2;
1172 struct
1173 {
1174 struct __ecereNameSpace__ecere__com__Method * method;
1175 struct __ecereNameSpace__ecere__com__Class * methodClass;
1176 struct __ecereNameSpace__ecere__com__Class * usedClass;
1177 } __attribute__ ((gcc_struct)) __anon3;
1178 struct
1179 {
1180 struct Type * arrayType;
1181 int arraySize;
1182 struct Expression * arraySizeExp;
1183 unsigned int freeExp;
1184 struct Symbol * enumClass;
1185 } __attribute__ ((gcc_struct)) __anon4;
1186 struct Type * type;
1187 struct TemplateParameter * templateParameter;
1188 } __attribute__ ((gcc_struct)) __anon1;
1189 int kind;
1190 unsigned int size;
1191 char *  name;
1192 char *  typeName;
1193 int classObjectType;
1194 int alignment;
1195 unsigned int offset;
1196 int bitFieldCount;
1197 int count;
1198 unsigned int isSigned : 1;
1199 unsigned int constant : 1;
1200 unsigned int truth : 1;
1201 unsigned int byReference : 1;
1202 unsigned int extraParam : 1;
1203 unsigned int directClassAccess : 1;
1204 unsigned int computing : 1;
1205 unsigned int keepCast : 1;
1206 unsigned int passAsTemplate : 1;
1207 unsigned int dllExport : 1;
1208 unsigned int attrStdcall : 1;
1209 unsigned int declaredWithStruct : 1;
1210 unsigned int typedByReference : 1;
1211 unsigned int casted : 1;
1212 unsigned int pointerAlignment : 1;
1213 } __attribute__ ((gcc_struct));
1214
1215 struct Specifier
1216 {
1217 struct Specifier * prev;
1218 struct Specifier * next;
1219 struct Location loc;
1220 int type;
1221 union
1222 {
1223 int specifier;
1224 struct
1225 {
1226 struct ExtDecl * extDecl;
1227 char *  name;
1228 struct Symbol * symbol;
1229 struct __ecereNameSpace__ecere__sys__OldList *  templateArgs;
1230 } __attribute__ ((gcc_struct)) __anon1;
1231 struct
1232 {
1233 struct Identifier * id;
1234 struct __ecereNameSpace__ecere__sys__OldList *  list;
1235 struct __ecereNameSpace__ecere__sys__OldList *  baseSpecs;
1236 struct __ecereNameSpace__ecere__sys__OldList *  definitions;
1237 unsigned int addNameSpace;
1238 struct Context * ctx;
1239 struct ExtDecl * extDeclStruct;
1240 } __attribute__ ((gcc_struct)) __anon2;
1241 struct Expression * expression;
1242 struct Specifier * _class;
1243 struct TemplateParameter * templateParameter;
1244 } __attribute__ ((gcc_struct)) __anon1;
1245 } __attribute__ ((gcc_struct));
1246
1247 void FreeType(struct Type * type)
1248 {
1249 if(type)
1250 {
1251 type->refCount--;
1252 if(type->refCount <= 0)
1253 {
1254 switch(type->kind)
1255 {
1256 case 15:
1257 {
1258 struct __ecereNameSpace__ecere__sys__NamedLink64 * member, * next;
1259
1260 if(type->__anon1.__anon1.enumName)
1261 (__ecereNameSpace__ecere__com__eSystem_Delete(type->__anon1.__anon1.enumName), type->__anon1.__anon1.enumName = 0);
1262 for(member = type->__anon1.__anon1.members.first; member; member = next)
1263 {
1264 next = member->next;
1265 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(&type->__anon1.__anon1.members, member);
1266 (__ecereNameSpace__ecere__com__eSystem_Delete(member->name), member->name = 0);
1267 ((member ? (__ecereClass___ecereNameSpace__ecere__sys__NamedLink64->Destructor ? __ecereClass___ecereNameSpace__ecere__sys__NamedLink64->Destructor((void *)member) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(member)) : 0), member = 0);
1268 }
1269 break;
1270 }
1271 case 9:
1272 case 10:
1273 {
1274 struct Type * member, * next;
1275
1276 (__ecereNameSpace__ecere__com__eSystem_Delete(type->__anon1.__anon1.enumName), type->__anon1.__anon1.enumName = 0);
1277 for(member = type->__anon1.__anon1.members.first; member; member = next)
1278 {
1279 next = member->next;
1280 if(member->refCount == 1)
1281 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(&type->__anon1.__anon1.members, member);
1282 FreeType(member);
1283 }
1284 break;
1285 }
1286 case 11:
1287 {
1288 struct Type * param, * next;
1289
1290 if(type->__anon1.__anon2.returnType)
1291 FreeType(type->__anon1.__anon2.returnType);
1292 for(param = type->__anon1.__anon2.params.first; param; param = next)
1293 {
1294 next = param->next;
1295 FreeType(param);
1296 }
1297 break;
1298 }
1299 case 12:
1300 if(type->__anon1.__anon4.freeExp && type->__anon1.__anon4.arraySizeExp)
1301 FreeExpression(type->__anon1.__anon4.arraySizeExp);
1302 case 13:
1303 if(type->__anon1.type)
1304 FreeType(type->__anon1.type);
1305 break;
1306 }
1307 (__ecereNameSpace__ecere__com__eSystem_Delete(type->name), type->name = 0);
1308 (__ecereNameSpace__ecere__com__eSystem_Delete(type->typeName), type->typeName = 0);
1309 ((type ? (__ecereClass_Type->Destructor ? __ecereClass_Type->Destructor((void *)type) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(type)) : 0), type = 0);
1310 }
1311 }
1312 }
1313
1314 static void FreeDataMember(struct __ecereNameSpace__ecere__com__DataMember * parentMember)
1315 {
1316 struct __ecereNameSpace__ecere__com__DataMember * dataMember;
1317
1318 for(dataMember = parentMember->members.first; dataMember; dataMember = dataMember->next)
1319 {
1320 if(dataMember->type == 2 || dataMember->type == 1)
1321 FreeDataMember(dataMember);
1322 if(dataMember->dataType)
1323 {
1324 FreeType(dataMember->dataType);
1325 dataMember->dataType = (((void *)0));
1326 }
1327 }
1328 }
1329
1330 static void FreeClassProperties(struct __ecereNameSpace__ecere__com__ClassProperty * classProp)
1331 {
1332 if(classProp->left)
1333 FreeClassProperties(classProp->left);
1334 if(classProp->right)
1335 FreeClassProperties(classProp->right);
1336 if(classProp->dataType)
1337 {
1338 FreeType(classProp->dataType);
1339 classProp->dataType = (((void *)0));
1340 }
1341 }
1342
1343 struct FunctionDefinition;
1344
1345 struct FunctionDefinition
1346 {
1347 struct FunctionDefinition * prev;
1348 struct FunctionDefinition * next;
1349 struct Location loc;
1350 struct __ecereNameSpace__ecere__sys__OldList *  specifiers;
1351 struct Declarator * declarator;
1352 struct __ecereNameSpace__ecere__sys__OldList *  declarations;
1353 struct Statement * body;
1354 struct __ecereNameSpace__ecere__com__Class * _class;
1355 struct __ecereNameSpace__ecere__sys__OldList attached;
1356 int declMode;
1357 struct Type * type;
1358 struct Symbol * propSet;
1359 int tempCount;
1360 unsigned int propertyNoThis;
1361 } __attribute__ ((gcc_struct));
1362
1363 struct Instantiation;
1364
1365 struct Expression
1366 {
1367 struct Expression * prev;
1368 struct Expression * next;
1369 struct Location loc;
1370 int type;
1371 union
1372 {
1373 struct
1374 {
1375 char *  constant;
1376 struct Identifier * identifier;
1377 } __attribute__ ((gcc_struct)) __anon1;
1378 struct Statement * compound;
1379 struct Instantiation * instance;
1380 struct
1381 {
1382 char *  string;
1383 unsigned int intlString;
1384 unsigned int wideString;
1385 } __attribute__ ((gcc_struct)) __anon2;
1386 struct __ecereNameSpace__ecere__sys__OldList *  list;
1387 struct
1388 {
1389 struct __ecereNameSpace__ecere__sys__OldList * specifiers;
1390 struct Declarator * decl;
1391 } __attribute__ ((gcc_struct)) _classExp;
1392 struct
1393 {
1394 struct Identifier * id;
1395 } __attribute__ ((gcc_struct)) classData;
1396 struct
1397 {
1398 struct Expression * exp;
1399 struct __ecereNameSpace__ecere__sys__OldList * arguments;
1400 struct Location argLoc;
1401 } __attribute__ ((gcc_struct)) call;
1402 struct
1403 {
1404 struct Expression * exp;
1405 struct __ecereNameSpace__ecere__sys__OldList * index;
1406 } __attribute__ ((gcc_struct)) index;
1407 struct
1408 {
1409 struct Expression * exp;
1410 struct Identifier * member;
1411 int memberType;
1412 unsigned int thisPtr;
1413 } __attribute__ ((gcc_struct)) member;
1414 struct
1415 {
1416 int op;
1417 struct Expression * exp1;
1418 struct Expression * exp2;
1419 } __attribute__ ((gcc_struct)) op;
1420 struct TypeName * typeName;
1421 struct Specifier * _class;
1422 struct
1423 {
1424 struct TypeName * typeName;
1425 struct Expression * exp;
1426 } __attribute__ ((gcc_struct)) cast;
1427 struct
1428 {
1429 struct Expression * cond;
1430 struct __ecereNameSpace__ecere__sys__OldList * exp;
1431 struct Expression * elseExp;
1432 } __attribute__ ((gcc_struct)) cond;
1433 struct
1434 {
1435 struct TypeName * typeName;
1436 struct Expression * size;
1437 } __attribute__ ((gcc_struct)) _new;
1438 struct
1439 {
1440 struct TypeName * typeName;
1441 struct Expression * size;
1442 struct Expression * exp;
1443 } __attribute__ ((gcc_struct)) _renew;
1444 struct
1445 {
1446 char * table;
1447 struct Identifier * id;
1448 } __attribute__ ((gcc_struct)) db;
1449 struct
1450 {
1451 struct Expression * ds;
1452 struct Expression * name;
1453 } __attribute__ ((gcc_struct)) dbopen;
1454 struct
1455 {
1456 struct TypeName * typeName;
1457 struct Initializer * initializer;
1458 } __attribute__ ((gcc_struct)) initializer;
1459 struct
1460 {
1461 struct Expression * exp;
1462 struct TypeName * typeName;
1463 } __attribute__ ((gcc_struct)) vaArg;
1464 } __attribute__ ((gcc_struct)) __anon1;
1465 unsigned int debugValue;
1466 struct __ecereNameSpace__ecere__com__DataValue val;
1467 uint64 address;
1468 unsigned int hasAddress;
1469 struct Type * expType;
1470 struct Type * destType;
1471 unsigned int usage;
1472 int tempCount;
1473 unsigned int byReference;
1474 unsigned int isConstant;
1475 unsigned int addedThis;
1476 unsigned int needCast;
1477 unsigned int thisPtr;
1478 unsigned int opDestType;
1479 unsigned int needTemplateCast;
1480 } __attribute__ ((gcc_struct));
1481
1482 struct Instantiation
1483 {
1484 struct Instantiation * prev;
1485 struct Instantiation * next;
1486 struct Location loc;
1487 struct Specifier * _class;
1488 struct Expression * exp;
1489 struct __ecereNameSpace__ecere__sys__OldList *  members;
1490 struct Symbol * symbol;
1491 unsigned int fullSet;
1492 unsigned int isConstant;
1493 unsigned char *  data;
1494 struct Location nameLoc;
1495 struct Location insideLoc;
1496 unsigned int built;
1497 } __attribute__ ((gcc_struct));
1498
1499 struct TemplateArgument;
1500
1501 struct TemplateArgument
1502 {
1503 struct TemplateArgument * prev;
1504 struct TemplateArgument * next;
1505 struct Location loc;
1506 struct Identifier * name;
1507 int type;
1508 union
1509 {
1510 struct Expression * expression;
1511 struct Identifier * identifier;
1512 struct TemplateDatatype * templateDatatype;
1513 } __attribute__ ((gcc_struct)) __anon1;
1514 } __attribute__ ((gcc_struct));
1515
1516 struct TemplateParameter
1517 {
1518 struct TemplateParameter * prev;
1519 struct TemplateParameter * next;
1520 struct Location loc;
1521 int type;
1522 struct Identifier * identifier;
1523 union
1524 {
1525 struct TemplateDatatype * dataType;
1526 int memberType;
1527 } __attribute__ ((gcc_struct)) __anon1;
1528 struct TemplateArgument * defaultArgument;
1529 const char *  dataTypeString;
1530 struct Type * baseType;
1531 } __attribute__ ((gcc_struct));
1532
1533 struct Declaration;
1534
1535 struct Statement
1536 {
1537 struct Statement * prev;
1538 struct Statement * next;
1539 struct Location loc;
1540 int type;
1541 union
1542 {
1543 struct __ecereNameSpace__ecere__sys__OldList *  expressions;
1544 struct
1545 {
1546 struct Identifier * id;
1547 struct Statement * stmt;
1548 } __attribute__ ((gcc_struct)) labeled;
1549 struct
1550 {
1551 struct Expression * exp;
1552 struct Statement * stmt;
1553 } __attribute__ ((gcc_struct)) caseStmt;
1554 struct
1555 {
1556 struct __ecereNameSpace__ecere__sys__OldList * declarations;
1557 struct __ecereNameSpace__ecere__sys__OldList * statements;
1558 struct Context * context;
1559 unsigned int isSwitch;
1560 } __attribute__ ((gcc_struct)) compound;
1561 struct
1562 {
1563 struct __ecereNameSpace__ecere__sys__OldList * exp;
1564 struct Statement * stmt;
1565 struct Statement * elseStmt;
1566 } __attribute__ ((gcc_struct)) ifStmt;
1567 struct
1568 {
1569 struct __ecereNameSpace__ecere__sys__OldList * exp;
1570 struct Statement * stmt;
1571 } __attribute__ ((gcc_struct)) switchStmt;
1572 struct
1573 {
1574 struct __ecereNameSpace__ecere__sys__OldList * exp;
1575 struct Statement * stmt;
1576 } __attribute__ ((gcc_struct)) whileStmt;
1577 struct
1578 {
1579 struct __ecereNameSpace__ecere__sys__OldList * exp;
1580 struct Statement * stmt;
1581 } __attribute__ ((gcc_struct)) doWhile;
1582 struct
1583 {
1584 struct Statement * init;
1585 struct Statement * check;
1586 struct __ecereNameSpace__ecere__sys__OldList * increment;
1587 struct Statement * stmt;
1588 } __attribute__ ((gcc_struct)) forStmt;
1589 struct
1590 {
1591 struct Identifier * id;
1592 } __attribute__ ((gcc_struct)) gotoStmt;
1593 struct
1594 {
1595 struct Specifier * spec;
1596 char * statements;
1597 struct __ecereNameSpace__ecere__sys__OldList * inputFields;
1598 struct __ecereNameSpace__ecere__sys__OldList * outputFields;
1599 struct __ecereNameSpace__ecere__sys__OldList * clobberedFields;
1600 } __attribute__ ((gcc_struct)) asmStmt;
1601 struct
1602 {
1603 struct Expression * watcher;
1604 struct Expression * object;
1605 struct __ecereNameSpace__ecere__sys__OldList * watches;
1606 } __attribute__ ((gcc_struct)) _watch;
1607 struct
1608 {
1609 struct Identifier * id;
1610 struct __ecereNameSpace__ecere__sys__OldList * exp;
1611 struct __ecereNameSpace__ecere__sys__OldList * filter;
1612 struct Statement * stmt;
1613 } __attribute__ ((gcc_struct)) forEachStmt;
1614 struct Declaration * decl;
1615 } __attribute__ ((gcc_struct)) __anon1;
1616 } __attribute__ ((gcc_struct));
1617
1618 struct Declaration
1619 {
1620 struct Declaration * prev;
1621 struct Declaration * next;
1622 struct Location loc;
1623 int type;
1624 union
1625 {
1626 struct
1627 {
1628 struct __ecereNameSpace__ecere__sys__OldList *  specifiers;
1629 struct __ecereNameSpace__ecere__sys__OldList *  declarators;
1630 } __attribute__ ((gcc_struct)) __anon1;
1631 struct Instantiation * inst;
1632 struct
1633 {
1634 struct Identifier * id;
1635 struct Expression * exp;
1636 } __attribute__ ((gcc_struct)) __anon2;
1637 } __attribute__ ((gcc_struct)) __anon1;
1638 struct Specifier * extStorage;
1639 struct Symbol * symbol;
1640 int declMode;
1641 } __attribute__ ((gcc_struct));
1642
1643 struct External
1644 {
1645 struct External * prev;
1646 struct External * next;
1647 struct Location loc;
1648 int type;
1649 struct Symbol * symbol;
1650 union
1651 {
1652 struct FunctionDefinition * function;
1653 struct ClassDefinition * _class;
1654 struct Declaration * declaration;
1655 char *  importString;
1656 struct Identifier * id;
1657 struct DBTableDef * table;
1658 } __attribute__ ((gcc_struct)) __anon1;
1659 int importType;
1660 struct External * fwdDecl;
1661 struct __ecereNameSpace__ecere__com__Instance * outgoing;
1662 struct __ecereNameSpace__ecere__com__Instance * incoming;
1663 int nonBreakableIncoming;
1664 } __attribute__ ((gcc_struct));
1665
1666 struct PropertyDef;
1667
1668 struct PropertyDef
1669 {
1670 struct PropertyDef * prev;
1671 struct PropertyDef * next;
1672 struct Location loc;
1673 struct __ecereNameSpace__ecere__sys__OldList *  specifiers;
1674 struct Declarator * declarator;
1675 struct Identifier * id;
1676 struct Statement * getStmt;
1677 struct Statement * setStmt;
1678 struct Statement * issetStmt;
1679 struct Symbol * symbol;
1680 struct Expression * category;
1681 struct
1682 {
1683 unsigned int conversion : 1;
1684 unsigned int isWatchable : 1;
1685 unsigned int isDBProp : 1;
1686 } __attribute__ ((gcc_struct)) __anon1;
1687 } __attribute__ ((gcc_struct));
1688
1689 struct __ecereNameSpace__ecere__com__ClassTemplateParameter;
1690
1691 struct __ecereNameSpace__ecere__com__ClassTemplateParameter
1692 {
1693 struct __ecereNameSpace__ecere__com__ClassTemplateParameter * prev;
1694 struct __ecereNameSpace__ecere__com__ClassTemplateParameter * next;
1695 const char *  name;
1696 int type;
1697 union
1698 {
1699 const char *  dataTypeString;
1700 int memberType;
1701 } __attribute__ ((gcc_struct)) __anon1;
1702 struct __ecereNameSpace__ecere__com__ClassTemplateArgument defaultArg;
1703 void *  param;
1704 } __attribute__ ((gcc_struct));
1705
1706 void FreeDeclarator(struct Declarator *  decl);
1707
1708 void FreeIdentifier(struct Identifier *  id);
1709
1710 void FreeEnumerator(struct Enumerator * enumerator)
1711 {
1712 if(enumerator->id)
1713 FreeIdentifier(enumerator->id);
1714 if(enumerator->exp)
1715 FreeExpression(enumerator->exp);
1716 ((enumerator ? (__ecereClass_Enumerator->Destructor ? __ecereClass_Enumerator->Destructor((void *)enumerator) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(enumerator)) : 0), enumerator = 0);
1717 }
1718
1719 void FreeAsmField(struct AsmField * field)
1720 {
1721 if(field->expression)
1722 FreeExpression(field->expression);
1723 if(field->symbolic)
1724 FreeIdentifier(field->symbolic);
1725 (__ecereNameSpace__ecere__com__eSystem_Delete(field->command), field->command = 0);
1726 ((field ? (__ecereClass_AsmField->Destructor ? __ecereClass_AsmField->Destructor((void *)field) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(field)) : 0), field = 0);
1727 }
1728
1729 void FreeInitializer(struct Initializer * initializer)
1730 {
1731 switch(initializer->type)
1732 {
1733 case 1:
1734 FreeList(initializer->__anon1.list, (void *)(FreeInitializer));
1735 break;
1736 case 0:
1737 if(initializer->__anon1.exp)
1738 FreeExpression(initializer->__anon1.exp);
1739 break;
1740 }
1741 if(initializer->id)
1742 FreeIdentifier(initializer->id);
1743 ((initializer ? (__ecereClass_Initializer->Destructor ? __ecereClass_Initializer->Destructor((void *)initializer) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(initializer)) : 0), initializer = 0);
1744 }
1745
1746 void FreeDBIndexItem(struct DBIndexItem * item)
1747 {
1748 if(item->id)
1749 FreeIdentifier(item->id);
1750 ((item ? (__ecereClass_DBIndexItem->Destructor ? __ecereClass_DBIndexItem->Destructor((void *)item) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(item)) : 0), item = 0);
1751 }
1752
1753 void FreeInitDeclarator(struct InitDeclarator * decl)
1754 {
1755 if(decl->declarator)
1756 FreeDeclarator(decl->declarator);
1757 if(decl->initializer)
1758 FreeInitializer(decl->initializer);
1759 ((decl ? (__ecereClass_InitDeclarator->Destructor ? __ecereClass_InitDeclarator->Destructor((void *)decl) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(decl)) : 0), decl = 0);
1760 }
1761
1762 void FreeMemberInit(struct MemberInit * init)
1763 {
1764 if(init->initializer)
1765 FreeInitializer(init->initializer);
1766 if(init->identifiers)
1767 FreeList(init->identifiers, (void *)(FreeIdentifier));
1768 ((init ? (__ecereClass_MemberInit->Destructor ? __ecereClass_MemberInit->Destructor((void *)init) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(init)) : 0), init = 0);
1769 }
1770
1771 void FreeSpecifierContents(struct Specifier *  spec);
1772
1773 void FreeSpecifier(struct Specifier * spec)
1774 {
1775 if(spec)
1776 {
1777 FreeSpecifierContents(spec);
1778 ((spec ? (__ecereClass_Specifier->Destructor ? __ecereClass_Specifier->Destructor((void *)spec) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(spec)) : 0), spec = 0);
1779 }
1780 }
1781
1782 void FreeTemplateDataType(struct TemplateDatatype * type)
1783 {
1784 if(type->decl)
1785 FreeDeclarator(type->decl);
1786 if(type->specifiers)
1787 FreeList(type->specifiers, (void *)(FreeSpecifier));
1788 ((type ? (__ecereClass_TemplateDatatype->Destructor ? __ecereClass_TemplateDatatype->Destructor((void *)type) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(type)) : 0), type = 0);
1789 }
1790
1791 void FreeIdentifier(struct Identifier * id)
1792 {
1793 if(id->badID)
1794 FreeIdentifier(id->badID);
1795 (__ecereNameSpace__ecere__com__eSystem_Delete(id->string), id->string = 0);
1796 if(id->_class)
1797 FreeSpecifier(id->_class);
1798 ((id ? (__ecereClass_Identifier->Destructor ? __ecereClass_Identifier->Destructor((void *)id) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(id)) : 0), id = 0);
1799 }
1800
1801 void FreeTypeName(struct TypeName * typeName)
1802 {
1803 if(typeName->qualifiers)
1804 FreeList(typeName->qualifiers, (void *)(FreeSpecifier));
1805 if(typeName->declarator)
1806 FreeDeclarator(typeName->declarator);
1807 if(typeName->bitCount)
1808 FreeExpression(typeName->bitCount);
1809 ((typeName ? (__ecereClass_TypeName->Destructor ? __ecereClass_TypeName->Destructor((void *)typeName) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(typeName)) : 0), typeName = 0);
1810 }
1811
1812 void FreePointer(struct Pointer * pointer)
1813 {
1814 if(pointer->pointer)
1815 FreePointer(pointer->pointer);
1816 if(pointer->qualifiers)
1817 FreeList(pointer->qualifiers, (void *)(FreeSpecifier));
1818 ((pointer ? (__ecereClass_Pointer->Destructor ? __ecereClass_Pointer->Destructor((void *)pointer) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(pointer)) : 0), pointer = 0);
1819 }
1820
1821 void FreeTemplateArgument(struct TemplateArgument * arg)
1822 {
1823 switch(arg->type)
1824 {
1825 case 2:
1826 if(arg->__anon1.expression)
1827 FreeExpression(arg->__anon1.expression);
1828 break;
1829 case 1:
1830 if(arg->__anon1.identifier)
1831 FreeIdentifier(arg->__anon1.identifier);
1832 break;
1833 case 0:
1834 if(arg->__anon1.templateDatatype)
1835 FreeTemplateDataType(arg->__anon1.templateDatatype);
1836 break;
1837 }
1838 if(arg->name)
1839 FreeIdentifier(arg->name);
1840 ((arg ? (__ecereClass_TemplateArgument->Destructor ? __ecereClass_TemplateArgument->Destructor((void *)arg) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(arg)) : 0), arg = 0);
1841 }
1842
1843 void FreeDBTableEntry(struct DBTableEntry * entry)
1844 {
1845 if(entry->id)
1846 FreeIdentifier(entry->id);
1847 switch(entry->type)
1848 {
1849 case 0:
1850 if(entry->__anon1.__anon1.dataType)
1851 FreeTypeName(entry->__anon1.__anon1.dataType);
1852 if(entry->__anon1.__anon1.name)
1853 (__ecereNameSpace__ecere__com__eSystem_Delete(entry->__anon1.__anon1.name), entry->__anon1.__anon1.name = 0);
1854 break;
1855 case 1:
1856 if(entry->__anon1.items)
1857 FreeList(entry->__anon1.items, (void *)(FreeDBIndexItem));
1858 break;
1859 }
1860 ((entry ? (__ecereClass_DBTableEntry->Destructor ? __ecereClass_DBTableEntry->Destructor((void *)entry) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(entry)) : 0), entry = 0);
1861 }
1862
1863 void FreeDeclarator(struct Declarator * decl)
1864 {
1865 if(decl->declarator)
1866 FreeDeclarator(decl->declarator);
1867 switch(decl->type)
1868 {
1869 case 0:
1870 if(decl->__anon1.structDecl.exp)
1871 FreeExpression(decl->__anon1.structDecl.exp);
1872 if(decl->__anon1.structDecl.posExp)
1873 FreeExpression(decl->__anon1.structDecl.posExp);
1874 if(decl->__anon1.structDecl.attrib)
1875 FreeAttrib(decl->__anon1.structDecl.attrib);
1876 break;
1877 case 1:
1878 FreeIdentifier(decl->__anon1.identifier);
1879 break;
1880 case 2:
1881 break;
1882 case 3:
1883 if(decl->__anon1.array.exp)
1884 FreeExpression(decl->__anon1.array.exp);
1885 if(decl->__anon1.array.enumClass)
1886 FreeSpecifier(decl->__anon1.array.enumClass);
1887 break;
1888 case 4:
1889 FreeList(decl->__anon1.function.parameters, (void *)(FreeTypeName));
1890 break;
1891 case 5:
1892 if(decl->__anon1.pointer.pointer)
1893 FreePointer(decl->__anon1.pointer.pointer);
1894 break;
1895 case 6:
1896 case 7:
1897 if(decl->__anon1.extended.extended)
1898 FreeExtDecl(decl->__anon1.extended.extended);
1899 break;
1900 }
1901 ((decl ? (__ecereClass_Declarator->Destructor ? __ecereClass_Declarator->Destructor((void *)decl) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(decl)) : 0), decl = 0);
1902 }
1903
1904 void FreeTemplateParameter(struct TemplateParameter * param)
1905 {
1906 if(param->identifier)
1907 {
1908 FreeIdentifier(param->identifier);
1909 }
1910 if(param->type == 0 || param->type == 2)
1911 {
1912 if(param->__anon1.dataType)
1913 FreeTemplateDataType(param->__anon1.dataType);
1914 }
1915 if(param->defaultArgument)
1916 FreeTemplateArgument(param->defaultArgument);
1917 if(param->baseType)
1918 FreeType(param->baseType);
1919 ((param ? (__ecereClass_TemplateParameter->Destructor ? __ecereClass_TemplateParameter->Destructor((void *)param) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(param)) : 0), param = 0);
1920 }
1921
1922 void FreeDBTable(struct DBTableDef * table)
1923 {
1924 if(table->definitions)
1925 FreeList(table->definitions, (void *)(FreeDBTableEntry));
1926 if(table->name)
1927 (__ecereNameSpace__ecere__com__eSystem_Delete(table->name), table->name = 0);
1928 ((table ? (__ecereClass_DBTableDef->Destructor ? __ecereClass_DBTableDef->Destructor((void *)table) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(table)) : 0), table = 0);
1929 }
1930
1931 void FreeSymbol(struct Symbol * symbol)
1932 {
1933 struct __ecereNameSpace__ecere__sys__OldLink * link;
1934
1935 if(symbol->propCategory)
1936 FreeExpression(symbol->propCategory);
1937 FreeType(symbol->type);
1938 while((link = symbol->templatedClasses.first))
1939 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Delete(&symbol->templatedClasses, link);
1940 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->string), symbol->string = 0);
1941 if(symbol->templateParams)
1942 FreeList(symbol->templateParams, (void *)(FreeTemplateParameter));
1943 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->constructorName), symbol->constructorName = 0);
1944 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->structName), symbol->structName = 0);
1945 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->className), symbol->className = 0);
1946 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->destructorName), symbol->destructorName = 0);
1947 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->shortName), symbol->shortName = 0);
1948 if(symbol->ctx)
1949 {
1950 FreeContext(symbol->ctx);
1951 ((symbol->ctx ? (__ecereClass_Context->Destructor ? __ecereClass_Context->Destructor((void *)symbol->ctx) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(symbol->ctx)) : 0), symbol->ctx = 0);
1952 }
1953 ((symbol ? (__ecereClass_Symbol->Destructor ? __ecereClass_Symbol->Destructor((void *)symbol) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(symbol)) : 0), symbol = 0);
1954 }
1955
1956 void FreeModuleData(struct __ecereNameSpace__ecere__com__Instance * module)
1957 {
1958 struct __ecereNameSpace__ecere__com__Class * _class;
1959 struct __ecereNameSpace__ecere__com__GlobalFunction * function;
1960
1961 for(_class = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->classes.first; _class; _class = _class->next)
1962 {
1963 struct __ecereNameSpace__ecere__com__DataMember * dataMember;
1964 struct __ecereNameSpace__ecere__com__Method * method;
1965 struct __ecereNameSpace__ecere__com__ClassTemplateParameter * param;
1966
1967 if(_class->dataType)
1968 {
1969 FreeType(_class->dataType);
1970 _class->dataType = (((void *)0));
1971 }
1972 for(dataMember = _class->membersAndProperties.first; dataMember; dataMember = dataMember->next)
1973 {
1974 if(dataMember->isProperty)
1975 {
1976 struct __ecereNameSpace__ecere__com__Property * prop = (struct __ecereNameSpace__ecere__com__Property *)dataMember;
1977
1978 if(prop->symbol)
1979 {
1980 FreeSymbol(prop->symbol);
1981 }
1982 }
1983 else
1984 {
1985 if(dataMember->type == 2 || dataMember->type == 1)
1986 FreeDataMember(dataMember);
1987 }
1988 if(dataMember->dataType)
1989 {
1990 FreeType(dataMember->dataType);
1991 dataMember->dataType = (((void *)0));
1992 }
1993 }
1994 for(dataMember = _class->conversions.first; dataMember; dataMember = dataMember->next)
1995 {
1996 struct __ecereNameSpace__ecere__com__Property * prop = (struct __ecereNameSpace__ecere__com__Property *)dataMember;
1997
1998 if(prop->symbol)
1999 {
2000 FreeSymbol(prop->symbol);
2001 }
2002 if(prop->dataType)
2003 {
2004 FreeType(prop->dataType);
2005 prop->dataType = (((void *)0));
2006 }
2007 }
2008 if(__ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_first(&_class->classProperties))
2009 FreeClassProperties((struct __ecereNameSpace__ecere__com__ClassProperty *)__ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_first(&_class->classProperties));
2010 for(method = (struct __ecereNameSpace__ecere__com__Method *)__ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_first(&_class->methods); method; method = (struct __ecereNameSpace__ecere__com__Method *)__ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_next(((struct __ecereNameSpace__ecere__sys__BTNode *)method)))
2011 {
2012 if(method->dataType)
2013 {
2014 FreeType(method->dataType);
2015 method->dataType = (((void *)0));
2016 }
2017 if(method->symbol)
2018 {
2019 FreeSymbol(method->symbol);
2020 }
2021 }
2022 for(param = _class->templateParams.first; param; param = param->next)
2023 {
2024 if(param->param)
2025 {
2026 FreeTemplateParameter(param->param);
2027 param->param = (((void *)0));
2028 }
2029 }
2030 }
2031 for(function = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->functions.first; function; function = function->next)
2032 {
2033 if(function->dataType)
2034 FreeType(function->dataType);
2035 if(function->symbol)
2036 FreeSymbol(function->symbol);
2037 }
2038 if(!inCompiler)
2039 {
2040 struct __ecereNameSpace__ecere__com__MapIterator mapIt = (mapIt.container = (void *)0, mapIt.pointer = (void *)0, __ecereProp___ecereNameSpace__ecere__com__MapIterator_Set_map(&mapIt, loadedModules), mapIt);
2041
2042 while(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Next((void *)(&mapIt)))
2043 {
2044 struct __ecereNameSpace__ecere__com__Instance * list = ((struct __ecereNameSpace__ecere__com__Instance *)(uintptr_t)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data((void *)(&mapIt)));
2045 struct __ecereNameSpace__ecere__com__Iterator it =
2046 {
2047 list, 0
2048 };
2049 unsigned int found = 0;
2050
2051 while(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Next(&it))
2052 {
2053 if(((struct __ecereNameSpace__ecere__com__Instance *)(uintptr_t)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data(&it)) == module)
2054 {
2055 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2056 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = list;
2057
2058 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__List->_vTbl;
2059 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(list, it.pointer);
2060 found = 1;
2061 break;
2062 }
2063 }
2064 if(found)
2065 {
2066 if(((struct __ecereNameSpace__ecere__com__LinkList *)(((char *)list + 0 + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->count == 1)
2067 {
2068 struct __ecereNameSpace__ecere__com__Instance * mod = (((struct __ecereNameSpace__ecere__com__Instance *)((uintptr_t)(__extension__ ({
2069 struct __ecereNameSpace__ecere__com__Iterator __internalIterator =
2070 {
2071 list, 0
2072 };
2073
2074 __ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(0)), 0);
2075 ((struct __ecereNameSpace__ecere__com__Instance *)(uintptr_t)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data(&__internalIterator));
2076 })))));
2077
2078 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2079 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = list;
2080
2081 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__List->_vTbl;
2082 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(list, ((struct __ecereNameSpace__ecere__com__IteratorPointer * (*)(struct __ecereNameSpace__ecere__com__Instance *))__extension__ ({
2083 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = list;
2084
2085 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__List->_vTbl;
2086 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_GetFirst])(list));
2087 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2088 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = loadedModules;
2089
2090 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__Map->_vTbl;
2091 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(loadedModules, mapIt.pointer);
2092 (__ecereNameSpace__ecere__com__eInstance_DecRef(list), list = 0);
2093 __ecereNameSpace__ecere__com__eModule_Unload(((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application, mod);
2094 }
2095 break;
2096 }
2097 }
2098 }
2099 }
2100
2101 void FreeTypeData(struct __ecereNameSpace__ecere__com__Instance * privateModule)
2102 {
2103 struct __ecereNameSpace__ecere__com__Instance * m;
2104
2105 for(m = ((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)privateModule + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application + sizeof(struct __ecereNameSpace__ecere__com__Module) + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->allModules.first; m; m = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)m + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->next)
2106 {
2107 FreeModuleData(m);
2108 }
2109 FreeModuleData(privateModule);
2110 }
2111
2112 struct ClassDef;
2113
2114 struct ClassDef
2115 {
2116 struct ClassDef * prev;
2117 struct ClassDef * next;
2118 struct Location loc;
2119 int type;
2120 union
2121 {
2122 struct Declaration * decl;
2123 struct ClassFunction * function;
2124 struct __ecereNameSpace__ecere__sys__OldList *  defProperties;
2125 struct PropertyDef * propertyDef;
2126 struct PropertyWatch * propertyWatch;
2127 char *  designer;
2128 struct Identifier * defaultProperty;
2129 struct
2130 {
2131 struct Identifier * id;
2132 struct Initializer * initializer;
2133 } __attribute__ ((gcc_struct)) __anon1;
2134 } __attribute__ ((gcc_struct)) __anon1;
2135 int memberAccess;
2136 void *  object;
2137 } __attribute__ ((gcc_struct));
2138
2139 void FreeStatement(struct Statement *  stmt);
2140
2141 void FreePropertyWatch(struct PropertyWatch * watcher)
2142 {
2143 if(watcher->properties)
2144 FreeList(watcher->properties, (void *)(FreeIdentifier));
2145 if(watcher->compound)
2146 FreeStatement(watcher->compound);
2147 ((watcher ? (__ecereClass_PropertyWatch->Destructor ? __ecereClass_PropertyWatch->Destructor((void *)watcher) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(watcher)) : 0), watcher = 0);
2148 }
2149
2150 void FreeProperty(struct PropertyDef * def)
2151 {
2152 if(def->specifiers)
2153 FreeList(def->specifiers, (void *)(FreeSpecifier));
2154 if(def->declarator)
2155 FreeDeclarator(def->declarator);
2156 if(def->id)
2157 FreeIdentifier(def->id);
2158 if(def->getStmt)
2159 FreeStatement(def->getStmt);
2160 if(def->setStmt)
2161 FreeStatement(def->setStmt);
2162 if(def->issetStmt)
2163 FreeStatement(def->issetStmt);
2164 if(def->category)
2165 FreeExpression(def->category);
2166 if(def->symbol)
2167 {
2168 }
2169 ((def ? (__ecereClass_PropertyDef->Destructor ? __ecereClass_PropertyDef->Destructor((void *)def) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(def)) : 0), def = 0);
2170 }
2171
2172 void FreeClassFunction(struct ClassFunction *  func);
2173
2174 void FreeMembersInit(struct MembersInit * init)
2175 {
2176 if(init->type == 0 && init->__anon1.dataMembers)
2177 FreeList(init->__anon1.dataMembers, (void *)(FreeMemberInit));
2178 if(init->type == 1 && init->__anon1.function)
2179 {
2180 FreeClassFunction(init->__anon1.function);
2181 }
2182 ((init ? (__ecereClass_MembersInit->Destructor ? __ecereClass_MembersInit->Destructor((void *)init) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(init)) : 0), init = 0);
2183 }
2184
2185 void FreeInstance(struct Instantiation * inst)
2186 {
2187 if(inst->members)
2188 {
2189 FreeList(inst->members, (void *)(FreeMembersInit));
2190 }
2191 if(inst->exp)
2192 FreeExpression(inst->exp);
2193 if(inst->data)
2194 {
2195 struct Symbol * classSym = FindClass(inst->_class->__anon1.__anon1.name);
2196 struct __ecereNameSpace__ecere__com__Class * _class = classSym ? classSym->__anon1.registered : (((void *)0));
2197
2198 if(_class)
2199 {
2200 if(_class->type == 0)
2201 {
2202 struct __ecereNameSpace__ecere__com__Instance * instance = (struct __ecereNameSpace__ecere__com__Instance *)inst->data;
2203
2204 (__ecereNameSpace__ecere__com__eInstance_DecRef(instance), instance = 0);
2205 }
2206 else if(_class->type == 5)
2207 {
2208 if(_class->Destructor)
2209 _class->Destructor((struct __ecereNameSpace__ecere__com__Instance *)inst->data);
2210 (__ecereNameSpace__ecere__com__eSystem_Delete(inst->data), inst->data = 0);
2211 }
2212 else if(_class->type == 1)
2213 {
2214 (__ecereNameSpace__ecere__com__eSystem_Delete(inst->data), inst->data = 0);
2215 }
2216 }
2217 else
2218 {
2219 struct __ecereNameSpace__ecere__com__Instance * instance = (struct __ecereNameSpace__ecere__com__Instance *)inst->data;
2220
2221 (__ecereNameSpace__ecere__com__eInstance_DecRef(instance), instance = 0);
2222 }
2223 }
2224 if(inst->_class)
2225 FreeSpecifier(inst->_class);
2226 ((inst ? (__ecereClass_Instantiation->Destructor ? __ecereClass_Instantiation->Destructor((void *)inst) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(inst)) : 0), inst = 0);
2227 }
2228
2229 static void _FreeExpression(struct Expression * exp, unsigned int freePointer)
2230 {
2231 switch(exp->type)
2232 {
2233 case 13:
2234 case 26:
2235 FreeExpression(exp->__anon1._new.size);
2236 FreeTypeName(exp->__anon1._new.typeName);
2237 break;
2238 case 14:
2239 case 27:
2240 FreeExpression(exp->__anon1._renew.exp);
2241 FreeExpression(exp->__anon1._renew.size);
2242 FreeTypeName(exp->__anon1._renew.typeName);
2243 break;
2244 case 2:
2245 (__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.__anon1.constant), exp->__anon1.__anon1.constant = 0);
2246 break;
2247 case 0:
2248 if(exp->__anon1.__anon1.identifier)
2249 FreeIdentifier(exp->__anon1.__anon1.identifier);
2250 break;
2251 case 1:
2252 if(exp->__anon1.instance)
2253 {
2254 FreeInstance(exp->__anon1.instance);
2255 exp->__anon1.instance = (((void *)0));
2256 }
2257 break;
2258 case 3:
2259 (__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.__anon2.string), exp->__anon1.__anon2.string = 0);
2260 break;
2261 case 4:
2262 if(exp->__anon1.op.exp1)
2263 FreeExpression(exp->__anon1.op.exp1);
2264 if(exp->__anon1.op.exp2)
2265 FreeExpression(exp->__anon1.op.exp2);
2266 break;
2267 case 5:
2268 {
2269 FreeList(exp->__anon1.list, (void *)(FreeExpression));
2270 break;
2271 }
2272 case 6:
2273 {
2274 if(exp->__anon1.index.exp)
2275 FreeExpression(exp->__anon1.index.exp);
2276 if(exp->__anon1.index.index)
2277 FreeList(exp->__anon1.index.index, (void *)(FreeExpression));
2278 break;
2279 }
2280 case 7:
2281 {
2282 if(exp->__anon1.call.exp)
2283 FreeExpression(exp->__anon1.call.exp);
2284 if(exp->__anon1.call.arguments)
2285 FreeList(exp->__anon1.call.arguments, (void *)(FreeExpression));
2286 break;
2287 }
2288 case 8:
2289 case 9:
2290 if(exp->__anon1.member.exp)
2291 FreeExpression(exp->__anon1.member.exp);
2292 if(exp->__anon1.member.member)
2293 FreeIdentifier(exp->__anon1.member.member);
2294 break;
2295 case 10:
2296 FreeTypeName(exp->__anon1._new.typeName);
2297 break;
2298 case 36:
2299 FreeTypeName(exp->__anon1._new.typeName);
2300 break;
2301 case 11:
2302 if(exp->__anon1.cast.exp)
2303 FreeExpression(exp->__anon1.cast.exp);
2304 FreeTypeName(exp->__anon1.cast.typeName);
2305 break;
2306 case 12:
2307 {
2308 if(exp->__anon1.cond.cond)
2309 FreeExpression(exp->__anon1.cond.cond);
2310 if(exp->__anon1.cond.exp)
2311 FreeList(exp->__anon1.cond.exp, (void *)(FreeExpression));
2312 if(exp->__anon1.cond.elseExp)
2313 FreeExpression(exp->__anon1.cond.elseExp);
2314 break;
2315 }
2316 case 23:
2317 {
2318 if(exp->__anon1.compound)
2319 FreeStatement(exp->__anon1.compound);
2320 break;
2321 }
2322 case 32:
2323 {
2324 if(exp->__anon1.list)
2325 FreeList(exp->__anon1.list, (void *)(FreeExpression));
2326 break;
2327 }
2328 case 33:
2329 {
2330 if(exp->__anon1.initializer.typeName)
2331 FreeTypeName(exp->__anon1.initializer.typeName);
2332 if(exp->__anon1.initializer.initializer)
2333 FreeInitializer(exp->__anon1.initializer.initializer);
2334 break;
2335 }
2336 case 16:
2337 break;
2338 case 24:
2339 if(exp->__anon1._classExp.specifiers)
2340 FreeList(exp->__anon1._classExp.specifiers, (void *)(FreeSpecifier));
2341 if(exp->__anon1._classExp.decl)
2342 FreeDeclarator(exp->__anon1._classExp.decl);
2343 break;
2344 case 29:
2345 case 31:
2346 case 30:
2347 if(exp->__anon1.db.id)
2348 FreeIdentifier(exp->__anon1.db.id);
2349 (__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.db.table), exp->__anon1.db.table = 0);
2350 break;
2351 case 28:
2352 if(exp->__anon1.dbopen.ds)
2353 FreeExpression(exp->__anon1.dbopen.ds);
2354 if(exp->__anon1.dbopen.name)
2355 FreeExpression(exp->__anon1.dbopen.name);
2356 break;
2357 case 34:
2358 if(exp->__anon1.vaArg.exp)
2359 FreeExpression(exp->__anon1.vaArg.exp);
2360 if(exp->__anon1.vaArg.typeName)
2361 FreeTypeName(exp->__anon1.vaArg.typeName);
2362 break;
2363 case 35:
2364 if(exp->__anon1.list)
2365 FreeList(exp->__anon1.list, (void *)(FreeExpression));
2366 break;
2367 case 15:
2368 if(exp->__anon1._class)
2369 FreeSpecifier(exp->__anon1._class);
2370 break;
2371 case 25:
2372 if(exp->__anon1.classData.id)
2373 FreeIdentifier(exp->__anon1.classData.id);
2374 break;
2375 case 18:
2376 if(exp->__anon1.__anon1.identifier)
2377 FreeIdentifier(exp->__anon1.__anon1.identifier);
2378 break;
2379 case 20:
2380 (__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.__anon1.constant), exp->__anon1.__anon1.constant = 0);
2381 break;
2382 case 37:
2383 case 19:
2384 if(exp->__anon1.member.exp)
2385 FreeExpression(exp->__anon1.member.exp);
2386 if(exp->__anon1.member.member)
2387 FreeIdentifier(exp->__anon1.member.member);
2388 break;
2389 case 38:
2390 if(exp->__anon1.call.exp)
2391 FreeExpression(exp->__anon1.call.exp);
2392 if(exp->__anon1.call.arguments)
2393 FreeList(exp->__anon1.call.arguments, (void *)(FreeExpression));
2394 break;
2395 case 17:
2396 case 21:
2397 case 22:
2398 break;
2399 }
2400 if(freePointer)
2401 {
2402 if(exp->expType)
2403 FreeType(exp->expType);
2404 if(exp->destType)
2405 FreeType(exp->destType);
2406 ((exp ? (__ecereClass_Expression->Destructor ? __ecereClass_Expression->Destructor((void *)exp) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(exp)) : 0), exp = 0);
2407 }
2408 }
2409
2410 void FreeDeclaration(struct Declaration * decl)
2411 {
2412 if(decl->symbol && !decl->symbol->type)
2413 {
2414 }
2415 switch(decl->type)
2416 {
2417 case 0:
2418 {
2419 if(decl->__anon1.__anon1.specifiers)
2420 FreeList(decl->__anon1.__anon1.specifiers, (void *)(FreeSpecifier));
2421 if(decl->__anon1.__anon1.declarators)
2422 FreeList(decl->__anon1.__anon1.declarators, (void *)(FreeDeclarator));
2423 if(decl->extStorage)
2424 FreeSpecifier(decl->extStorage);
2425 break;
2426 }
2427 case 1:
2428 {
2429 if(decl->__anon1.__anon1.specifiers)
2430 FreeList(decl->__anon1.__anon1.specifiers, (void *)(FreeSpecifier));
2431 if(decl->__anon1.__anon1.declarators)
2432 FreeList(decl->__anon1.__anon1.declarators, (void *)(FreeInitDeclarator));
2433 break;
2434 }
2435 case 2:
2436 if(decl->__anon1.inst)
2437 FreeInstance(decl->__anon1.inst);
2438 break;
2439 case 3:
2440 {
2441 if(decl->__anon1.__anon2.exp)
2442 FreeExpression(decl->__anon1.__anon2.exp);
2443 if(decl->__anon1.__anon2.id)
2444 FreeIdentifier(decl->__anon1.__anon2.id);
2445 break;
2446 }
2447 }
2448 ((decl ? (__ecereClass_Declaration->Destructor ? __ecereClass_Declaration->Destructor((void *)decl) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(decl)) : 0), decl = 0);
2449 }
2450
2451 void FreeStatement(struct Statement * stmt)
2452 {
2453 switch(stmt->type)
2454 {
2455 case 13:
2456 {
2457 if(stmt->__anon1.asmStmt.spec)
2458 FreeSpecifier(stmt->__anon1.asmStmt.spec);
2459 if(stmt->__anon1.asmStmt.inputFields)
2460 FreeList(stmt->__anon1.asmStmt.inputFields, (void *)(FreeAsmField));
2461 if(stmt->__anon1.asmStmt.outputFields)
2462 FreeList(stmt->__anon1.asmStmt.outputFields, (void *)(FreeAsmField));
2463 if(stmt->__anon1.asmStmt.clobberedFields)
2464 FreeList(stmt->__anon1.asmStmt.clobberedFields, (void *)(FreeAsmField));
2465 (__ecereNameSpace__ecere__com__eSystem_Delete(stmt->__anon1.asmStmt.statements), stmt->__anon1.asmStmt.statements = 0);
2466 break;
2467 }
2468 case 0:
2469 if(stmt->__anon1.labeled.stmt)
2470 FreeStatement(stmt->__anon1.labeled.stmt);
2471 break;
2472 case 1:
2473 if(stmt->__anon1.caseStmt.exp)
2474 FreeExpression(stmt->__anon1.caseStmt.exp);
2475 if(stmt->__anon1.caseStmt.stmt)
2476 FreeStatement(stmt->__anon1.caseStmt.stmt);
2477 break;
2478 case 14:
2479 if(stmt->__anon1.decl)
2480 FreeDeclaration(stmt->__anon1.decl);
2481 break;
2482 case 2:
2483 {
2484 if(stmt->__anon1.compound.declarations)
2485 FreeList(stmt->__anon1.compound.declarations, (void *)(FreeDeclaration));
2486 if(stmt->__anon1.compound.statements)
2487 FreeList(stmt->__anon1.compound.statements, (void *)(FreeStatement));
2488 if(stmt->__anon1.compound.context)
2489 {
2490 FreeContext(stmt->__anon1.compound.context);
2491 ((stmt->__anon1.compound.context ? (__ecereClass_Context->Destructor ? __ecereClass_Context->Destructor((void *)stmt->__anon1.compound.context) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(stmt->__anon1.compound.context)) : 0), stmt->__anon1.compound.context = 0);
2492 }
2493 break;
2494 }
2495 case 3:
2496 {
2497 if(stmt->__anon1.expressions)
2498 FreeList(stmt->__anon1.expressions, (void *)(FreeExpression));
2499 break;
2500 }
2501 case 4:
2502 {
2503 if(stmt->__anon1.ifStmt.exp)
2504 FreeList(stmt->__anon1.ifStmt.exp, (void *)(FreeExpression));
2505 if(stmt->__anon1.ifStmt.stmt)
2506 FreeStatement(stmt->__anon1.ifStmt.stmt);
2507 if(stmt->__anon1.ifStmt.elseStmt)
2508 FreeStatement(stmt->__anon1.ifStmt.elseStmt);
2509 break;
2510 }
2511 case 5:
2512 {
2513 if(stmt->__anon1.switchStmt.exp)
2514 FreeList(stmt->__anon1.switchStmt.exp, (void *)(FreeExpression));
2515 if(stmt->__anon1.switchStmt.stmt)
2516 FreeStatement(stmt->__anon1.switchStmt.stmt);
2517 break;
2518 }
2519 case 6:
2520 {
2521 if(stmt->__anon1.whileStmt.exp)
2522 FreeList(stmt->__anon1.whileStmt.exp, (void *)(FreeExpression));
2523 if(stmt->__anon1.whileStmt.stmt)
2524 FreeStatement(stmt->__anon1.whileStmt.stmt);
2525 break;
2526 }
2527 case 7:
2528 {
2529 if(stmt->__anon1.doWhile.stmt)
2530 FreeStatement(stmt->__anon1.doWhile.stmt);
2531 if(stmt->__anon1.doWhile.exp)
2532 FreeList(stmt->__anon1.doWhile.exp, (void *)(FreeExpression));
2533 break;
2534 }
2535 case 8:
2536 {
2537 if(stmt->__anon1.forStmt.init)
2538 FreeStatement(stmt->__anon1.forStmt.init);
2539 if(stmt->__anon1.forStmt.check)
2540 FreeStatement(stmt->__anon1.forStmt.check);
2541 if(stmt->__anon1.forStmt.increment)
2542 FreeList(stmt->__anon1.forStmt.increment, (void *)(FreeExpression));
2543 if(stmt->__anon1.forStmt.stmt)
2544 FreeStatement(stmt->__anon1.forStmt.stmt);
2545 break;
2546 }
2547 case 18:
2548 {
2549 if(stmt->__anon1.forEachStmt.id)
2550 FreeIdentifier(stmt->__anon1.forEachStmt.id);
2551 if(stmt->__anon1.forEachStmt.exp)
2552 FreeList(stmt->__anon1.forEachStmt.exp, (void *)(FreeExpression));
2553 if(stmt->__anon1.forEachStmt.filter)
2554 FreeList(stmt->__anon1.forEachStmt.filter, (void *)(FreeExpression));
2555 if(stmt->__anon1.forEachStmt.stmt)
2556 FreeStatement(stmt->__anon1.forEachStmt.stmt);
2557 break;
2558 }
2559 case 9:
2560 break;
2561 case 10:
2562 break;
2563 case 11:
2564 break;
2565 case 12:
2566 if(stmt->__anon1.expressions)
2567 FreeList(stmt->__anon1.expressions, (void *)(FreeExpression));
2568 break;
2569 case 17:
2570 case 15:
2571 case 16:
2572 {
2573 if(stmt->__anon1._watch.watcher)
2574 FreeExpression(stmt->__anon1._watch.watcher);
2575 if(stmt->__anon1._watch.object)
2576 FreeExpression(stmt->__anon1._watch.object);
2577 if(stmt->__anon1._watch.watches)
2578 FreeList(stmt->__anon1._watch.watches, (stmt->type == 17) ? (void *)FreePropertyWatch : (void *)FreeIdentifier);
2579 break;
2580 }
2581 }
2582 ((stmt ? (__ecereClass_Statement->Destructor ? __ecereClass_Statement->Destructor((void *)stmt) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(stmt)) : 0), stmt = 0);
2583 }
2584
2585 void FreeFunction(struct FunctionDefinition * func)
2586 {
2587 if(func->body)
2588 FreeStatement(func->body);
2589 if(func->declarator)
2590 FreeDeclarator(func->declarator);
2591 if(func->specifiers)
2592 FreeList(func->specifiers, (void *)(FreeSpecifier));
2593 if(func->declarations)
2594 FreeList(func->declarations, (void *)(FreeDeclaration));
2595 if(func->type)
2596 FreeType(func->type);
2597 ((func ? (__ecereClass_FunctionDefinition->Destructor ? __ecereClass_FunctionDefinition->Destructor((void *)func) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(func)) : 0), func = 0);
2598 }
2599
2600 void FreeClassFunction(struct ClassFunction * func)
2601 {
2602 if(func->declarator && func->declarator->symbol)
2603 {
2604 }
2605 if(func->type)
2606 FreeType(func->type);
2607 if(func->body)
2608 FreeStatement(func->body);
2609 if(func->declarator)
2610 FreeDeclarator(func->declarator);
2611 if(func->specifiers)
2612 FreeList(func->specifiers, (void *)(FreeSpecifier));
2613 if(func->declarations)
2614 FreeList(func->declarations, (void *)(FreeDeclaration));
2615 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Free(&func->attached, (((void *)0)));
2616 ((func ? (__ecereClass_ClassFunction->Destructor ? __ecereClass_ClassFunction->Destructor((void *)func) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(func)) : 0), func = 0);
2617 }
2618
2619 void FreeClassDef(struct ClassDef * def)
2620 {
2621 switch(def->type)
2622 {
2623 case 2:
2624 if(def->__anon1.decl)
2625 FreeDeclaration(def->__anon1.decl);
2626 break;
2627 case 1:
2628 {
2629 FreeList(def->__anon1.defProperties, (void *)(FreeMemberInit));
2630 break;
2631 }
2632 case 0:
2633 if(def->__anon1.function)
2634 FreeClassFunction(def->__anon1.function);
2635 break;
2636 case 3:
2637 if(def->__anon1.propertyDef)
2638 FreeProperty(def->__anon1.propertyDef);
2639 break;
2640 case 10:
2641 if(def->__anon1.propertyDef)
2642 FreeProperty(def->__anon1.propertyDef);
2643 break;
2644 case 13:
2645 break;
2646 case 9:
2647 {
2648 if(def->__anon1.decl)
2649 FreeDeclaration(def->__anon1.decl);
2650 break;
2651 }
2652 case 5:
2653 {
2654 (__ecereNameSpace__ecere__com__eSystem_Delete(def->__anon1.designer), def->__anon1.designer = 0);
2655 break;
2656 }
2657 case 7:
2658 break;
2659 case 6:
2660 break;
2661 case 11:
2662 if(def->__anon1.__anon1.id)
2663 FreeIdentifier(def->__anon1.__anon1.id);
2664 if(def->__anon1.__anon1.initializer)
2665 FreeInitializer(def->__anon1.__anon1.initializer);
2666 break;
2667 case 8:
2668 {
2669 if(def->__anon1.defaultProperty)
2670 FreeIdentifier(def->__anon1.defaultProperty);
2671 break;
2672 }
2673 case 12:
2674 break;
2675 case 4:
2676 {
2677 if(def->__anon1.propertyWatch)
2678 FreePropertyWatch(def->__anon1.propertyWatch);
2679 break;
2680 }
2681 }
2682 ((def ? (__ecereClass_ClassDef->Destructor ? __ecereClass_ClassDef->Destructor((void *)def) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(def)) : 0), def = 0);
2683 }
2684
2685 void FreeSpecifierContents(struct Specifier * spec)
2686 {
2687 switch(spec->type)
2688 {
2689 case 1:
2690 (__ecereNameSpace__ecere__com__eSystem_Delete(spec->__anon1.__anon1.name), spec->__anon1.__anon1.name = 0);
2691 if(spec->__anon1.__anon1.templateArgs)
2692 {
2693 FreeList(spec->__anon1.__anon1.templateArgs, (void *)(FreeTemplateArgument));
2694 spec->__anon1.__anon1.templateArgs = (((void *)0));
2695 }
2696 break;
2697 case 5:
2698 if(spec->__anon1.__anon1.extDecl)
2699 {
2700 FreeExtDecl(spec->__anon1.__anon1.extDecl);
2701 spec->__anon1.__anon1.extDecl = (((void *)0));
2702 }
2703 break;
2704 case 2:
2705 if(spec->__anon1.__anon2.baseSpecs)
2706 {
2707 FreeList(spec->__anon1.__anon2.baseSpecs, (void *)(FreeSpecifier));
2708 spec->__anon1.__anon2.baseSpecs = (((void *)0));
2709 }
2710 if(spec->__anon1.__anon2.id)
2711 {
2712 FreeIdentifier(spec->__anon1.__anon2.id);
2713 spec->__anon1.__anon2.id = (((void *)0));
2714 }
2715 if(spec->__anon1.__anon2.list)
2716 {
2717 FreeList(spec->__anon1.__anon2.list, (void *)(FreeEnumerator));
2718 spec->__anon1.__anon2.list = (((void *)0));
2719 }
2720 if(spec->__anon1.__anon2.definitions)
2721 {
2722 FreeList(spec->__anon1.__anon2.definitions, (void *)(FreeClassDef));
2723 spec->__anon1.__anon2.definitions = (((void *)0));
2724 }
2725 break;
2726 case 3:
2727 case 4:
2728 if(spec->__anon1.__anon2.id)
2729 {
2730 FreeIdentifier(spec->__anon1.__anon2.id);
2731 spec->__anon1.__anon2.id = (((void *)0));
2732 }
2733 if(spec->__anon1.__anon2.definitions)
2734 {
2735 FreeList(spec->__anon1.__anon2.definitions, (void *)(FreeClassDef));
2736 spec->__anon1.__anon2.definitions = (((void *)0));
2737 }
2738 if(spec->__anon1.__anon2.baseSpecs)
2739 {
2740 FreeList(spec->__anon1.__anon2.baseSpecs, (void *)(FreeSpecifier));
2741 spec->__anon1.__anon2.baseSpecs = (((void *)0));
2742 }
2743 if(spec->__anon1.__anon2.extDeclStruct)
2744 {
2745 FreeExtDecl(spec->__anon1.__anon2.extDeclStruct);
2746 spec->__anon1.__anon2.extDeclStruct = (((void *)0));
2747 }
2748 if(spec->__anon1.__anon2.ctx)
2749 {
2750 FreeContext(spec->__anon1.__anon2.ctx);
2751 ((spec->__anon1.__anon2.ctx ? (__ecereClass_Context->Destructor ? __ecereClass_Context->Destructor((void *)spec->__anon1.__anon2.ctx) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(spec->__anon1.__anon2.ctx)) : 0), spec->__anon1.__anon2.ctx = 0);
2752 }
2753 break;
2754 case 7:
2755 if(spec->__anon1._class)
2756 {
2757 FreeSpecifier(spec->__anon1._class);
2758 spec->__anon1._class = (((void *)0));
2759 }
2760 break;
2761 }
2762 }
2763
2764 void FreeClass(struct ClassDefinition * _class)
2765 {
2766 if(_class->definitions)
2767 FreeList(_class->definitions, (void *)(FreeClassDef));
2768 if(_class->_class)
2769 FreeSpecifier(_class->_class);
2770 if(_class->baseSpecs)
2771 FreeList(_class->baseSpecs, (void *)(FreeSpecifier));
2772 ((_class ? (__ecereClass_ClassDefinition->Destructor ? __ecereClass_ClassDefinition->Destructor((void *)_class) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(_class)) : 0), _class = 0);
2773 }
2774
2775 void FreeExternal(struct External * external)
2776 {
2777 struct TopoEdge * e;
2778
2779 while((e = ((struct TopoEdge *)(uintptr_t)((struct __ecereNameSpace__ecere__com__LinkList *)(((char *)external->incoming + 0 + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->first)))
2780 {
2781 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2782 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = e->from->outgoing;
2783
2784 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__LinkList->_vTbl;
2785 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(e->from->outgoing, (struct __ecereNameSpace__ecere__com__IteratorPointer *)e);
2786 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2787 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = external->incoming;
2788
2789 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__LinkList->_vTbl;
2790 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(external->incoming, (struct __ecereNameSpace__ecere__com__IteratorPointer *)e);
2791 ((e ? (__ecereClass_TopoEdge->Destructor ? __ecereClass_TopoEdge->Destructor((void *)e) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(e)) : 0), e = 0);
2792 }
2793 while((e = ((struct TopoEdge *)(uintptr_t)((struct __ecereNameSpace__ecere__com__LinkList *)(((char *)external->outgoing + 0 + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->first)))
2794 {
2795 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2796 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = e->to->incoming;
2797
2798 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__LinkList->_vTbl;
2799 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(e->to->incoming, (struct __ecereNameSpace__ecere__com__IteratorPointer *)e);
2800 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2801 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = external->outgoing;
2802
2803 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__LinkList->_vTbl;
2804 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(external->outgoing, (struct __ecereNameSpace__ecere__com__IteratorPointer *)e);
2805 if(!e->breakable)
2806 e->to->nonBreakableIncoming--;
2807 ((e ? (__ecereClass_TopoEdge->Destructor ? __ecereClass_TopoEdge->Destructor((void *)e) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(e)) : 0), e = 0);
2808 }
2809 switch(external->type)
2810 {
2811 case 0:
2812 if(external->__anon1.function)
2813 FreeFunction(external->__anon1.function);
2814 break;
2815 case 1:
2816 if(external->__anon1.declaration)
2817 FreeDeclaration(external->__anon1.declaration);
2818 break;
2819 case 2:
2820 if(external->__anon1._class)
2821 FreeClass(external->__anon1._class);
2822 break;
2823 case 3:
2824 (__ecereNameSpace__ecere__com__eSystem_Delete(external->__anon1.importString), external->__anon1.importString = 0);
2825 break;
2826 case 4:
2827 FreeIdentifier(external->__anon1.id);
2828 break;
2829 case 5:
2830 if(external->__anon1.table)
2831 FreeDBTable(external->__anon1.table);
2832 break;
2833 }
2834 ((external ? (__ecereClass_External->Destructor ? __ecereClass_External->Destructor((void *)external) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(external)) : 0), external = 0);
2835 }
2836
2837 void __ecereRegisterModule_freeAst(struct __ecereNameSpace__ecere__com__Instance * module)
2838 {
2839 struct __ecereNameSpace__ecere__com__Class __attribute__((unused)) * class;
2840
2841 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeList", "void FreeList(ecere::sys::OldList list, void (* FreeFunction)(void *))", FreeList, module, 2);
2842 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeType", "void FreeType(Type type)", FreeType, module, 1);
2843 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeSymbol", "void FreeSymbol(Symbol symbol)", FreeSymbol, module, 2);
2844 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeMethodImport", "void FreeMethodImport(MethodImport imp)", FreeMethodImport, module, 2);
2845 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreePropertyImport", "void FreePropertyImport(MethodImport imp)", FreePropertyImport, module, 2);
2846 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeClassImport", "void FreeClassImport(ClassImport imp)", FreeClassImport, module, 2);
2847 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeFunctionImport", "void FreeFunctionImport(ClassImport imp)", FreeFunctionImport, module, 2);
2848 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeModuleImport", "void FreeModuleImport(ModuleImport imp)", FreeModuleImport, module, 1);
2849 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeModuleDefine", "void FreeModuleDefine(Definition def)", FreeModuleDefine, module, 1);
2850 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeExcludedSymbols", "void FreeExcludedSymbols(ecere::sys::OldList excludedSymbols)", FreeExcludedSymbols, module, 1);
2851 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTemplateArgument", "void FreeTemplateArgument(TemplateArgument arg)", FreeTemplateArgument, module, 1);
2852 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTemplateDataType", "void FreeTemplateDataType(TemplateDatatype type)", FreeTemplateDataType, module, 1);
2853 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTemplateParameter", "void FreeTemplateParameter(TemplateParameter param)", FreeTemplateParameter, module, 1);
2854 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTemplateType", "void FreeTemplateType(TemplatedType type)", FreeTemplateType, module, 1);
2855 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeContext", "void FreeContext(Context context)", FreeContext, module, 1);
2856 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeEnumerator", "void FreeEnumerator(Enumerator enumerator)", FreeEnumerator, module, 2);
2857 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeSpecifier", "void FreeSpecifier(Specifier spec)", FreeSpecifier, module, 2);
2858 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeSpecifierContents", "void FreeSpecifierContents(Specifier spec)", FreeSpecifierContents, module, 2);
2859 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeIdentifier", "void FreeIdentifier(Identifier id)", FreeIdentifier, module, 1);
2860 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTypeName", "void FreeTypeName(TypeName typeName)", FreeTypeName, module, 2);
2861 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeExpContents", "void FreeExpContents(Expression exp)", FreeExpContents, module, 1);
2862 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeExpression", "void FreeExpression(Expression exp)", FreeExpression, module, 1);
2863 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreePointer", "void FreePointer(Pointer pointer)", FreePointer, module, 2);
2864 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeAttrib", "void FreeAttrib(Attrib attr)", FreeAttrib, module, 2);
2865 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeAttribute", "void FreeAttribute(Attribute attr)", FreeAttribute, module, 2);
2866 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeExtDecl", "void FreeExtDecl(ExtDecl extDecl)", FreeExtDecl, module, 2);
2867 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeDeclarator", "void FreeDeclarator(Declarator decl)", FreeDeclarator, module, 2);
2868 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreePropertyWatch", "void FreePropertyWatch(PropertyWatch watcher)", FreePropertyWatch, module, 2);
2869 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeAsmField", "void FreeAsmField(AsmField field)", FreeAsmField, module, 2);
2870 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeStatement", "void FreeStatement(Statement stmt)", FreeStatement, module, 2);
2871 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeInitializer", "void FreeInitializer(Initializer initializer)", FreeInitializer, module, 2);
2872 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeInitDeclarator", "void FreeInitDeclarator(InitDeclarator decl)", FreeInitDeclarator, module, 2);
2873 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeDeclaration", "void FreeDeclaration(Declaration decl)", FreeDeclaration, module, 2);
2874 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeFunction", "void FreeFunction(FunctionDefinition func)", FreeFunction, module, 2);
2875 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeMemberInit", "void FreeMemberInit(MemberInit init)", FreeMemberInit, module, 2);
2876 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeMembersInit", "void FreeMembersInit(MembersInit init)", FreeMembersInit, module, 2);
2877 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeInstance", "void FreeInstance(Instantiation inst)", FreeInstance, module, 1);
2878 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeClassFunction", "void FreeClassFunction(ClassFunction func)", FreeClassFunction, module, 1);
2879 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeProperty", "void FreeProperty(PropertyDef def)", FreeProperty, module, 2);
2880 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeClassDef", "void FreeClassDef(ClassDef def)", FreeClassDef, module, 2);
2881 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeClass", "void FreeClass(ClassDefinition _class)", FreeClass, module, 2);
2882 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeDBIndexItem", "void FreeDBIndexItem(DBIndexItem item)", FreeDBIndexItem, module, 2);
2883 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeDBTableEntry", "void FreeDBTableEntry(DBTableEntry entry)", FreeDBTableEntry, module, 2);
2884 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeDBTable", "void FreeDBTable(DBTableDef table)", FreeDBTable, module, 2);
2885 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeExternal", "void FreeExternal(External external)", FreeExternal, module, 2);
2886 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeASTTree", "void FreeASTTree(ecere::sys::OldList ast)", FreeASTTree, module, 1);
2887 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeModuleData", "void FreeModuleData(ecere::com::Module module)", FreeModuleData, module, 2);
2888 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTypeData", "void FreeTypeData(ecere::com::Module privateModule)", FreeTypeData, module, 1);
2889 }
2890