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