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