compiler/libec: Fixed warnings on setting LinkList::first = null
[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 struct __ecereNameSpace__ecere__com__Class * thisClassFrom;
1194 int classObjectType;
1195 int alignment;
1196 unsigned int offset;
1197 int bitFieldCount;
1198 int count;
1199 unsigned int isSigned : 1;
1200 unsigned int constant : 1;
1201 unsigned int truth : 1;
1202 unsigned int byReference : 1;
1203 unsigned int extraParam : 1;
1204 unsigned int directClassAccess : 1;
1205 unsigned int computing : 1;
1206 unsigned int keepCast : 1;
1207 unsigned int passAsTemplate : 1;
1208 unsigned int dllExport : 1;
1209 unsigned int attrStdcall : 1;
1210 unsigned int declaredWithStruct : 1;
1211 unsigned int typedByReference : 1;
1212 unsigned int casted : 1;
1213 unsigned int pointerAlignment : 1;
1214 } __attribute__ ((gcc_struct));
1215
1216 struct Specifier
1217 {
1218 struct Specifier * prev;
1219 struct Specifier * next;
1220 struct Location loc;
1221 int type;
1222 union
1223 {
1224 int specifier;
1225 struct
1226 {
1227 struct ExtDecl * extDecl;
1228 char *  name;
1229 struct Symbol * symbol;
1230 struct __ecereNameSpace__ecere__sys__OldList *  templateArgs;
1231 } __attribute__ ((gcc_struct)) __anon1;
1232 struct
1233 {
1234 struct Identifier * id;
1235 struct __ecereNameSpace__ecere__sys__OldList *  list;
1236 struct __ecereNameSpace__ecere__sys__OldList *  baseSpecs;
1237 struct __ecereNameSpace__ecere__sys__OldList *  definitions;
1238 unsigned int addNameSpace;
1239 struct Context * ctx;
1240 struct ExtDecl * extDeclStruct;
1241 } __attribute__ ((gcc_struct)) __anon2;
1242 struct Expression * expression;
1243 struct Specifier * _class;
1244 struct TemplateParameter * templateParameter;
1245 } __attribute__ ((gcc_struct)) __anon1;
1246 } __attribute__ ((gcc_struct));
1247
1248 void FreeType(struct Type * type)
1249 {
1250 if(type)
1251 {
1252 type->refCount--;
1253 if(type->refCount <= 0)
1254 {
1255 switch(type->kind)
1256 {
1257 case 15:
1258 {
1259 struct __ecereNameSpace__ecere__sys__NamedLink64 * member, * next;
1260
1261 if(type->__anon1.__anon1.enumName)
1262 (__ecereNameSpace__ecere__com__eSystem_Delete(type->__anon1.__anon1.enumName), type->__anon1.__anon1.enumName = 0);
1263 for(member = type->__anon1.__anon1.members.first; member; member = next)
1264 {
1265 next = member->next;
1266 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(&type->__anon1.__anon1.members, member);
1267 (__ecereNameSpace__ecere__com__eSystem_Delete(member->name), member->name = 0);
1268 ((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);
1269 }
1270 break;
1271 }
1272 case 9:
1273 case 10:
1274 {
1275 struct Type * member, * next;
1276
1277 (__ecereNameSpace__ecere__com__eSystem_Delete(type->__anon1.__anon1.enumName), type->__anon1.__anon1.enumName = 0);
1278 for(member = type->__anon1.__anon1.members.first; member; member = next)
1279 {
1280 next = member->next;
1281 if(member->refCount == 1)
1282 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(&type->__anon1.__anon1.members, member);
1283 FreeType(member);
1284 }
1285 break;
1286 }
1287 case 11:
1288 {
1289 struct Type * param, * next;
1290
1291 if(type->__anon1.__anon2.returnType)
1292 FreeType(type->__anon1.__anon2.returnType);
1293 for(param = type->__anon1.__anon2.params.first; param; param = next)
1294 {
1295 next = param->next;
1296 FreeType(param);
1297 }
1298 break;
1299 }
1300 case 12:
1301 if(type->__anon1.__anon4.freeExp && type->__anon1.__anon4.arraySizeExp)
1302 FreeExpression(type->__anon1.__anon4.arraySizeExp);
1303 case 13:
1304 if(type->__anon1.type)
1305 FreeType(type->__anon1.type);
1306 break;
1307 }
1308 (__ecereNameSpace__ecere__com__eSystem_Delete(type->name), type->name = 0);
1309 (__ecereNameSpace__ecere__com__eSystem_Delete(type->typeName), type->typeName = 0);
1310 ((type ? (__ecereClass_Type->Destructor ? __ecereClass_Type->Destructor((void *)type) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(type)) : 0), type = 0);
1311 }
1312 }
1313 }
1314
1315 static void FreeDataMember(struct __ecereNameSpace__ecere__com__DataMember * parentMember)
1316 {
1317 struct __ecereNameSpace__ecere__com__DataMember * dataMember;
1318
1319 for(dataMember = parentMember->members.first; dataMember; dataMember = dataMember->next)
1320 {
1321 if(dataMember->type == 2 || dataMember->type == 1)
1322 FreeDataMember(dataMember);
1323 if(dataMember->dataType)
1324 {
1325 FreeType(dataMember->dataType);
1326 dataMember->dataType = (((void *)0));
1327 }
1328 }
1329 }
1330
1331 static void FreeClassProperties(struct __ecereNameSpace__ecere__com__ClassProperty * classProp)
1332 {
1333 if(classProp->left)
1334 FreeClassProperties(classProp->left);
1335 if(classProp->right)
1336 FreeClassProperties(classProp->right);
1337 if(classProp->dataType)
1338 {
1339 FreeType(classProp->dataType);
1340 classProp->dataType = (((void *)0));
1341 }
1342 }
1343
1344 struct FunctionDefinition;
1345
1346 struct FunctionDefinition
1347 {
1348 struct FunctionDefinition * prev;
1349 struct FunctionDefinition * next;
1350 struct Location loc;
1351 struct __ecereNameSpace__ecere__sys__OldList *  specifiers;
1352 struct Declarator * declarator;
1353 struct __ecereNameSpace__ecere__sys__OldList *  declarations;
1354 struct Statement * body;
1355 struct __ecereNameSpace__ecere__com__Class * _class;
1356 struct __ecereNameSpace__ecere__sys__OldList attached;
1357 int declMode;
1358 struct Type * type;
1359 struct Symbol * propSet;
1360 int tempCount;
1361 unsigned int propertyNoThis;
1362 } __attribute__ ((gcc_struct));
1363
1364 struct Instantiation;
1365
1366 struct Expression
1367 {
1368 struct Expression * prev;
1369 struct Expression * next;
1370 struct Location loc;
1371 int type;
1372 union
1373 {
1374 struct
1375 {
1376 char *  constant;
1377 struct Identifier * identifier;
1378 } __attribute__ ((gcc_struct)) __anon1;
1379 struct Statement * compound;
1380 struct Instantiation * instance;
1381 struct
1382 {
1383 char *  string;
1384 unsigned int intlString;
1385 unsigned int wideString;
1386 } __attribute__ ((gcc_struct)) __anon2;
1387 struct __ecereNameSpace__ecere__sys__OldList *  list;
1388 struct
1389 {
1390 struct __ecereNameSpace__ecere__sys__OldList * specifiers;
1391 struct Declarator * decl;
1392 } __attribute__ ((gcc_struct)) _classExp;
1393 struct
1394 {
1395 struct Identifier * id;
1396 } __attribute__ ((gcc_struct)) classData;
1397 struct
1398 {
1399 struct Expression * exp;
1400 struct __ecereNameSpace__ecere__sys__OldList * arguments;
1401 struct Location argLoc;
1402 } __attribute__ ((gcc_struct)) call;
1403 struct
1404 {
1405 struct Expression * exp;
1406 struct __ecereNameSpace__ecere__sys__OldList * index;
1407 } __attribute__ ((gcc_struct)) index;
1408 struct
1409 {
1410 struct Expression * exp;
1411 struct Identifier * member;
1412 int memberType;
1413 unsigned int thisPtr;
1414 } __attribute__ ((gcc_struct)) member;
1415 struct
1416 {
1417 int op;
1418 struct Expression * exp1;
1419 struct Expression * exp2;
1420 } __attribute__ ((gcc_struct)) op;
1421 struct TypeName * typeName;
1422 struct Specifier * _class;
1423 struct
1424 {
1425 struct TypeName * typeName;
1426 struct Expression * exp;
1427 } __attribute__ ((gcc_struct)) cast;
1428 struct
1429 {
1430 struct Expression * cond;
1431 struct __ecereNameSpace__ecere__sys__OldList * exp;
1432 struct Expression * elseExp;
1433 } __attribute__ ((gcc_struct)) cond;
1434 struct
1435 {
1436 struct TypeName * typeName;
1437 struct Expression * size;
1438 } __attribute__ ((gcc_struct)) _new;
1439 struct
1440 {
1441 struct TypeName * typeName;
1442 struct Expression * size;
1443 struct Expression * exp;
1444 } __attribute__ ((gcc_struct)) _renew;
1445 struct
1446 {
1447 char * table;
1448 struct Identifier * id;
1449 } __attribute__ ((gcc_struct)) db;
1450 struct
1451 {
1452 struct Expression * ds;
1453 struct Expression * name;
1454 } __attribute__ ((gcc_struct)) dbopen;
1455 struct
1456 {
1457 struct TypeName * typeName;
1458 struct Initializer * initializer;
1459 } __attribute__ ((gcc_struct)) initializer;
1460 struct
1461 {
1462 struct Expression * exp;
1463 struct TypeName * typeName;
1464 } __attribute__ ((gcc_struct)) vaArg;
1465 } __attribute__ ((gcc_struct)) __anon1;
1466 unsigned int debugValue;
1467 struct __ecereNameSpace__ecere__com__DataValue val;
1468 uint64 address;
1469 unsigned int hasAddress;
1470 struct Type * expType;
1471 struct Type * destType;
1472 unsigned int usage;
1473 int tempCount;
1474 unsigned int byReference;
1475 unsigned int isConstant;
1476 unsigned int addedThis;
1477 unsigned int needCast;
1478 unsigned int thisPtr;
1479 unsigned int opDestType;
1480 unsigned int needTemplateCast;
1481 } __attribute__ ((gcc_struct));
1482
1483 struct Instantiation
1484 {
1485 struct Instantiation * prev;
1486 struct Instantiation * next;
1487 struct Location loc;
1488 struct Specifier * _class;
1489 struct Expression * exp;
1490 struct __ecereNameSpace__ecere__sys__OldList *  members;
1491 struct Symbol * symbol;
1492 unsigned int fullSet;
1493 unsigned int isConstant;
1494 unsigned char *  data;
1495 struct Location nameLoc;
1496 struct Location insideLoc;
1497 unsigned int built;
1498 } __attribute__ ((gcc_struct));
1499
1500 struct TemplateArgument;
1501
1502 struct TemplateArgument
1503 {
1504 struct TemplateArgument * prev;
1505 struct TemplateArgument * next;
1506 struct Location loc;
1507 struct Identifier * name;
1508 int type;
1509 union
1510 {
1511 struct Expression * expression;
1512 struct Identifier * identifier;
1513 struct TemplateDatatype * templateDatatype;
1514 } __attribute__ ((gcc_struct)) __anon1;
1515 } __attribute__ ((gcc_struct));
1516
1517 struct TemplateParameter
1518 {
1519 struct TemplateParameter * prev;
1520 struct TemplateParameter * next;
1521 struct Location loc;
1522 int type;
1523 struct Identifier * identifier;
1524 union
1525 {
1526 struct TemplateDatatype * dataType;
1527 int memberType;
1528 } __attribute__ ((gcc_struct)) __anon1;
1529 struct TemplateArgument * defaultArgument;
1530 const char *  dataTypeString;
1531 struct Type * baseType;
1532 } __attribute__ ((gcc_struct));
1533
1534 struct Declaration;
1535
1536 struct Statement
1537 {
1538 struct Statement * prev;
1539 struct Statement * next;
1540 struct Location loc;
1541 int type;
1542 union
1543 {
1544 struct __ecereNameSpace__ecere__sys__OldList *  expressions;
1545 struct
1546 {
1547 struct Identifier * id;
1548 struct Statement * stmt;
1549 } __attribute__ ((gcc_struct)) labeled;
1550 struct
1551 {
1552 struct Expression * exp;
1553 struct Statement * stmt;
1554 } __attribute__ ((gcc_struct)) caseStmt;
1555 struct
1556 {
1557 struct __ecereNameSpace__ecere__sys__OldList * declarations;
1558 struct __ecereNameSpace__ecere__sys__OldList * statements;
1559 struct Context * context;
1560 unsigned int isSwitch;
1561 } __attribute__ ((gcc_struct)) compound;
1562 struct
1563 {
1564 struct __ecereNameSpace__ecere__sys__OldList * exp;
1565 struct Statement * stmt;
1566 struct Statement * elseStmt;
1567 } __attribute__ ((gcc_struct)) ifStmt;
1568 struct
1569 {
1570 struct __ecereNameSpace__ecere__sys__OldList * exp;
1571 struct Statement * stmt;
1572 } __attribute__ ((gcc_struct)) switchStmt;
1573 struct
1574 {
1575 struct __ecereNameSpace__ecere__sys__OldList * exp;
1576 struct Statement * stmt;
1577 } __attribute__ ((gcc_struct)) whileStmt;
1578 struct
1579 {
1580 struct __ecereNameSpace__ecere__sys__OldList * exp;
1581 struct Statement * stmt;
1582 } __attribute__ ((gcc_struct)) doWhile;
1583 struct
1584 {
1585 struct Statement * init;
1586 struct Statement * check;
1587 struct __ecereNameSpace__ecere__sys__OldList * increment;
1588 struct Statement * stmt;
1589 } __attribute__ ((gcc_struct)) forStmt;
1590 struct
1591 {
1592 struct Identifier * id;
1593 } __attribute__ ((gcc_struct)) gotoStmt;
1594 struct
1595 {
1596 struct Specifier * spec;
1597 char * statements;
1598 struct __ecereNameSpace__ecere__sys__OldList * inputFields;
1599 struct __ecereNameSpace__ecere__sys__OldList * outputFields;
1600 struct __ecereNameSpace__ecere__sys__OldList * clobberedFields;
1601 } __attribute__ ((gcc_struct)) asmStmt;
1602 struct
1603 {
1604 struct Expression * watcher;
1605 struct Expression * object;
1606 struct __ecereNameSpace__ecere__sys__OldList * watches;
1607 } __attribute__ ((gcc_struct)) _watch;
1608 struct
1609 {
1610 struct Identifier * id;
1611 struct __ecereNameSpace__ecere__sys__OldList * exp;
1612 struct __ecereNameSpace__ecere__sys__OldList * filter;
1613 struct Statement * stmt;
1614 } __attribute__ ((gcc_struct)) forEachStmt;
1615 struct Declaration * decl;
1616 } __attribute__ ((gcc_struct)) __anon1;
1617 } __attribute__ ((gcc_struct));
1618
1619 struct Declaration
1620 {
1621 struct Declaration * prev;
1622 struct Declaration * next;
1623 struct Location loc;
1624 int type;
1625 union
1626 {
1627 struct
1628 {
1629 struct __ecereNameSpace__ecere__sys__OldList *  specifiers;
1630 struct __ecereNameSpace__ecere__sys__OldList *  declarators;
1631 } __attribute__ ((gcc_struct)) __anon1;
1632 struct Instantiation * inst;
1633 struct
1634 {
1635 struct Identifier * id;
1636 struct Expression * exp;
1637 } __attribute__ ((gcc_struct)) __anon2;
1638 } __attribute__ ((gcc_struct)) __anon1;
1639 struct Specifier * extStorage;
1640 struct Symbol * symbol;
1641 int declMode;
1642 } __attribute__ ((gcc_struct));
1643
1644 struct External
1645 {
1646 struct External * prev;
1647 struct External * next;
1648 struct Location loc;
1649 int type;
1650 struct Symbol * symbol;
1651 union
1652 {
1653 struct FunctionDefinition * function;
1654 struct ClassDefinition * _class;
1655 struct Declaration * declaration;
1656 char *  importString;
1657 struct Identifier * id;
1658 struct DBTableDef * table;
1659 } __attribute__ ((gcc_struct)) __anon1;
1660 int importType;
1661 struct External * fwdDecl;
1662 struct __ecereNameSpace__ecere__com__Instance * outgoing;
1663 struct __ecereNameSpace__ecere__com__Instance * incoming;
1664 int nonBreakableIncoming;
1665 } __attribute__ ((gcc_struct));
1666
1667 struct PropertyDef;
1668
1669 struct PropertyDef
1670 {
1671 struct PropertyDef * prev;
1672 struct PropertyDef * next;
1673 struct Location loc;
1674 struct __ecereNameSpace__ecere__sys__OldList *  specifiers;
1675 struct Declarator * declarator;
1676 struct Identifier * id;
1677 struct Statement * getStmt;
1678 struct Statement * setStmt;
1679 struct Statement * issetStmt;
1680 struct Symbol * symbol;
1681 struct Expression * category;
1682 struct
1683 {
1684 unsigned int conversion : 1;
1685 unsigned int isWatchable : 1;
1686 unsigned int isDBProp : 1;
1687 } __attribute__ ((gcc_struct)) __anon1;
1688 } __attribute__ ((gcc_struct));
1689
1690 struct __ecereNameSpace__ecere__com__ClassTemplateParameter;
1691
1692 struct __ecereNameSpace__ecere__com__ClassTemplateParameter
1693 {
1694 struct __ecereNameSpace__ecere__com__ClassTemplateParameter * prev;
1695 struct __ecereNameSpace__ecere__com__ClassTemplateParameter * next;
1696 const char *  name;
1697 int type;
1698 union
1699 {
1700 const char *  dataTypeString;
1701 int memberType;
1702 } __attribute__ ((gcc_struct)) __anon1;
1703 struct __ecereNameSpace__ecere__com__ClassTemplateArgument defaultArg;
1704 void *  param;
1705 } __attribute__ ((gcc_struct));
1706
1707 void FreeDeclarator(struct Declarator *  decl);
1708
1709 void FreeIdentifier(struct Identifier *  id);
1710
1711 void FreeEnumerator(struct Enumerator * enumerator)
1712 {
1713 if(enumerator->id)
1714 FreeIdentifier(enumerator->id);
1715 if(enumerator->exp)
1716 FreeExpression(enumerator->exp);
1717 ((enumerator ? (__ecereClass_Enumerator->Destructor ? __ecereClass_Enumerator->Destructor((void *)enumerator) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(enumerator)) : 0), enumerator = 0);
1718 }
1719
1720 void FreeAsmField(struct AsmField * field)
1721 {
1722 if(field->expression)
1723 FreeExpression(field->expression);
1724 if(field->symbolic)
1725 FreeIdentifier(field->symbolic);
1726 (__ecereNameSpace__ecere__com__eSystem_Delete(field->command), field->command = 0);
1727 ((field ? (__ecereClass_AsmField->Destructor ? __ecereClass_AsmField->Destructor((void *)field) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(field)) : 0), field = 0);
1728 }
1729
1730 void FreeInitializer(struct Initializer * initializer)
1731 {
1732 switch(initializer->type)
1733 {
1734 case 1:
1735 FreeList(initializer->__anon1.list, (void *)(FreeInitializer));
1736 break;
1737 case 0:
1738 if(initializer->__anon1.exp)
1739 FreeExpression(initializer->__anon1.exp);
1740 break;
1741 }
1742 if(initializer->id)
1743 FreeIdentifier(initializer->id);
1744 ((initializer ? (__ecereClass_Initializer->Destructor ? __ecereClass_Initializer->Destructor((void *)initializer) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(initializer)) : 0), initializer = 0);
1745 }
1746
1747 void FreeDBIndexItem(struct DBIndexItem * item)
1748 {
1749 if(item->id)
1750 FreeIdentifier(item->id);
1751 ((item ? (__ecereClass_DBIndexItem->Destructor ? __ecereClass_DBIndexItem->Destructor((void *)item) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(item)) : 0), item = 0);
1752 }
1753
1754 void FreeInitDeclarator(struct InitDeclarator * decl)
1755 {
1756 if(decl->declarator)
1757 FreeDeclarator(decl->declarator);
1758 if(decl->initializer)
1759 FreeInitializer(decl->initializer);
1760 ((decl ? (__ecereClass_InitDeclarator->Destructor ? __ecereClass_InitDeclarator->Destructor((void *)decl) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(decl)) : 0), decl = 0);
1761 }
1762
1763 void FreeMemberInit(struct MemberInit * init)
1764 {
1765 if(init->initializer)
1766 FreeInitializer(init->initializer);
1767 if(init->identifiers)
1768 FreeList(init->identifiers, (void *)(FreeIdentifier));
1769 ((init ? (__ecereClass_MemberInit->Destructor ? __ecereClass_MemberInit->Destructor((void *)init) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(init)) : 0), init = 0);
1770 }
1771
1772 void FreeSpecifierContents(struct Specifier *  spec);
1773
1774 void FreeSpecifier(struct Specifier * spec)
1775 {
1776 if(spec)
1777 {
1778 FreeSpecifierContents(spec);
1779 ((spec ? (__ecereClass_Specifier->Destructor ? __ecereClass_Specifier->Destructor((void *)spec) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(spec)) : 0), spec = 0);
1780 }
1781 }
1782
1783 void FreeTemplateDataType(struct TemplateDatatype * type)
1784 {
1785 if(type->decl)
1786 FreeDeclarator(type->decl);
1787 if(type->specifiers)
1788 FreeList(type->specifiers, (void *)(FreeSpecifier));
1789 ((type ? (__ecereClass_TemplateDatatype->Destructor ? __ecereClass_TemplateDatatype->Destructor((void *)type) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(type)) : 0), type = 0);
1790 }
1791
1792 void FreeIdentifier(struct Identifier * id)
1793 {
1794 if(id->badID)
1795 FreeIdentifier(id->badID);
1796 (__ecereNameSpace__ecere__com__eSystem_Delete(id->string), id->string = 0);
1797 if(id->_class)
1798 FreeSpecifier(id->_class);
1799 ((id ? (__ecereClass_Identifier->Destructor ? __ecereClass_Identifier->Destructor((void *)id) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(id)) : 0), id = 0);
1800 }
1801
1802 void FreeTypeName(struct TypeName * typeName)
1803 {
1804 if(typeName->qualifiers)
1805 FreeList(typeName->qualifiers, (void *)(FreeSpecifier));
1806 if(typeName->declarator)
1807 FreeDeclarator(typeName->declarator);
1808 if(typeName->bitCount)
1809 FreeExpression(typeName->bitCount);
1810 ((typeName ? (__ecereClass_TypeName->Destructor ? __ecereClass_TypeName->Destructor((void *)typeName) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(typeName)) : 0), typeName = 0);
1811 }
1812
1813 void FreePointer(struct Pointer * pointer)
1814 {
1815 if(pointer->pointer)
1816 FreePointer(pointer->pointer);
1817 if(pointer->qualifiers)
1818 FreeList(pointer->qualifiers, (void *)(FreeSpecifier));
1819 ((pointer ? (__ecereClass_Pointer->Destructor ? __ecereClass_Pointer->Destructor((void *)pointer) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(pointer)) : 0), pointer = 0);
1820 }
1821
1822 void FreeTemplateArgument(struct TemplateArgument * arg)
1823 {
1824 switch(arg->type)
1825 {
1826 case 2:
1827 if(arg->__anon1.expression)
1828 FreeExpression(arg->__anon1.expression);
1829 break;
1830 case 1:
1831 if(arg->__anon1.identifier)
1832 FreeIdentifier(arg->__anon1.identifier);
1833 break;
1834 case 0:
1835 if(arg->__anon1.templateDatatype)
1836 FreeTemplateDataType(arg->__anon1.templateDatatype);
1837 break;
1838 }
1839 if(arg->name)
1840 FreeIdentifier(arg->name);
1841 ((arg ? (__ecereClass_TemplateArgument->Destructor ? __ecereClass_TemplateArgument->Destructor((void *)arg) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(arg)) : 0), arg = 0);
1842 }
1843
1844 void FreeDBTableEntry(struct DBTableEntry * entry)
1845 {
1846 if(entry->id)
1847 FreeIdentifier(entry->id);
1848 switch(entry->type)
1849 {
1850 case 0:
1851 if(entry->__anon1.__anon1.dataType)
1852 FreeTypeName(entry->__anon1.__anon1.dataType);
1853 if(entry->__anon1.__anon1.name)
1854 (__ecereNameSpace__ecere__com__eSystem_Delete(entry->__anon1.__anon1.name), entry->__anon1.__anon1.name = 0);
1855 break;
1856 case 1:
1857 if(entry->__anon1.items)
1858 FreeList(entry->__anon1.items, (void *)(FreeDBIndexItem));
1859 break;
1860 }
1861 ((entry ? (__ecereClass_DBTableEntry->Destructor ? __ecereClass_DBTableEntry->Destructor((void *)entry) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(entry)) : 0), entry = 0);
1862 }
1863
1864 void FreeDeclarator(struct Declarator * decl)
1865 {
1866 if(decl->declarator)
1867 FreeDeclarator(decl->declarator);
1868 switch(decl->type)
1869 {
1870 case 0:
1871 if(decl->__anon1.structDecl.exp)
1872 FreeExpression(decl->__anon1.structDecl.exp);
1873 if(decl->__anon1.structDecl.posExp)
1874 FreeExpression(decl->__anon1.structDecl.posExp);
1875 if(decl->__anon1.structDecl.attrib)
1876 FreeAttrib(decl->__anon1.structDecl.attrib);
1877 break;
1878 case 1:
1879 FreeIdentifier(decl->__anon1.identifier);
1880 break;
1881 case 2:
1882 break;
1883 case 3:
1884 if(decl->__anon1.array.exp)
1885 FreeExpression(decl->__anon1.array.exp);
1886 if(decl->__anon1.array.enumClass)
1887 FreeSpecifier(decl->__anon1.array.enumClass);
1888 break;
1889 case 4:
1890 FreeList(decl->__anon1.function.parameters, (void *)(FreeTypeName));
1891 break;
1892 case 5:
1893 if(decl->__anon1.pointer.pointer)
1894 FreePointer(decl->__anon1.pointer.pointer);
1895 break;
1896 case 6:
1897 case 7:
1898 if(decl->__anon1.extended.extended)
1899 FreeExtDecl(decl->__anon1.extended.extended);
1900 break;
1901 }
1902 ((decl ? (__ecereClass_Declarator->Destructor ? __ecereClass_Declarator->Destructor((void *)decl) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(decl)) : 0), decl = 0);
1903 }
1904
1905 void FreeTemplateParameter(struct TemplateParameter * param)
1906 {
1907 if(param->identifier)
1908 {
1909 FreeIdentifier(param->identifier);
1910 }
1911 if(param->type == 0 || param->type == 2)
1912 {
1913 if(param->__anon1.dataType)
1914 FreeTemplateDataType(param->__anon1.dataType);
1915 }
1916 if(param->defaultArgument)
1917 FreeTemplateArgument(param->defaultArgument);
1918 if(param->baseType)
1919 FreeType(param->baseType);
1920 ((param ? (__ecereClass_TemplateParameter->Destructor ? __ecereClass_TemplateParameter->Destructor((void *)param) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(param)) : 0), param = 0);
1921 }
1922
1923 void FreeDBTable(struct DBTableDef * table)
1924 {
1925 if(table->definitions)
1926 FreeList(table->definitions, (void *)(FreeDBTableEntry));
1927 if(table->name)
1928 (__ecereNameSpace__ecere__com__eSystem_Delete(table->name), table->name = 0);
1929 ((table ? (__ecereClass_DBTableDef->Destructor ? __ecereClass_DBTableDef->Destructor((void *)table) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(table)) : 0), table = 0);
1930 }
1931
1932 void FreeSymbol(struct Symbol * symbol)
1933 {
1934 struct __ecereNameSpace__ecere__sys__OldLink * link;
1935
1936 if(symbol->propCategory)
1937 FreeExpression(symbol->propCategory);
1938 FreeType(symbol->type);
1939 while((link = symbol->templatedClasses.first))
1940 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Delete(&symbol->templatedClasses, link);
1941 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->string), symbol->string = 0);
1942 if(symbol->templateParams)
1943 FreeList(symbol->templateParams, (void *)(FreeTemplateParameter));
1944 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->constructorName), symbol->constructorName = 0);
1945 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->structName), symbol->structName = 0);
1946 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->className), symbol->className = 0);
1947 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->destructorName), symbol->destructorName = 0);
1948 (__ecereNameSpace__ecere__com__eSystem_Delete(symbol->shortName), symbol->shortName = 0);
1949 if(symbol->ctx)
1950 {
1951 FreeContext(symbol->ctx);
1952 ((symbol->ctx ? (__ecereClass_Context->Destructor ? __ecereClass_Context->Destructor((void *)symbol->ctx) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(symbol->ctx)) : 0), symbol->ctx = 0);
1953 }
1954 ((symbol ? (__ecereClass_Symbol->Destructor ? __ecereClass_Symbol->Destructor((void *)symbol) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(symbol)) : 0), symbol = 0);
1955 }
1956
1957 void FreeModuleData(struct __ecereNameSpace__ecere__com__Instance * module)
1958 {
1959 struct __ecereNameSpace__ecere__com__Class * _class;
1960 struct __ecereNameSpace__ecere__com__GlobalFunction * function;
1961
1962 for(_class = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->classes.first; _class; _class = _class->next)
1963 {
1964 struct __ecereNameSpace__ecere__com__DataMember * dataMember;
1965 struct __ecereNameSpace__ecere__com__Method * method;
1966 struct __ecereNameSpace__ecere__com__ClassTemplateParameter * param;
1967
1968 if(_class->dataType)
1969 {
1970 FreeType(_class->dataType);
1971 _class->dataType = (((void *)0));
1972 }
1973 for(dataMember = _class->membersAndProperties.first; dataMember; dataMember = dataMember->next)
1974 {
1975 if(dataMember->isProperty)
1976 {
1977 struct __ecereNameSpace__ecere__com__Property * prop = (struct __ecereNameSpace__ecere__com__Property *)dataMember;
1978
1979 if(prop->symbol)
1980 {
1981 FreeSymbol(prop->symbol);
1982 }
1983 }
1984 else
1985 {
1986 if(dataMember->type == 2 || dataMember->type == 1)
1987 FreeDataMember(dataMember);
1988 }
1989 if(dataMember->dataType)
1990 {
1991 FreeType(dataMember->dataType);
1992 dataMember->dataType = (((void *)0));
1993 }
1994 }
1995 for(dataMember = _class->conversions.first; dataMember; dataMember = dataMember->next)
1996 {
1997 struct __ecereNameSpace__ecere__com__Property * prop = (struct __ecereNameSpace__ecere__com__Property *)dataMember;
1998
1999 if(prop->symbol)
2000 {
2001 FreeSymbol(prop->symbol);
2002 }
2003 if(prop->dataType)
2004 {
2005 FreeType(prop->dataType);
2006 prop->dataType = (((void *)0));
2007 }
2008 }
2009 if(__ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_first(&_class->classProperties))
2010 FreeClassProperties((struct __ecereNameSpace__ecere__com__ClassProperty *)__ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_first(&_class->classProperties));
2011 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)))
2012 {
2013 if(method->dataType)
2014 {
2015 FreeType(method->dataType);
2016 method->dataType = (((void *)0));
2017 }
2018 if(method->symbol)
2019 {
2020 FreeSymbol(method->symbol);
2021 }
2022 }
2023 for(param = _class->templateParams.first; param; param = param->next)
2024 {
2025 if(param->param)
2026 {
2027 FreeTemplateParameter(param->param);
2028 param->param = (((void *)0));
2029 }
2030 }
2031 }
2032 for(function = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->functions.first; function; function = function->next)
2033 {
2034 if(function->dataType)
2035 FreeType(function->dataType);
2036 if(function->symbol)
2037 FreeSymbol(function->symbol);
2038 }
2039 if(!inCompiler)
2040 {
2041 struct __ecereNameSpace__ecere__com__MapIterator mapIt = (mapIt.container = (void *)0, mapIt.pointer = (void *)0, __ecereProp___ecereNameSpace__ecere__com__MapIterator_Set_map(&mapIt, loadedModules), mapIt);
2042
2043 while(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Next((void *)(&mapIt)))
2044 {
2045 struct __ecereNameSpace__ecere__com__Instance * list = ((struct __ecereNameSpace__ecere__com__Instance *)(uintptr_t)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data((void *)(&mapIt)));
2046 struct __ecereNameSpace__ecere__com__Iterator it =
2047 {
2048 list, 0
2049 };
2050 unsigned int found = 0;
2051
2052 while(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Next(&it))
2053 {
2054 if(((struct __ecereNameSpace__ecere__com__Instance *)(uintptr_t)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data(&it)) == module)
2055 {
2056 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2057 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = list;
2058
2059 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__List->_vTbl;
2060 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(list, it.pointer);
2061 found = 1;
2062 break;
2063 }
2064 }
2065 if(found)
2066 {
2067 if(((struct __ecereNameSpace__ecere__com__LinkList *)(((char *)list + 0 + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->count == 1)
2068 {
2069 struct __ecereNameSpace__ecere__com__Instance * mod = (((struct __ecereNameSpace__ecere__com__Instance *)((uintptr_t)(__extension__ ({
2070 struct __ecereNameSpace__ecere__com__Iterator __internalIterator =
2071 {
2072 list, 0
2073 };
2074
2075 __ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(0)), 0);
2076 ((struct __ecereNameSpace__ecere__com__Instance *)(uintptr_t)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data(&__internalIterator));
2077 })))));
2078
2079 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2080 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = list;
2081
2082 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__List->_vTbl;
2083 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(list, ((struct __ecereNameSpace__ecere__com__IteratorPointer * (*)(struct __ecereNameSpace__ecere__com__Instance *))__extension__ ({
2084 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = list;
2085
2086 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__List->_vTbl;
2087 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_GetFirst])(list));
2088 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2089 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = loadedModules;
2090
2091 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__Map->_vTbl;
2092 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(loadedModules, mapIt.pointer);
2093 (__ecereNameSpace__ecere__com__eInstance_DecRef(list), list = 0);
2094 __ecereNameSpace__ecere__com__eModule_Unload(((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application, mod);
2095 }
2096 break;
2097 }
2098 }
2099 }
2100 }
2101
2102 void FreeTypeData(struct __ecereNameSpace__ecere__com__Instance * privateModule)
2103 {
2104 struct __ecereNameSpace__ecere__com__Instance * m;
2105
2106 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)
2107 {
2108 FreeModuleData(m);
2109 }
2110 FreeModuleData(privateModule);
2111 }
2112
2113 struct ClassDef;
2114
2115 struct ClassDef
2116 {
2117 struct ClassDef * prev;
2118 struct ClassDef * next;
2119 struct Location loc;
2120 int type;
2121 union
2122 {
2123 struct Declaration * decl;
2124 struct ClassFunction * function;
2125 struct __ecereNameSpace__ecere__sys__OldList *  defProperties;
2126 struct PropertyDef * propertyDef;
2127 struct PropertyWatch * propertyWatch;
2128 char *  designer;
2129 struct Identifier * defaultProperty;
2130 struct
2131 {
2132 struct Identifier * id;
2133 struct Initializer * initializer;
2134 } __attribute__ ((gcc_struct)) __anon1;
2135 } __attribute__ ((gcc_struct)) __anon1;
2136 int memberAccess;
2137 void *  object;
2138 } __attribute__ ((gcc_struct));
2139
2140 void FreeStatement(struct Statement *  stmt);
2141
2142 void FreePropertyWatch(struct PropertyWatch * watcher)
2143 {
2144 if(watcher->properties)
2145 FreeList(watcher->properties, (void *)(FreeIdentifier));
2146 if(watcher->compound)
2147 FreeStatement(watcher->compound);
2148 ((watcher ? (__ecereClass_PropertyWatch->Destructor ? __ecereClass_PropertyWatch->Destructor((void *)watcher) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(watcher)) : 0), watcher = 0);
2149 }
2150
2151 void FreeProperty(struct PropertyDef * def)
2152 {
2153 if(def->specifiers)
2154 FreeList(def->specifiers, (void *)(FreeSpecifier));
2155 if(def->declarator)
2156 FreeDeclarator(def->declarator);
2157 if(def->id)
2158 FreeIdentifier(def->id);
2159 if(def->getStmt)
2160 FreeStatement(def->getStmt);
2161 if(def->setStmt)
2162 FreeStatement(def->setStmt);
2163 if(def->issetStmt)
2164 FreeStatement(def->issetStmt);
2165 if(def->category)
2166 FreeExpression(def->category);
2167 if(def->symbol)
2168 {
2169 }
2170 ((def ? (__ecereClass_PropertyDef->Destructor ? __ecereClass_PropertyDef->Destructor((void *)def) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(def)) : 0), def = 0);
2171 }
2172
2173 void FreeClassFunction(struct ClassFunction *  func);
2174
2175 void FreeMembersInit(struct MembersInit * init)
2176 {
2177 if(init->type == 0 && init->__anon1.dataMembers)
2178 FreeList(init->__anon1.dataMembers, (void *)(FreeMemberInit));
2179 if(init->type == 1 && init->__anon1.function)
2180 {
2181 FreeClassFunction(init->__anon1.function);
2182 }
2183 ((init ? (__ecereClass_MembersInit->Destructor ? __ecereClass_MembersInit->Destructor((void *)init) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(init)) : 0), init = 0);
2184 }
2185
2186 void FreeInstance(struct Instantiation * inst)
2187 {
2188 if(inst->members)
2189 {
2190 FreeList(inst->members, (void *)(FreeMembersInit));
2191 }
2192 if(inst->exp)
2193 FreeExpression(inst->exp);
2194 if(inst->data)
2195 {
2196 struct Symbol * classSym = FindClass(inst->_class->__anon1.__anon1.name);
2197 struct __ecereNameSpace__ecere__com__Class * _class = classSym ? classSym->__anon1.registered : (((void *)0));
2198
2199 if(_class)
2200 {
2201 if(_class->type == 0)
2202 {
2203 struct __ecereNameSpace__ecere__com__Instance * instance = (struct __ecereNameSpace__ecere__com__Instance *)inst->data;
2204
2205 (__ecereNameSpace__ecere__com__eInstance_DecRef(instance), instance = 0);
2206 }
2207 else if(_class->type == 5)
2208 {
2209 if(_class->Destructor)
2210 _class->Destructor((struct __ecereNameSpace__ecere__com__Instance *)inst->data);
2211 (__ecereNameSpace__ecere__com__eSystem_Delete(inst->data), inst->data = 0);
2212 }
2213 else if(_class->type == 1)
2214 {
2215 (__ecereNameSpace__ecere__com__eSystem_Delete(inst->data), inst->data = 0);
2216 }
2217 }
2218 else
2219 {
2220 struct __ecereNameSpace__ecere__com__Instance * instance = (struct __ecereNameSpace__ecere__com__Instance *)inst->data;
2221
2222 (__ecereNameSpace__ecere__com__eInstance_DecRef(instance), instance = 0);
2223 }
2224 }
2225 if(inst->_class)
2226 FreeSpecifier(inst->_class);
2227 ((inst ? (__ecereClass_Instantiation->Destructor ? __ecereClass_Instantiation->Destructor((void *)inst) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(inst)) : 0), inst = 0);
2228 }
2229
2230 static void _FreeExpression(struct Expression * exp, unsigned int freePointer)
2231 {
2232 switch(exp->type)
2233 {
2234 case 13:
2235 case 26:
2236 FreeExpression(exp->__anon1._new.size);
2237 FreeTypeName(exp->__anon1._new.typeName);
2238 break;
2239 case 14:
2240 case 27:
2241 FreeExpression(exp->__anon1._renew.exp);
2242 FreeExpression(exp->__anon1._renew.size);
2243 FreeTypeName(exp->__anon1._renew.typeName);
2244 break;
2245 case 2:
2246 (__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.__anon1.constant), exp->__anon1.__anon1.constant = 0);
2247 break;
2248 case 0:
2249 if(exp->__anon1.__anon1.identifier)
2250 FreeIdentifier(exp->__anon1.__anon1.identifier);
2251 break;
2252 case 1:
2253 if(exp->__anon1.instance)
2254 {
2255 FreeInstance(exp->__anon1.instance);
2256 exp->__anon1.instance = (((void *)0));
2257 }
2258 break;
2259 case 3:
2260 (__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.__anon2.string), exp->__anon1.__anon2.string = 0);
2261 break;
2262 case 4:
2263 if(exp->__anon1.op.exp1)
2264 FreeExpression(exp->__anon1.op.exp1);
2265 if(exp->__anon1.op.exp2)
2266 FreeExpression(exp->__anon1.op.exp2);
2267 break;
2268 case 5:
2269 {
2270 FreeList(exp->__anon1.list, (void *)(FreeExpression));
2271 break;
2272 }
2273 case 6:
2274 {
2275 if(exp->__anon1.index.exp)
2276 FreeExpression(exp->__anon1.index.exp);
2277 if(exp->__anon1.index.index)
2278 FreeList(exp->__anon1.index.index, (void *)(FreeExpression));
2279 break;
2280 }
2281 case 7:
2282 {
2283 if(exp->__anon1.call.exp)
2284 FreeExpression(exp->__anon1.call.exp);
2285 if(exp->__anon1.call.arguments)
2286 FreeList(exp->__anon1.call.arguments, (void *)(FreeExpression));
2287 break;
2288 }
2289 case 8:
2290 case 9:
2291 if(exp->__anon1.member.exp)
2292 FreeExpression(exp->__anon1.member.exp);
2293 if(exp->__anon1.member.member)
2294 FreeIdentifier(exp->__anon1.member.member);
2295 break;
2296 case 10:
2297 FreeTypeName(exp->__anon1._new.typeName);
2298 break;
2299 case 36:
2300 FreeTypeName(exp->__anon1._new.typeName);
2301 break;
2302 case 11:
2303 if(exp->__anon1.cast.exp)
2304 FreeExpression(exp->__anon1.cast.exp);
2305 FreeTypeName(exp->__anon1.cast.typeName);
2306 break;
2307 case 12:
2308 {
2309 if(exp->__anon1.cond.cond)
2310 FreeExpression(exp->__anon1.cond.cond);
2311 if(exp->__anon1.cond.exp)
2312 FreeList(exp->__anon1.cond.exp, (void *)(FreeExpression));
2313 if(exp->__anon1.cond.elseExp)
2314 FreeExpression(exp->__anon1.cond.elseExp);
2315 break;
2316 }
2317 case 23:
2318 {
2319 if(exp->__anon1.compound)
2320 FreeStatement(exp->__anon1.compound);
2321 break;
2322 }
2323 case 32:
2324 {
2325 if(exp->__anon1.list)
2326 FreeList(exp->__anon1.list, (void *)(FreeExpression));
2327 break;
2328 }
2329 case 33:
2330 {
2331 if(exp->__anon1.initializer.typeName)
2332 FreeTypeName(exp->__anon1.initializer.typeName);
2333 if(exp->__anon1.initializer.initializer)
2334 FreeInitializer(exp->__anon1.initializer.initializer);
2335 break;
2336 }
2337 case 16:
2338 break;
2339 case 24:
2340 if(exp->__anon1._classExp.specifiers)
2341 FreeList(exp->__anon1._classExp.specifiers, (void *)(FreeSpecifier));
2342 if(exp->__anon1._classExp.decl)
2343 FreeDeclarator(exp->__anon1._classExp.decl);
2344 break;
2345 case 29:
2346 case 31:
2347 case 30:
2348 if(exp->__anon1.db.id)
2349 FreeIdentifier(exp->__anon1.db.id);
2350 (__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.db.table), exp->__anon1.db.table = 0);
2351 break;
2352 case 28:
2353 if(exp->__anon1.dbopen.ds)
2354 FreeExpression(exp->__anon1.dbopen.ds);
2355 if(exp->__anon1.dbopen.name)
2356 FreeExpression(exp->__anon1.dbopen.name);
2357 break;
2358 case 34:
2359 if(exp->__anon1.vaArg.exp)
2360 FreeExpression(exp->__anon1.vaArg.exp);
2361 if(exp->__anon1.vaArg.typeName)
2362 FreeTypeName(exp->__anon1.vaArg.typeName);
2363 break;
2364 case 35:
2365 if(exp->__anon1.list)
2366 FreeList(exp->__anon1.list, (void *)(FreeExpression));
2367 break;
2368 case 15:
2369 if(exp->__anon1._class)
2370 FreeSpecifier(exp->__anon1._class);
2371 break;
2372 case 25:
2373 if(exp->__anon1.classData.id)
2374 FreeIdentifier(exp->__anon1.classData.id);
2375 break;
2376 case 18:
2377 if(exp->__anon1.__anon1.identifier)
2378 FreeIdentifier(exp->__anon1.__anon1.identifier);
2379 break;
2380 case 20:
2381 (__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.__anon1.constant), exp->__anon1.__anon1.constant = 0);
2382 break;
2383 case 37:
2384 case 19:
2385 if(exp->__anon1.member.exp)
2386 FreeExpression(exp->__anon1.member.exp);
2387 if(exp->__anon1.member.member)
2388 FreeIdentifier(exp->__anon1.member.member);
2389 break;
2390 case 38:
2391 if(exp->__anon1.call.exp)
2392 FreeExpression(exp->__anon1.call.exp);
2393 if(exp->__anon1.call.arguments)
2394 FreeList(exp->__anon1.call.arguments, (void *)(FreeExpression));
2395 break;
2396 case 17:
2397 case 21:
2398 case 22:
2399 break;
2400 }
2401 if(freePointer)
2402 {
2403 if(exp->expType)
2404 FreeType(exp->expType);
2405 if(exp->destType)
2406 FreeType(exp->destType);
2407 ((exp ? (__ecereClass_Expression->Destructor ? __ecereClass_Expression->Destructor((void *)exp) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(exp)) : 0), exp = 0);
2408 }
2409 }
2410
2411 void FreeDeclaration(struct Declaration * decl)
2412 {
2413 if(decl->symbol && !decl->symbol->type)
2414 {
2415 }
2416 switch(decl->type)
2417 {
2418 case 0:
2419 {
2420 if(decl->__anon1.__anon1.specifiers)
2421 FreeList(decl->__anon1.__anon1.specifiers, (void *)(FreeSpecifier));
2422 if(decl->__anon1.__anon1.declarators)
2423 FreeList(decl->__anon1.__anon1.declarators, (void *)(FreeDeclarator));
2424 if(decl->extStorage)
2425 FreeSpecifier(decl->extStorage);
2426 break;
2427 }
2428 case 1:
2429 {
2430 if(decl->__anon1.__anon1.specifiers)
2431 FreeList(decl->__anon1.__anon1.specifiers, (void *)(FreeSpecifier));
2432 if(decl->__anon1.__anon1.declarators)
2433 FreeList(decl->__anon1.__anon1.declarators, (void *)(FreeInitDeclarator));
2434 break;
2435 }
2436 case 2:
2437 if(decl->__anon1.inst)
2438 FreeInstance(decl->__anon1.inst);
2439 break;
2440 case 3:
2441 {
2442 if(decl->__anon1.__anon2.exp)
2443 FreeExpression(decl->__anon1.__anon2.exp);
2444 if(decl->__anon1.__anon2.id)
2445 FreeIdentifier(decl->__anon1.__anon2.id);
2446 break;
2447 }
2448 }
2449 ((decl ? (__ecereClass_Declaration->Destructor ? __ecereClass_Declaration->Destructor((void *)decl) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(decl)) : 0), decl = 0);
2450 }
2451
2452 void FreeStatement(struct Statement * stmt)
2453 {
2454 switch(stmt->type)
2455 {
2456 case 13:
2457 {
2458 if(stmt->__anon1.asmStmt.spec)
2459 FreeSpecifier(stmt->__anon1.asmStmt.spec);
2460 if(stmt->__anon1.asmStmt.inputFields)
2461 FreeList(stmt->__anon1.asmStmt.inputFields, (void *)(FreeAsmField));
2462 if(stmt->__anon1.asmStmt.outputFields)
2463 FreeList(stmt->__anon1.asmStmt.outputFields, (void *)(FreeAsmField));
2464 if(stmt->__anon1.asmStmt.clobberedFields)
2465 FreeList(stmt->__anon1.asmStmt.clobberedFields, (void *)(FreeAsmField));
2466 (__ecereNameSpace__ecere__com__eSystem_Delete(stmt->__anon1.asmStmt.statements), stmt->__anon1.asmStmt.statements = 0);
2467 break;
2468 }
2469 case 0:
2470 if(stmt->__anon1.labeled.stmt)
2471 FreeStatement(stmt->__anon1.labeled.stmt);
2472 break;
2473 case 1:
2474 if(stmt->__anon1.caseStmt.exp)
2475 FreeExpression(stmt->__anon1.caseStmt.exp);
2476 if(stmt->__anon1.caseStmt.stmt)
2477 FreeStatement(stmt->__anon1.caseStmt.stmt);
2478 break;
2479 case 14:
2480 if(stmt->__anon1.decl)
2481 FreeDeclaration(stmt->__anon1.decl);
2482 break;
2483 case 2:
2484 {
2485 if(stmt->__anon1.compound.declarations)
2486 FreeList(stmt->__anon1.compound.declarations, (void *)(FreeDeclaration));
2487 if(stmt->__anon1.compound.statements)
2488 FreeList(stmt->__anon1.compound.statements, (void *)(FreeStatement));
2489 if(stmt->__anon1.compound.context)
2490 {
2491 FreeContext(stmt->__anon1.compound.context);
2492 ((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);
2493 }
2494 break;
2495 }
2496 case 3:
2497 {
2498 if(stmt->__anon1.expressions)
2499 FreeList(stmt->__anon1.expressions, (void *)(FreeExpression));
2500 break;
2501 }
2502 case 4:
2503 {
2504 if(stmt->__anon1.ifStmt.exp)
2505 FreeList(stmt->__anon1.ifStmt.exp, (void *)(FreeExpression));
2506 if(stmt->__anon1.ifStmt.stmt)
2507 FreeStatement(stmt->__anon1.ifStmt.stmt);
2508 if(stmt->__anon1.ifStmt.elseStmt)
2509 FreeStatement(stmt->__anon1.ifStmt.elseStmt);
2510 break;
2511 }
2512 case 5:
2513 {
2514 if(stmt->__anon1.switchStmt.exp)
2515 FreeList(stmt->__anon1.switchStmt.exp, (void *)(FreeExpression));
2516 if(stmt->__anon1.switchStmt.stmt)
2517 FreeStatement(stmt->__anon1.switchStmt.stmt);
2518 break;
2519 }
2520 case 6:
2521 {
2522 if(stmt->__anon1.whileStmt.exp)
2523 FreeList(stmt->__anon1.whileStmt.exp, (void *)(FreeExpression));
2524 if(stmt->__anon1.whileStmt.stmt)
2525 FreeStatement(stmt->__anon1.whileStmt.stmt);
2526 break;
2527 }
2528 case 7:
2529 {
2530 if(stmt->__anon1.doWhile.stmt)
2531 FreeStatement(stmt->__anon1.doWhile.stmt);
2532 if(stmt->__anon1.doWhile.exp)
2533 FreeList(stmt->__anon1.doWhile.exp, (void *)(FreeExpression));
2534 break;
2535 }
2536 case 8:
2537 {
2538 if(stmt->__anon1.forStmt.init)
2539 FreeStatement(stmt->__anon1.forStmt.init);
2540 if(stmt->__anon1.forStmt.check)
2541 FreeStatement(stmt->__anon1.forStmt.check);
2542 if(stmt->__anon1.forStmt.increment)
2543 FreeList(stmt->__anon1.forStmt.increment, (void *)(FreeExpression));
2544 if(stmt->__anon1.forStmt.stmt)
2545 FreeStatement(stmt->__anon1.forStmt.stmt);
2546 break;
2547 }
2548 case 18:
2549 {
2550 if(stmt->__anon1.forEachStmt.id)
2551 FreeIdentifier(stmt->__anon1.forEachStmt.id);
2552 if(stmt->__anon1.forEachStmt.exp)
2553 FreeList(stmt->__anon1.forEachStmt.exp, (void *)(FreeExpression));
2554 if(stmt->__anon1.forEachStmt.filter)
2555 FreeList(stmt->__anon1.forEachStmt.filter, (void *)(FreeExpression));
2556 if(stmt->__anon1.forEachStmt.stmt)
2557 FreeStatement(stmt->__anon1.forEachStmt.stmt);
2558 break;
2559 }
2560 case 9:
2561 break;
2562 case 10:
2563 break;
2564 case 11:
2565 break;
2566 case 12:
2567 if(stmt->__anon1.expressions)
2568 FreeList(stmt->__anon1.expressions, (void *)(FreeExpression));
2569 break;
2570 case 17:
2571 case 15:
2572 case 16:
2573 {
2574 if(stmt->__anon1._watch.watcher)
2575 FreeExpression(stmt->__anon1._watch.watcher);
2576 if(stmt->__anon1._watch.object)
2577 FreeExpression(stmt->__anon1._watch.object);
2578 if(stmt->__anon1._watch.watches)
2579 FreeList(stmt->__anon1._watch.watches, (stmt->type == 17) ? (void *)FreePropertyWatch : (void *)FreeIdentifier);
2580 break;
2581 }
2582 }
2583 ((stmt ? (__ecereClass_Statement->Destructor ? __ecereClass_Statement->Destructor((void *)stmt) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(stmt)) : 0), stmt = 0);
2584 }
2585
2586 void FreeFunction(struct FunctionDefinition * func)
2587 {
2588 if(func->body)
2589 FreeStatement(func->body);
2590 if(func->declarator)
2591 FreeDeclarator(func->declarator);
2592 if(func->specifiers)
2593 FreeList(func->specifiers, (void *)(FreeSpecifier));
2594 if(func->declarations)
2595 FreeList(func->declarations, (void *)(FreeDeclaration));
2596 if(func->type)
2597 FreeType(func->type);
2598 ((func ? (__ecereClass_FunctionDefinition->Destructor ? __ecereClass_FunctionDefinition->Destructor((void *)func) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(func)) : 0), func = 0);
2599 }
2600
2601 void FreeClassFunction(struct ClassFunction * func)
2602 {
2603 if(func->declarator && func->declarator->symbol)
2604 {
2605 }
2606 if(func->type)
2607 FreeType(func->type);
2608 if(func->body)
2609 FreeStatement(func->body);
2610 if(func->declarator)
2611 FreeDeclarator(func->declarator);
2612 if(func->specifiers)
2613 FreeList(func->specifiers, (void *)(FreeSpecifier));
2614 if(func->declarations)
2615 FreeList(func->declarations, (void *)(FreeDeclaration));
2616 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Free(&func->attached, (((void *)0)));
2617 ((func ? (__ecereClass_ClassFunction->Destructor ? __ecereClass_ClassFunction->Destructor((void *)func) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(func)) : 0), func = 0);
2618 }
2619
2620 void FreeClassDef(struct ClassDef * def)
2621 {
2622 switch(def->type)
2623 {
2624 case 2:
2625 if(def->__anon1.decl)
2626 FreeDeclaration(def->__anon1.decl);
2627 break;
2628 case 1:
2629 {
2630 FreeList(def->__anon1.defProperties, (void *)(FreeMemberInit));
2631 break;
2632 }
2633 case 0:
2634 if(def->__anon1.function)
2635 FreeClassFunction(def->__anon1.function);
2636 break;
2637 case 3:
2638 if(def->__anon1.propertyDef)
2639 FreeProperty(def->__anon1.propertyDef);
2640 break;
2641 case 10:
2642 if(def->__anon1.propertyDef)
2643 FreeProperty(def->__anon1.propertyDef);
2644 break;
2645 case 13:
2646 break;
2647 case 9:
2648 {
2649 if(def->__anon1.decl)
2650 FreeDeclaration(def->__anon1.decl);
2651 break;
2652 }
2653 case 5:
2654 {
2655 (__ecereNameSpace__ecere__com__eSystem_Delete(def->__anon1.designer), def->__anon1.designer = 0);
2656 break;
2657 }
2658 case 7:
2659 break;
2660 case 6:
2661 break;
2662 case 11:
2663 if(def->__anon1.__anon1.id)
2664 FreeIdentifier(def->__anon1.__anon1.id);
2665 if(def->__anon1.__anon1.initializer)
2666 FreeInitializer(def->__anon1.__anon1.initializer);
2667 break;
2668 case 8:
2669 {
2670 if(def->__anon1.defaultProperty)
2671 FreeIdentifier(def->__anon1.defaultProperty);
2672 break;
2673 }
2674 case 12:
2675 break;
2676 case 4:
2677 {
2678 if(def->__anon1.propertyWatch)
2679 FreePropertyWatch(def->__anon1.propertyWatch);
2680 break;
2681 }
2682 }
2683 ((def ? (__ecereClass_ClassDef->Destructor ? __ecereClass_ClassDef->Destructor((void *)def) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(def)) : 0), def = 0);
2684 }
2685
2686 void FreeSpecifierContents(struct Specifier * spec)
2687 {
2688 switch(spec->type)
2689 {
2690 case 1:
2691 (__ecereNameSpace__ecere__com__eSystem_Delete(spec->__anon1.__anon1.name), spec->__anon1.__anon1.name = 0);
2692 if(spec->__anon1.__anon1.templateArgs)
2693 {
2694 FreeList(spec->__anon1.__anon1.templateArgs, (void *)(FreeTemplateArgument));
2695 spec->__anon1.__anon1.templateArgs = (((void *)0));
2696 }
2697 break;
2698 case 5:
2699 if(spec->__anon1.__anon1.extDecl)
2700 {
2701 FreeExtDecl(spec->__anon1.__anon1.extDecl);
2702 spec->__anon1.__anon1.extDecl = (((void *)0));
2703 }
2704 break;
2705 case 2:
2706 if(spec->__anon1.__anon2.baseSpecs)
2707 {
2708 FreeList(spec->__anon1.__anon2.baseSpecs, (void *)(FreeSpecifier));
2709 spec->__anon1.__anon2.baseSpecs = (((void *)0));
2710 }
2711 if(spec->__anon1.__anon2.id)
2712 {
2713 FreeIdentifier(spec->__anon1.__anon2.id);
2714 spec->__anon1.__anon2.id = (((void *)0));
2715 }
2716 if(spec->__anon1.__anon2.list)
2717 {
2718 FreeList(spec->__anon1.__anon2.list, (void *)(FreeEnumerator));
2719 spec->__anon1.__anon2.list = (((void *)0));
2720 }
2721 if(spec->__anon1.__anon2.definitions)
2722 {
2723 FreeList(spec->__anon1.__anon2.definitions, (void *)(FreeClassDef));
2724 spec->__anon1.__anon2.definitions = (((void *)0));
2725 }
2726 break;
2727 case 3:
2728 case 4:
2729 if(spec->__anon1.__anon2.id)
2730 {
2731 FreeIdentifier(spec->__anon1.__anon2.id);
2732 spec->__anon1.__anon2.id = (((void *)0));
2733 }
2734 if(spec->__anon1.__anon2.definitions)
2735 {
2736 FreeList(spec->__anon1.__anon2.definitions, (void *)(FreeClassDef));
2737 spec->__anon1.__anon2.definitions = (((void *)0));
2738 }
2739 if(spec->__anon1.__anon2.baseSpecs)
2740 {
2741 FreeList(spec->__anon1.__anon2.baseSpecs, (void *)(FreeSpecifier));
2742 spec->__anon1.__anon2.baseSpecs = (((void *)0));
2743 }
2744 if(spec->__anon1.__anon2.extDeclStruct)
2745 {
2746 FreeExtDecl(spec->__anon1.__anon2.extDeclStruct);
2747 spec->__anon1.__anon2.extDeclStruct = (((void *)0));
2748 }
2749 if(spec->__anon1.__anon2.ctx)
2750 {
2751 FreeContext(spec->__anon1.__anon2.ctx);
2752 ((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);
2753 }
2754 break;
2755 case 7:
2756 if(spec->__anon1._class)
2757 {
2758 FreeSpecifier(spec->__anon1._class);
2759 spec->__anon1._class = (((void *)0));
2760 }
2761 break;
2762 }
2763 }
2764
2765 void FreeClass(struct ClassDefinition * _class)
2766 {
2767 if(_class->definitions)
2768 FreeList(_class->definitions, (void *)(FreeClassDef));
2769 if(_class->_class)
2770 FreeSpecifier(_class->_class);
2771 if(_class->baseSpecs)
2772 FreeList(_class->baseSpecs, (void *)(FreeSpecifier));
2773 ((_class ? (__ecereClass_ClassDefinition->Destructor ? __ecereClass_ClassDefinition->Destructor((void *)_class) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(_class)) : 0), _class = 0);
2774 }
2775
2776 void FreeExternal(struct External * external)
2777 {
2778 struct TopoEdge * e;
2779
2780 while((e = ((struct __ecereNameSpace__ecere__com__LinkList *)(((char *)external->incoming + 0 + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->first))
2781 {
2782 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2783 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = e->from->outgoing;
2784
2785 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__LinkList->_vTbl;
2786 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(e->from->outgoing, (struct __ecereNameSpace__ecere__com__IteratorPointer *)e);
2787 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2788 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = external->incoming;
2789
2790 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__LinkList->_vTbl;
2791 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(external->incoming, (struct __ecereNameSpace__ecere__com__IteratorPointer *)e);
2792 ((e ? (__ecereClass_TopoEdge->Destructor ? __ecereClass_TopoEdge->Destructor((void *)e) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(e)) : 0), e = 0);
2793 }
2794 while((e = ((struct __ecereNameSpace__ecere__com__LinkList *)(((char *)external->outgoing + 0 + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->first))
2795 {
2796 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2797 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = e->to->incoming;
2798
2799 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__LinkList->_vTbl;
2800 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(e->to->incoming, (struct __ecereNameSpace__ecere__com__IteratorPointer *)e);
2801 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2802 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = external->outgoing;
2803
2804 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__LinkList->_vTbl;
2805 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(external->outgoing, (struct __ecereNameSpace__ecere__com__IteratorPointer *)e);
2806 if(!e->breakable)
2807 e->to->nonBreakableIncoming--;
2808 ((e ? (__ecereClass_TopoEdge->Destructor ? __ecereClass_TopoEdge->Destructor((void *)e) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(e)) : 0), e = 0);
2809 }
2810 switch(external->type)
2811 {
2812 case 0:
2813 if(external->__anon1.function)
2814 FreeFunction(external->__anon1.function);
2815 break;
2816 case 1:
2817 if(external->__anon1.declaration)
2818 FreeDeclaration(external->__anon1.declaration);
2819 break;
2820 case 2:
2821 if(external->__anon1._class)
2822 FreeClass(external->__anon1._class);
2823 break;
2824 case 3:
2825 (__ecereNameSpace__ecere__com__eSystem_Delete(external->__anon1.importString), external->__anon1.importString = 0);
2826 break;
2827 case 4:
2828 FreeIdentifier(external->__anon1.id);
2829 break;
2830 case 5:
2831 if(external->__anon1.table)
2832 FreeDBTable(external->__anon1.table);
2833 break;
2834 }
2835 ((external ? (__ecereClass_External->Destructor ? __ecereClass_External->Destructor((void *)external) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(external)) : 0), external = 0);
2836 }
2837
2838 void __ecereRegisterModule_freeAst(struct __ecereNameSpace__ecere__com__Instance * module)
2839 {
2840 struct __ecereNameSpace__ecere__com__Class __attribute__((unused)) * class;
2841
2842 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeList", "void FreeList(ecere::sys::OldList list, void (* FreeFunction)(void *))", FreeList, module, 2);
2843 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeType", "void FreeType(Type type)", FreeType, module, 1);
2844 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeSymbol", "void FreeSymbol(Symbol symbol)", FreeSymbol, module, 2);
2845 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeMethodImport", "void FreeMethodImport(MethodImport imp)", FreeMethodImport, module, 2);
2846 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreePropertyImport", "void FreePropertyImport(MethodImport imp)", FreePropertyImport, module, 2);
2847 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeClassImport", "void FreeClassImport(ClassImport imp)", FreeClassImport, module, 2);
2848 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeFunctionImport", "void FreeFunctionImport(ClassImport imp)", FreeFunctionImport, module, 2);
2849 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeModuleImport", "void FreeModuleImport(ModuleImport imp)", FreeModuleImport, module, 1);
2850 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeModuleDefine", "void FreeModuleDefine(Definition def)", FreeModuleDefine, module, 1);
2851 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeExcludedSymbols", "void FreeExcludedSymbols(ecere::sys::OldList excludedSymbols)", FreeExcludedSymbols, module, 1);
2852 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTemplateArgument", "void FreeTemplateArgument(TemplateArgument arg)", FreeTemplateArgument, module, 1);
2853 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTemplateDataType", "void FreeTemplateDataType(TemplateDatatype type)", FreeTemplateDataType, module, 1);
2854 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTemplateParameter", "void FreeTemplateParameter(TemplateParameter param)", FreeTemplateParameter, module, 1);
2855 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTemplateType", "void FreeTemplateType(TemplatedType type)", FreeTemplateType, module, 1);
2856 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeContext", "void FreeContext(Context context)", FreeContext, module, 1);
2857 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeEnumerator", "void FreeEnumerator(Enumerator enumerator)", FreeEnumerator, module, 2);
2858 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeSpecifier", "void FreeSpecifier(Specifier spec)", FreeSpecifier, module, 2);
2859 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeSpecifierContents", "void FreeSpecifierContents(Specifier spec)", FreeSpecifierContents, module, 2);
2860 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeIdentifier", "void FreeIdentifier(Identifier id)", FreeIdentifier, module, 1);
2861 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTypeName", "void FreeTypeName(TypeName typeName)", FreeTypeName, module, 2);
2862 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeExpContents", "void FreeExpContents(Expression exp)", FreeExpContents, module, 1);
2863 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeExpression", "void FreeExpression(Expression exp)", FreeExpression, module, 1);
2864 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreePointer", "void FreePointer(Pointer pointer)", FreePointer, module, 2);
2865 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeAttrib", "void FreeAttrib(Attrib attr)", FreeAttrib, module, 2);
2866 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeAttribute", "void FreeAttribute(Attribute attr)", FreeAttribute, module, 2);
2867 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeExtDecl", "void FreeExtDecl(ExtDecl extDecl)", FreeExtDecl, module, 2);
2868 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeDeclarator", "void FreeDeclarator(Declarator decl)", FreeDeclarator, module, 2);
2869 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreePropertyWatch", "void FreePropertyWatch(PropertyWatch watcher)", FreePropertyWatch, module, 2);
2870 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeAsmField", "void FreeAsmField(AsmField field)", FreeAsmField, module, 2);
2871 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeStatement", "void FreeStatement(Statement stmt)", FreeStatement, module, 2);
2872 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeInitializer", "void FreeInitializer(Initializer initializer)", FreeInitializer, module, 2);
2873 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeInitDeclarator", "void FreeInitDeclarator(InitDeclarator decl)", FreeInitDeclarator, module, 2);
2874 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeDeclaration", "void FreeDeclaration(Declaration decl)", FreeDeclaration, module, 2);
2875 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeFunction", "void FreeFunction(FunctionDefinition func)", FreeFunction, module, 2);
2876 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeMemberInit", "void FreeMemberInit(MemberInit init)", FreeMemberInit, module, 2);
2877 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeMembersInit", "void FreeMembersInit(MembersInit init)", FreeMembersInit, module, 2);
2878 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeInstance", "void FreeInstance(Instantiation inst)", FreeInstance, module, 1);
2879 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeClassFunction", "void FreeClassFunction(ClassFunction func)", FreeClassFunction, module, 1);
2880 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeProperty", "void FreeProperty(PropertyDef def)", FreeProperty, module, 2);
2881 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeClassDef", "void FreeClassDef(ClassDef def)", FreeClassDef, module, 2);
2882 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeClass", "void FreeClass(ClassDefinition _class)", FreeClass, module, 2);
2883 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeDBIndexItem", "void FreeDBIndexItem(DBIndexItem item)", FreeDBIndexItem, module, 2);
2884 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeDBTableEntry", "void FreeDBTableEntry(DBTableEntry entry)", FreeDBTableEntry, module, 2);
2885 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeDBTable", "void FreeDBTable(DBTableDef table)", FreeDBTable, module, 2);
2886 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeExternal", "void FreeExternal(External external)", FreeExternal, module, 2);
2887 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeASTTree", "void FreeASTTree(ecere::sys::OldList ast)", FreeASTTree, module, 1);
2888 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeModuleData", "void FreeModuleData(ecere::com::Module module)", FreeModuleData, module, 2);
2889 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("FreeTypeData", "void FreeTypeData(ecere::com::Module privateModule)", FreeTypeData, module, 1);
2890 }
2891