1 /* Code generated from eC source file: freeAst.ec */
3 #define __runtimePlatform 1
4 #elif defined(__APPLE__)
5 #define __runtimePlatform 3
7 #define __runtimePlatform 2
10 typedef long long int64;
11 typedef unsigned long long uint64;
15 #elif defined(__TINYC__)
17 #define __builtin_va_list va_list
18 #define __builtin_va_start va_start
19 #define __builtin_va_end va_end
21 #define strcasecmp stricmp
22 #define strncasecmp strnicmp
23 #define __declspec(x) __attribute__((x))
27 typedef long long int64;
28 typedef unsigned long long uint64;
30 typedef __int64 int64;
31 typedef unsigned __int64 uint64;
34 #define __ENDIAN_PAD(x) (8 - (x))
36 #define __ENDIAN_PAD(x) 0
39 # if defined(__GNUC__) || defined(__TINYC__)
40 # define stdcall __attribute__((__stdcall__))
42 # define stdcall __stdcall
48 #include <sys/types.h>
49 extern unsigned int inCompiler;
51 extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BinaryTree_first;
53 extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_next;
55 extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__com__MapIterator_map;
57 extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__com__Iterator_data;
59 struct __ecereNameSpace__ecere__sys__OldList
66 } __attribute__ ((gcc_struct));
68 struct __ecereNameSpace__ecere__com__DataValue
83 } __attribute__ ((gcc_struct)) __anon1;
84 } __attribute__ ((gcc_struct));
86 struct __ecereNameSpace__ecere__com__SerialBuffer
88 unsigned char * _buffer;
92 } __attribute__ ((gcc_struct));
94 extern void * __ecereNameSpace__ecere__com__eSystem_New(unsigned int size);
96 extern void * __ecereNameSpace__ecere__com__eSystem_New0(unsigned int size);
98 extern void * __ecereNameSpace__ecere__com__eSystem_Renew(void * memory, unsigned int size);
100 extern void * __ecereNameSpace__ecere__com__eSystem_Renew0(void * memory, unsigned int size);
102 extern void __ecereNameSpace__ecere__com__eSystem_Delete(void * memory);
104 struct __ecereNameSpace__ecere__sys__Item;
106 struct __ecereNameSpace__ecere__sys__OldLink;
114 } __attribute__ ((gcc_struct));
116 struct TemplatedType;
118 struct __ecereNameSpace__ecere__com__LinkList
123 } __attribute__ ((gcc_struct));
125 struct __ecereNameSpace__ecere__com__LinkElement
129 } __attribute__ ((gcc_struct));
131 struct __ecereNameSpace__ecere__com__IteratorPointer;
133 void __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(struct __ecereNameSpace__ecere__sys__OldList * this, void * item);
135 void __ecereMethod___ecereNameSpace__ecere__sys__OldList_Delete(struct __ecereNameSpace__ecere__sys__OldList * this, void * item);
137 void __ecereMethod___ecereNameSpace__ecere__sys__OldList_Free(struct __ecereNameSpace__ecere__sys__OldList * this, void (* freeFn)(void * ));
141 struct CodePosition start;
142 struct CodePosition end;
143 } __attribute__ ((gcc_struct));
145 void FreeList(struct __ecereNameSpace__ecere__sys__OldList * list, void (* FreeFunction)(void *))
147 if(list != (((void *)0)))
149 struct __ecereNameSpace__ecere__sys__Item * item;
151 while((item = list->first))
153 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(list, item);
156 (__ecereNameSpace__ecere__com__eSystem_Delete(list), list = 0);
164 struct __ecereNameSpace__ecere__sys__OldList * attribs;
165 } __attribute__ ((gcc_struct));
174 struct Attrib * attr;
175 } __attribute__ ((gcc_struct)) __anon1;
176 } __attribute__ ((gcc_struct));
180 extern struct Context * curContext;
182 extern struct Context * globalContext;
186 static void _FreeExpression(struct Expression * exp, unsigned int freePointer);
188 void FreeExpContents(struct Expression * exp)
190 _FreeExpression(exp, 0);
193 void FreeExpression(struct Expression * exp)
195 _FreeExpression(exp, 1);
198 struct __ecereNameSpace__ecere__com__Class;
200 struct __ecereNameSpace__ecere__com__Instance
203 struct __ecereNameSpace__ecere__com__Class * _class;
205 } __attribute__ ((gcc_struct));
207 extern long long __ecereNameSpace__ecere__com__eClass_GetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name);
209 extern void __ecereNameSpace__ecere__com__eClass_SetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, long long value);
211 extern void __ecereNameSpace__ecere__com__eInstance_SetMethod(struct __ecereNameSpace__ecere__com__Instance * instance, const char * name, void * function);
213 extern void __ecereNameSpace__ecere__com__eInstance_IncRef(struct __ecereNameSpace__ecere__com__Instance * instance);
215 struct __ecereNameSpace__ecere__com__MapIterator
217 struct __ecereNameSpace__ecere__com__Instance * container;
218 struct __ecereNameSpace__ecere__com__IteratorPointer * pointer;
219 } __attribute__ ((gcc_struct));
221 extern struct __ecereNameSpace__ecere__com__Instance * loadedModules;
223 struct __ecereNameSpace__ecere__com__Iterator
225 struct __ecereNameSpace__ecere__com__Instance * container;
226 struct __ecereNameSpace__ecere__com__IteratorPointer * pointer;
227 } __attribute__ ((gcc_struct));
229 extern void __ecereNameSpace__ecere__com__eInstance_DecRef(struct __ecereNameSpace__ecere__com__Instance * instance);
231 int __ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove;
233 int __ecereVMethodID___ecereNameSpace__ecere__com__Container_GetFirst;
235 struct __ecereNameSpace__ecere__com__Instance * __ecereProp___ecereNameSpace__ecere__com__MapIterator_Get_map(struct __ecereNameSpace__ecere__com__MapIterator * this);
237 void __ecereProp___ecereNameSpace__ecere__com__MapIterator_Set_map(struct __ecereNameSpace__ecere__com__MapIterator * this, struct __ecereNameSpace__ecere__com__Instance * value);
239 unsigned int __ecereMethod___ecereNameSpace__ecere__com__Iterator_Next();
241 uint64 __ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data(struct __ecereNameSpace__ecere__com__Iterator * this);
243 void __ecereProp___ecereNameSpace__ecere__com__Iterator_Set_data(struct __ecereNameSpace__ecere__com__Iterator * this, uint64 value);
245 unsigned int __ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(struct __ecereNameSpace__ecere__com__Iterator * this, const uint64 index, unsigned int create);
247 struct __ecereNameSpace__ecere__sys__BTNode;
249 struct __ecereNameSpace__ecere__sys__BTNode
252 struct __ecereNameSpace__ecere__sys__BTNode * parent;
253 struct __ecereNameSpace__ecere__sys__BTNode * left;
254 struct __ecereNameSpace__ecere__sys__BTNode * right;
256 } __attribute__ ((gcc_struct));
258 struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_next(struct __ecereNameSpace__ecere__sys__BTNode * this);
260 struct __ecereNameSpace__ecere__com__Property;
262 extern void __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
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);
266 extern void __ecereNameSpace__ecere__com__eInstance_Watch(void * instance, struct __ecereNameSpace__ecere__com__Property * _property, void * object, void (* callback)(void * , void * ));
268 extern void __ecereNameSpace__ecere__com__eInstance_FireWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
270 struct __ecereNameSpace__ecere__sys__NamedLink64;
272 struct __ecereNameSpace__ecere__sys__NamedLink64
274 struct __ecereNameSpace__ecere__sys__NamedLink64 * prev;
275 struct __ecereNameSpace__ecere__sys__NamedLink64 * next;
278 } __attribute__ ((gcc_struct));
284 struct MethodImport * prev;
285 struct MethodImport * next;
287 unsigned int isVirtual;
288 } __attribute__ ((gcc_struct));
290 void FreeMethodImport(struct MethodImport * imp)
292 (__ecereNameSpace__ecere__com__eSystem_Delete(imp->name), imp->name = 0);
295 void FreePropertyImport(struct MethodImport * imp)
297 (__ecereNameSpace__ecere__com__eSystem_Delete(imp->name), imp->name = 0);
304 struct Definition * prev;
305 struct Definition * next;
308 } __attribute__ ((gcc_struct));
310 void FreeModuleDefine(struct Definition * def)
312 (__ecereNameSpace__ecere__com__eSystem_Delete(def->name), def->name = 0);
317 extern struct Symbol * FindClass(const char * name);
322 struct Symbol * symbol;
323 struct __ecereNameSpace__ecere__sys__OldList * definitions;
325 } __attribute__ ((gcc_struct));
333 struct ClassImport * prev;
334 struct ClassImport * next;
336 struct __ecereNameSpace__ecere__sys__OldList methods;
337 struct __ecereNameSpace__ecere__sys__OldList properties;
340 } __attribute__ ((gcc_struct));
342 void FreeClassImport(struct ClassImport * imp)
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));
349 void FreeFunctionImport(struct ClassImport * imp)
351 (__ecereNameSpace__ecere__com__eSystem_Delete(imp->name), imp->name = 0);
358 struct ModuleImport * prev;
359 struct ModuleImport * next;
361 struct __ecereNameSpace__ecere__sys__OldList classes;
362 struct __ecereNameSpace__ecere__sys__OldList functions;
365 } __attribute__ ((gcc_struct));
367 void FreeModuleImport(struct ModuleImport * imp)
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));
376 struct TemplateDatatype
378 struct __ecereNameSpace__ecere__sys__OldList * specifiers;
379 struct Declarator * decl;
380 } __attribute__ ((gcc_struct));
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));
399 struct Pointer * prev;
400 struct Pointer * next;
402 struct __ecereNameSpace__ecere__sys__OldList * qualifiers;
403 struct Pointer * pointer;
404 } __attribute__ ((gcc_struct));
406 struct PropertyWatch;
418 struct Attribute * prev;
419 struct Attribute * next;
422 struct Expression * exp;
423 } __attribute__ ((gcc_struct));
431 struct PropertyWatch * prev;
432 struct PropertyWatch * next;
434 struct Statement * compound;
435 struct __ecereNameSpace__ecere__sys__OldList * properties;
436 unsigned int deleteWatch;
437 } __attribute__ ((gcc_struct));
443 struct MemberInit * prev;
444 struct MemberInit * next;
446 struct Location realLoc;
447 struct __ecereNameSpace__ecere__sys__OldList * identifiers;
448 struct Initializer * initializer;
450 unsigned int variable;
451 unsigned int takeOutExp;
452 } __attribute__ ((gcc_struct));
454 struct __ecereNameSpace__ecere__com__Method;
456 struct __ecereNameSpace__ecere__com__ClassProperty;
458 struct __ecereNameSpace__ecere__com__GlobalFunction;
460 struct __ecereNameSpace__ecere__com__Module;
462 extern void __ecereNameSpace__ecere__com__eModule_Unload(struct __ecereNameSpace__ecere__com__Instance * fromModule, struct __ecereNameSpace__ecere__com__Instance * module);
464 extern struct __ecereNameSpace__ecere__com__Instance * __thisModule;
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);
468 struct __ecereNameSpace__ecere__sys__BinaryTree;
470 struct __ecereNameSpace__ecere__sys__BinaryTree
472 struct __ecereNameSpace__ecere__sys__BTNode * root;
474 int (* CompareKey)(struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t a, uintptr_t b);
475 void (* FreeKey)(void * key);
476 } __attribute__ ((gcc_struct));
478 void __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(struct __ecereNameSpace__ecere__sys__BinaryTree * this, struct __ecereNameSpace__ecere__sys__BTNode * node);
480 struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_first(struct __ecereNameSpace__ecere__sys__BinaryTree * this);
484 struct __ecereNameSpace__ecere__com__Property
486 struct __ecereNameSpace__ecere__com__Property * prev;
487 struct __ecereNameSpace__ecere__com__Property * next;
489 unsigned int isProperty;
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 * );
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));
510 struct __ecereNameSpace__ecere__com__Method
513 struct __ecereNameSpace__ecere__com__Method * parent;
514 struct __ecereNameSpace__ecere__com__Method * left;
515 struct __ecereNameSpace__ecere__com__Method * right;
520 struct __ecereNameSpace__ecere__com__Class * _class;
522 const char * dataTypeString;
523 struct Type * dataType;
525 } __attribute__ ((gcc_struct));
530 struct Symbol * parent;
531 struct Symbol * left;
532 struct Symbol * right;
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;
546 struct External * pointerExternal;
547 struct External * structExternal;
548 } __attribute__ ((gcc_struct)) __anon1;
551 struct External * externalGet;
552 struct External * externalSet;
553 struct External * externalPtr;
554 struct External * externalIsSet;
555 } __attribute__ ((gcc_struct)) __anon2;
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;
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;
580 unsigned int classData;
581 unsigned int isStatic;
583 struct __ecereNameSpace__ecere__sys__OldList * templateParams;
584 struct __ecereNameSpace__ecere__sys__OldList templatedClasses;
585 struct Context * ctx;
587 struct Expression * propCategory;
588 unsigned int mustRegister;
589 } __attribute__ ((gcc_struct));
591 struct __ecereNameSpace__ecere__com__ClassProperty
594 struct __ecereNameSpace__ecere__com__ClassProperty * parent;
595 struct __ecereNameSpace__ecere__com__ClassProperty * left;
596 struct __ecereNameSpace__ecere__com__ClassProperty * right;
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));
605 void FreeSymbol(struct Symbol * symbol);
607 void FreeExcludedSymbols(struct __ecereNameSpace__ecere__sys__OldList * excludedSymbols)
609 struct Symbol * symbol;
611 while((symbol = excludedSymbols->first))
613 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(excludedSymbols, symbol);
624 struct Enumerator * prev;
625 struct Enumerator * next;
627 struct Identifier * id;
628 struct Expression * exp;
629 } __attribute__ ((gcc_struct));
633 struct Identifier * prev;
634 struct Identifier * next;
636 struct Symbol * classSym;
637 struct Specifier * _class;
639 struct Identifier * badID;
640 } __attribute__ ((gcc_struct));
644 struct Declarator * prev;
645 struct Declarator * next;
648 struct Symbol * symbol;
649 struct Declarator * declarator;
652 struct Identifier * identifier;
655 struct Expression * exp;
656 struct Expression * posExp;
657 struct Attrib * attrib;
658 } __attribute__ ((gcc_struct)) structDecl;
661 struct Expression * exp;
662 struct Specifier * enumClass;
663 } __attribute__ ((gcc_struct)) array;
666 struct __ecereNameSpace__ecere__sys__OldList * parameters;
667 } __attribute__ ((gcc_struct)) function;
670 struct Pointer * pointer;
671 } __attribute__ ((gcc_struct)) pointer;
674 struct ExtDecl * extended;
675 } __attribute__ ((gcc_struct)) extended;
676 } __attribute__ ((gcc_struct)) __anon1;
677 } __attribute__ ((gcc_struct));
681 struct AsmField * prev;
682 struct AsmField * next;
685 struct Expression * expression;
686 struct Identifier * symbolic;
687 } __attribute__ ((gcc_struct));
691 struct Initializer * prev;
692 struct Initializer * next;
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));
706 struct DBIndexItem * prev;
707 struct DBIndexItem * next;
708 struct Identifier * id;
710 } __attribute__ ((gcc_struct));
716 struct TypeName * prev;
717 struct TypeName * next;
719 struct __ecereNameSpace__ecere__sys__OldList * qualifiers;
720 struct Declarator * declarator;
722 struct Expression * bitCount;
723 } __attribute__ ((gcc_struct));
727 struct DBTableEntry * prev;
728 struct DBTableEntry * next;
730 struct Identifier * id;
735 struct TypeName * dataType;
737 } __attribute__ ((gcc_struct)) __anon1;
738 struct __ecereNameSpace__ecere__sys__OldList * items;
739 } __attribute__ ((gcc_struct)) __anon1;
740 } __attribute__ ((gcc_struct));
742 void FreeExternal(struct External * external);
744 void FreeASTTree(struct __ecereNameSpace__ecere__sys__OldList * ast)
746 if(ast != (((void *)0)))
748 struct External * external;
750 while((external = ast->first))
752 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(ast, external);
753 FreeExternal(external);
755 (__ecereNameSpace__ecere__com__eSystem_Delete(ast), ast = 0);
759 struct ClassFunction;
763 struct MembersInit * prev;
764 struct MembersInit * next;
769 struct __ecereNameSpace__ecere__sys__OldList * dataMembers;
770 struct ClassFunction * function;
771 } __attribute__ ((gcc_struct)) __anon1;
772 } __attribute__ ((gcc_struct));
776 struct ClassFunction * prev;
777 struct ClassFunction * next;
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;
787 struct Symbol * propSet;
788 unsigned int isVirtual;
789 unsigned int isConstructor;
790 unsigned int isDestructor;
791 unsigned int dontMangle;
794 } __attribute__ ((gcc_struct));
796 struct InitDeclarator;
798 struct InitDeclarator
800 struct InitDeclarator * prev;
801 struct InitDeclarator * next;
803 struct Declarator * declarator;
804 struct Initializer * initializer;
805 } __attribute__ ((gcc_struct));
807 struct __ecereNameSpace__ecere__com__DataMember;
809 struct __ecereNameSpace__ecere__com__ClassTemplateArgument
815 const char * dataTypeString;
816 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
817 } __attribute__ ((gcc_struct)) __anon1;
818 struct __ecereNameSpace__ecere__com__DataValue expression;
821 const char * memberString;
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));
832 struct __ecereNameSpace__ecere__com__DataMember
834 struct __ecereNameSpace__ecere__com__DataMember * prev;
835 struct __ecereNameSpace__ecere__com__DataMember * next;
837 unsigned int isProperty;
840 struct __ecereNameSpace__ecere__com__Class * _class;
841 const char * dataTypeString;
842 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
843 struct Type * dataType;
847 struct __ecereNameSpace__ecere__sys__OldList members;
848 struct __ecereNameSpace__ecere__sys__BinaryTree membersAlpha;
850 short structAlignment;
851 short pointerAlignment;
852 } __attribute__ ((gcc_struct));
854 struct __ecereNameSpace__ecere__com__NameSpace;
856 struct __ecereNameSpace__ecere__com__NameSpace
859 struct __ecereNameSpace__ecere__com__NameSpace * btParent;
860 struct __ecereNameSpace__ecere__com__NameSpace * left;
861 struct __ecereNameSpace__ecere__com__NameSpace * right;
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));
870 struct __ecereNameSpace__ecere__com__Class
872 struct __ecereNameSpace__ecere__com__Class * prev;
873 struct __ecereNameSpace__ecere__com__Class * next;
879 unsigned int (* Constructor)(void * );
880 void (* Destructor)(void * );
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;
893 struct __ecereNameSpace__ecere__com__Instance * module;
894 struct __ecereNameSpace__ecere__com__NameSpace * nameSpace;
895 const char * dataTypeString;
896 struct Type * dataType;
898 int defaultAlignment;
899 void (* Initialize)();
901 struct __ecereNameSpace__ecere__sys__OldList selfWatchers;
902 const char * designerClass;
903 unsigned int noExpansion;
904 const char * defaultProperty;
905 unsigned int comRedefinition;
908 unsigned int internalDecl;
910 unsigned int computeSize;
911 short structAlignment;
912 short pointerAlignment;
913 int destructionWatchOffset;
915 struct __ecereNameSpace__ecere__sys__OldList delayedCPValues;
916 int inheritanceAccess;
917 const char * fullName;
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;
925 unsigned int isInstanceClass;
926 unsigned int byValueSystemClass;
927 } __attribute__ ((gcc_struct));
929 struct __ecereNameSpace__ecere__com__GlobalFunction
931 struct __ecereNameSpace__ecere__com__GlobalFunction * prev;
932 struct __ecereNameSpace__ecere__com__GlobalFunction * next;
935 struct __ecereNameSpace__ecere__com__Instance * module;
936 struct __ecereNameSpace__ecere__com__NameSpace * nameSpace;
937 const char * dataTypeString;
938 struct Type * dataType;
940 } __attribute__ ((gcc_struct));
942 struct __ecereNameSpace__ecere__com__Application
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));
953 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
955 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Type;
957 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Context;
959 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Symbol;
961 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TemplateArgument;
963 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TemplateDatatype;
965 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TemplateParameter;
967 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TemplatedType;
969 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__BTNode;
971 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Enumerator;
973 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Specifier;
975 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Identifier;
977 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TypeName;
979 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Expression;
981 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Pointer;
983 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Attrib;
985 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Attribute;
987 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_ExtDecl;
989 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Declarator;
991 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_PropertyWatch;
993 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_AsmField;
995 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Statement;
997 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Initializer;
999 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_InitDeclarator;
1001 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Declaration;
1003 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_FunctionDefinition;
1005 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_MemberInit;
1007 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_MembersInit;
1009 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_Instantiation;
1011 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_ClassFunction;
1013 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_PropertyDef;
1015 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_ClassDef;
1017 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_ClassDefinition;
1019 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_DBIndexItem;
1021 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_DBTableEntry;
1023 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_DBTableDef;
1025 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__LinkList;
1027 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_TopoEdge;
1029 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_External;
1031 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Module;
1033 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__List;
1035 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Map;
1037 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Application;
1039 struct __ecereNameSpace__ecere__com__Module
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;
1053 struct __ecereNameSpace__ecere__com__NameSpace privateNameSpace;
1054 struct __ecereNameSpace__ecere__com__NameSpace publicNameSpace;
1055 } __attribute__ ((gcc_struct));
1057 void FreeTemplateType(struct TemplatedType * type)
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);
1062 void FreeAttribute(struct Attribute * attr)
1064 (__ecereNameSpace__ecere__com__eSystem_Delete(attr->attr), attr->attr = 0);
1066 FreeExpression(attr->exp);
1067 ((attr ? (__ecereClass_Attribute->Destructor ? __ecereClass_Attribute->Destructor((void *)attr) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(attr)) : 0), attr = 0);
1070 void __ecereUnregisterModule_freeAst(struct __ecereNameSpace__ecere__com__Instance * module)
1075 void FreeAttrib(struct Attrib * attr)
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);
1082 void FreeExtDecl(struct ExtDecl * extDecl)
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);
1091 struct ClassDefinition;
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;
1102 struct __ecereNameSpace__ecere__sys__BinaryTree templateTypes;
1103 struct ClassDefinition * classDef;
1104 unsigned int templateTypesOnly;
1105 unsigned int hasNameSpace;
1106 } __attribute__ ((gcc_struct));
1108 struct ClassDefinition
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;
1120 unsigned int deleteWatchable;
1121 } __attribute__ ((gcc_struct));
1123 void FreeContext(struct Context * context)
1125 struct Symbol * symbol;
1127 if(context == curContext)
1128 curContext = globalContext;
1129 while((symbol = (struct Symbol *)context->types.root))
1131 __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(&context->types, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
1134 while((symbol = (struct Symbol *)context->classes.root))
1136 __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(&context->classes, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
1139 while((symbol = (struct Symbol *)context->symbols.root))
1141 __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(&context->symbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
1144 while((symbol = (struct Symbol *)context->structSymbols.root))
1146 __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(&context->structSymbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
1149 while((symbol = (struct Symbol *)context->templateTypes.root))
1151 __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(&context->templateTypes, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
1152 FreeTemplateType((struct TemplatedType *)symbol);
1154 context->nextID = 0;
1155 context->simpleID = 0;
1156 context->parent = (((void *)0));
1159 struct TemplateParameter;
1168 struct Symbol * _class;
1171 struct __ecereNameSpace__ecere__sys__OldList members;
1173 } __attribute__ ((gcc_struct)) __anon1;
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;
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;
1190 struct Type * arrayType;
1192 struct Expression * arraySizeExp;
1193 unsigned int freeExp;
1194 struct Symbol * enumClass;
1195 } __attribute__ ((gcc_struct)) __anon4;
1197 struct TemplateParameter * templateParameter;
1198 } __attribute__ ((gcc_struct)) __anon1;
1203 struct __ecereNameSpace__ecere__com__Class * thisClassFrom;
1204 int classObjectType;
1206 unsigned int offset;
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));
1229 struct Specifier * prev;
1230 struct Specifier * next;
1231 struct Location loc;
1238 struct ExtDecl * extDecl;
1240 struct Symbol * symbol;
1241 struct __ecereNameSpace__ecere__sys__OldList * templateArgs;
1242 struct Specifier * nsSpec;
1243 } __attribute__ ((gcc_struct)) __anon1;
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));
1260 void FreeType(struct Type * type)
1265 if(type->refCount <= 0)
1271 struct __ecereNameSpace__ecere__sys__NamedLink64 * member, * next;
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)
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);
1286 struct Type * member, * next;
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)
1291 next = member->next;
1292 if(member->refCount == 1)
1293 __ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(&type->__anon1.__anon1.members, member);
1300 struct Type * param, * next;
1302 if(type->__anon1.__anon2.returnType)
1303 FreeType(type->__anon1.__anon2.returnType);
1304 for(param = type->__anon1.__anon2.params.first; param; param = next)
1312 if(type->__anon1.__anon4.freeExp && type->__anon1.__anon4.arraySizeExp)
1313 FreeExpression(type->__anon1.__anon4.arraySizeExp);
1315 if(type->__anon1.type)
1316 FreeType(type->__anon1.type);
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);
1326 static void FreeDataMember(struct __ecereNameSpace__ecere__com__DataMember * parentMember)
1328 struct __ecereNameSpace__ecere__com__DataMember * dataMember;
1330 for(dataMember = parentMember->members.first; dataMember; dataMember = dataMember->next)
1332 if(dataMember->type == 2 || dataMember->type == 1)
1333 FreeDataMember(dataMember);
1334 if(dataMember->dataType)
1336 FreeType(dataMember->dataType);
1337 dataMember->dataType = (((void *)0));
1342 static void FreeClassProperties(struct __ecereNameSpace__ecere__com__ClassProperty * classProp)
1345 FreeClassProperties(classProp->left);
1346 if(classProp->right)
1347 FreeClassProperties(classProp->right);
1348 if(classProp->dataType)
1350 FreeType(classProp->dataType);
1351 classProp->dataType = (((void *)0));
1355 struct FunctionDefinition;
1357 struct FunctionDefinition
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;
1370 struct Symbol * propSet;
1372 unsigned int propertyNoThis;
1373 } __attribute__ ((gcc_struct));
1375 struct Instantiation;
1379 struct Expression * prev;
1380 struct Expression * next;
1381 struct Location loc;
1388 struct Identifier * identifier;
1389 } __attribute__ ((gcc_struct)) __anon1;
1390 struct Statement * compound;
1391 struct Instantiation * instance;
1395 unsigned int intlString;
1396 unsigned int wideString;
1397 } __attribute__ ((gcc_struct)) __anon2;
1398 struct __ecereNameSpace__ecere__sys__OldList * list;
1401 struct __ecereNameSpace__ecere__sys__OldList * specifiers;
1402 struct Declarator * decl;
1403 } __attribute__ ((gcc_struct)) _classExp;
1406 struct Identifier * id;
1407 } __attribute__ ((gcc_struct)) classData;
1410 struct Expression * exp;
1411 struct __ecereNameSpace__ecere__sys__OldList * arguments;
1412 struct Location argLoc;
1413 } __attribute__ ((gcc_struct)) call;
1416 struct Expression * exp;
1417 struct __ecereNameSpace__ecere__sys__OldList * index;
1418 } __attribute__ ((gcc_struct)) index;
1421 struct Expression * exp;
1422 struct Identifier * member;
1424 unsigned int thisPtr;
1425 } __attribute__ ((gcc_struct)) member;
1429 struct Expression * exp1;
1430 struct Expression * exp2;
1431 } __attribute__ ((gcc_struct)) op;
1432 struct TypeName * typeName;
1433 struct Specifier * _class;
1436 struct TypeName * typeName;
1437 struct Expression * exp;
1438 } __attribute__ ((gcc_struct)) cast;
1441 struct Expression * cond;
1442 struct __ecereNameSpace__ecere__sys__OldList * exp;
1443 struct Expression * elseExp;
1444 } __attribute__ ((gcc_struct)) cond;
1447 struct TypeName * typeName;
1448 struct Expression * size;
1449 } __attribute__ ((gcc_struct)) _new;
1452 struct TypeName * typeName;
1453 struct Expression * size;
1454 struct Expression * exp;
1455 } __attribute__ ((gcc_struct)) _renew;
1459 struct Identifier * id;
1460 } __attribute__ ((gcc_struct)) db;
1463 struct Expression * ds;
1464 struct Expression * name;
1465 } __attribute__ ((gcc_struct)) dbopen;
1468 struct TypeName * typeName;
1469 struct Initializer * initializer;
1470 } __attribute__ ((gcc_struct)) initializer;
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;
1480 unsigned int hasAddress;
1481 struct Type * expType;
1482 struct Type * destType;
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));
1494 struct Instantiation
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;
1509 } __attribute__ ((gcc_struct));
1511 struct TemplateArgument;
1513 struct TemplateArgument
1515 struct TemplateArgument * prev;
1516 struct TemplateArgument * next;
1517 struct Location loc;
1518 struct Identifier * name;
1522 struct Expression * expression;
1523 struct Identifier * identifier;
1524 struct TemplateDatatype * templateDatatype;
1525 } __attribute__ ((gcc_struct)) __anon1;
1526 } __attribute__ ((gcc_struct));
1528 struct TemplateParameter
1530 struct TemplateParameter * prev;
1531 struct TemplateParameter * next;
1532 struct Location loc;
1534 struct Identifier * identifier;
1537 struct TemplateDatatype * dataType;
1539 } __attribute__ ((gcc_struct)) __anon1;
1540 struct TemplateArgument * defaultArgument;
1541 const char * dataTypeString;
1542 struct Type * baseType;
1543 } __attribute__ ((gcc_struct));
1549 struct Statement * prev;
1550 struct Statement * next;
1551 struct Location loc;
1555 struct __ecereNameSpace__ecere__sys__OldList * expressions;
1558 struct Identifier * id;
1559 struct Statement * stmt;
1560 } __attribute__ ((gcc_struct)) labeled;
1563 struct Expression * exp;
1564 struct Statement * stmt;
1565 } __attribute__ ((gcc_struct)) caseStmt;
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;
1575 struct __ecereNameSpace__ecere__sys__OldList * exp;
1576 struct Statement * stmt;
1577 struct Statement * elseStmt;
1578 } __attribute__ ((gcc_struct)) ifStmt;
1581 struct __ecereNameSpace__ecere__sys__OldList * exp;
1582 struct Statement * stmt;
1583 } __attribute__ ((gcc_struct)) switchStmt;
1586 struct __ecereNameSpace__ecere__sys__OldList * exp;
1587 struct Statement * stmt;
1588 } __attribute__ ((gcc_struct)) whileStmt;
1591 struct __ecereNameSpace__ecere__sys__OldList * exp;
1592 struct Statement * stmt;
1593 } __attribute__ ((gcc_struct)) doWhile;
1596 struct Statement * init;
1597 struct Statement * check;
1598 struct __ecereNameSpace__ecere__sys__OldList * increment;
1599 struct Statement * stmt;
1600 } __attribute__ ((gcc_struct)) forStmt;
1603 struct Identifier * id;
1604 } __attribute__ ((gcc_struct)) gotoStmt;
1607 struct Specifier * spec;
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;
1615 struct Expression * watcher;
1616 struct Expression * object;
1617 struct __ecereNameSpace__ecere__sys__OldList * watches;
1618 } __attribute__ ((gcc_struct)) _watch;
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));
1632 struct Declaration * prev;
1633 struct Declaration * next;
1634 struct Location loc;
1640 struct __ecereNameSpace__ecere__sys__OldList * specifiers;
1641 struct __ecereNameSpace__ecere__sys__OldList * declarators;
1642 } __attribute__ ((gcc_struct)) __anon1;
1643 struct Instantiation * inst;
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;
1653 } __attribute__ ((gcc_struct));
1657 struct External * prev;
1658 struct External * next;
1659 struct Location loc;
1661 struct Symbol * symbol;
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;
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));
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;
1695 unsigned int conversion : 1;
1696 unsigned int isWatchable : 1;
1697 unsigned int isDBProp : 1;
1698 } __attribute__ ((gcc_struct)) __anon1;
1699 } __attribute__ ((gcc_struct));
1701 struct __ecereNameSpace__ecere__com__ClassTemplateParameter;
1703 struct __ecereNameSpace__ecere__com__ClassTemplateParameter
1705 struct __ecereNameSpace__ecere__com__ClassTemplateParameter * prev;
1706 struct __ecereNameSpace__ecere__com__ClassTemplateParameter * next;
1711 const char * dataTypeString;
1713 } __attribute__ ((gcc_struct)) __anon1;
1714 struct __ecereNameSpace__ecere__com__ClassTemplateArgument defaultArg;
1716 } __attribute__ ((gcc_struct));
1718 void FreeDeclarator(struct Declarator * decl);
1720 void FreeIdentifier(struct Identifier * id);
1722 void FreeEnumerator(struct Enumerator * enumerator)
1725 FreeIdentifier(enumerator->id);
1727 FreeExpression(enumerator->exp);
1728 ((enumerator ? (__ecereClass_Enumerator->Destructor ? __ecereClass_Enumerator->Destructor((void *)enumerator) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(enumerator)) : 0), enumerator = 0);
1731 void FreeAsmField(struct AsmField * field)
1733 if(field->expression)
1734 FreeExpression(field->expression);
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);
1741 void FreeInitializer(struct Initializer * initializer)
1743 switch(initializer->type)
1746 FreeList(initializer->__anon1.list, (void *)(FreeInitializer));
1749 if(initializer->__anon1.exp)
1750 FreeExpression(initializer->__anon1.exp);
1754 FreeIdentifier(initializer->id);
1755 ((initializer ? (__ecereClass_Initializer->Destructor ? __ecereClass_Initializer->Destructor((void *)initializer) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(initializer)) : 0), initializer = 0);
1758 void FreeDBIndexItem(struct DBIndexItem * item)
1761 FreeIdentifier(item->id);
1762 ((item ? (__ecereClass_DBIndexItem->Destructor ? __ecereClass_DBIndexItem->Destructor((void *)item) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(item)) : 0), item = 0);
1765 void FreeInitDeclarator(struct InitDeclarator * decl)
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);
1774 void FreeMemberInit(struct MemberInit * init)
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);
1783 void FreeSpecifierContents(struct Specifier * spec);
1785 void FreeSpecifier(struct Specifier * spec)
1789 FreeSpecifierContents(spec);
1790 ((spec ? (__ecereClass_Specifier->Destructor ? __ecereClass_Specifier->Destructor((void *)spec) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(spec)) : 0), spec = 0);
1794 void FreeTemplateDataType(struct TemplateDatatype * type)
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);
1803 void FreeIdentifier(struct Identifier * id)
1806 FreeIdentifier(id->badID);
1807 (__ecereNameSpace__ecere__com__eSystem_Delete(id->string), id->string = 0);
1809 FreeSpecifier(id->_class);
1810 ((id ? (__ecereClass_Identifier->Destructor ? __ecereClass_Identifier->Destructor((void *)id) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(id)) : 0), id = 0);
1813 void FreeTypeName(struct TypeName * typeName)
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);
1824 void FreePointer(struct Pointer * pointer)
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);
1833 void FreeTemplateArgument(struct TemplateArgument * arg)
1838 if(arg->__anon1.expression)
1839 FreeExpression(arg->__anon1.expression);
1842 if(arg->__anon1.identifier)
1843 FreeIdentifier(arg->__anon1.identifier);
1846 if(arg->__anon1.templateDatatype)
1847 FreeTemplateDataType(arg->__anon1.templateDatatype);
1851 FreeIdentifier(arg->name);
1852 ((arg ? (__ecereClass_TemplateArgument->Destructor ? __ecereClass_TemplateArgument->Destructor((void *)arg) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(arg)) : 0), arg = 0);
1855 void FreeDBTableEntry(struct DBTableEntry * entry)
1858 FreeIdentifier(entry->id);
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);
1868 if(entry->__anon1.items)
1869 FreeList(entry->__anon1.items, (void *)(FreeDBIndexItem));
1872 ((entry ? (__ecereClass_DBTableEntry->Destructor ? __ecereClass_DBTableEntry->Destructor((void *)entry) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(entry)) : 0), entry = 0);
1875 void FreeDeclarator(struct Declarator * decl)
1877 if(decl->declarator)
1878 FreeDeclarator(decl->declarator);
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);
1890 FreeIdentifier(decl->__anon1.identifier);
1895 if(decl->__anon1.array.exp)
1896 FreeExpression(decl->__anon1.array.exp);
1897 if(decl->__anon1.array.enumClass)
1898 FreeSpecifier(decl->__anon1.array.enumClass);
1901 FreeList(decl->__anon1.function.parameters, (void *)(FreeTypeName));
1904 if(decl->__anon1.pointer.pointer)
1905 FreePointer(decl->__anon1.pointer.pointer);
1909 if(decl->__anon1.extended.extended)
1910 FreeExtDecl(decl->__anon1.extended.extended);
1913 ((decl ? (__ecereClass_Declarator->Destructor ? __ecereClass_Declarator->Destructor((void *)decl) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(decl)) : 0), decl = 0);
1916 void FreeTemplateParameter(struct TemplateParameter * param)
1918 if(param->identifier)
1920 FreeIdentifier(param->identifier);
1922 if(param->type == 0 || param->type == 2)
1924 if(param->__anon1.dataType)
1925 FreeTemplateDataType(param->__anon1.dataType);
1927 if(param->defaultArgument)
1928 FreeTemplateArgument(param->defaultArgument);
1930 FreeType(param->baseType);
1931 ((param ? (__ecereClass_TemplateParameter->Destructor ? __ecereClass_TemplateParameter->Destructor((void *)param) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(param)) : 0), param = 0);
1934 void FreeDBTable(struct DBTableDef * table)
1936 if(table->definitions)
1937 FreeList(table->definitions, (void *)(FreeDBTableEntry));
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);
1943 void FreeSymbol(struct Symbol * symbol)
1945 struct __ecereNameSpace__ecere__sys__OldLink * link;
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);
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);
1965 ((symbol ? (__ecereClass_Symbol->Destructor ? __ecereClass_Symbol->Destructor((void *)symbol) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(symbol)) : 0), symbol = 0);
1968 void FreeModuleData(struct __ecereNameSpace__ecere__com__Instance * module)
1970 struct __ecereNameSpace__ecere__com__Class * _class;
1971 struct __ecereNameSpace__ecere__com__GlobalFunction * function;
1973 for(_class = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->classes.first; _class; _class = _class->next)
1975 struct __ecereNameSpace__ecere__com__DataMember * dataMember;
1976 struct __ecereNameSpace__ecere__com__Method * method;
1977 struct __ecereNameSpace__ecere__com__ClassTemplateParameter * param;
1979 if(_class->dataType)
1981 FreeType(_class->dataType);
1982 _class->dataType = (((void *)0));
1984 for(dataMember = _class->membersAndProperties.first; dataMember; dataMember = dataMember->next)
1986 if(dataMember->isProperty)
1988 struct __ecereNameSpace__ecere__com__Property * prop = (struct __ecereNameSpace__ecere__com__Property *)dataMember;
1992 FreeSymbol(prop->symbol);
1997 if(dataMember->type == 2 || dataMember->type == 1)
1998 FreeDataMember(dataMember);
2000 if(dataMember->dataType)
2002 FreeType(dataMember->dataType);
2003 dataMember->dataType = (((void *)0));
2006 for(dataMember = _class->conversions.first; dataMember; dataMember = dataMember->next)
2008 struct __ecereNameSpace__ecere__com__Property * prop = (struct __ecereNameSpace__ecere__com__Property *)dataMember;
2012 FreeSymbol(prop->symbol);
2016 FreeType(prop->dataType);
2017 prop->dataType = (((void *)0));
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)))
2024 if(method->dataType)
2026 FreeType(method->dataType);
2027 method->dataType = (((void *)0));
2031 FreeSymbol(method->symbol);
2034 for(param = _class->templateParams.first; param; param = param->next)
2038 FreeTemplateParameter(param->param);
2039 param->param = (((void *)0));
2043 for(function = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->functions.first; function; function = function->next)
2045 if(function->dataType)
2046 FreeType(function->dataType);
2047 if(function->symbol)
2048 FreeSymbol(function->symbol);
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);
2054 while(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Next((void *)(&mapIt)))
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 =
2061 unsigned int found = 0;
2063 while(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Next(&it))
2065 if(((struct __ecereNameSpace__ecere__com__Instance *)(uintptr_t)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data(&it)) == module)
2067 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2068 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = list;
2070 __internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__List->_vTbl;
2071 })[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(list, it.pointer);
2078 if(((struct __ecereNameSpace__ecere__com__LinkList *)(((char *)list + 0 + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->count == 1)
2080 struct __ecereNameSpace__ecere__com__Instance * mod = (((struct __ecereNameSpace__ecere__com__Instance *)((uintptr_t)(__extension__ ({
2081 struct __ecereNameSpace__ecere__com__Iterator __internalIterator =
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));
2090 ((void (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * it))__extension__ ({
2091 struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = list;
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;
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;
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);
2113 void FreeTypeData(struct __ecereNameSpace__ecere__com__Instance * privateModule)
2115 struct __ecereNameSpace__ecere__com__Instance * m;
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)
2121 FreeModuleData(privateModule);
2128 struct ClassDef * prev;
2129 struct ClassDef * next;
2130 struct Location loc;
2134 struct Declaration * decl;
2135 struct ClassFunction * function;
2136 struct __ecereNameSpace__ecere__sys__OldList * defProperties;
2137 struct PropertyDef * propertyDef;
2138 struct PropertyWatch * propertyWatch;
2140 struct Identifier * defaultProperty;
2143 struct Identifier * id;
2144 struct Initializer * initializer;
2145 } __attribute__ ((gcc_struct)) __anon1;
2146 } __attribute__ ((gcc_struct)) __anon1;
2149 } __attribute__ ((gcc_struct));
2151 void FreeStatement(struct Statement * stmt);
2153 void FreePropertyWatch(struct PropertyWatch * watcher)
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);
2162 void FreeProperty(struct PropertyDef * def)
2165 FreeList(def->specifiers, (void *)(FreeSpecifier));
2167 FreeDeclarator(def->declarator);
2169 FreeIdentifier(def->id);
2171 FreeStatement(def->getStmt);
2173 FreeStatement(def->setStmt);
2175 FreeStatement(def->issetStmt);
2177 FreeExpression(def->category);
2181 ((def ? (__ecereClass_PropertyDef->Destructor ? __ecereClass_PropertyDef->Destructor((void *)def) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(def)) : 0), def = 0);
2184 void FreeClassFunction(struct ClassFunction * func);
2186 void FreeMembersInit(struct MembersInit * init)
2188 if(init->type == 0 && init->__anon1.dataMembers)
2189 FreeList(init->__anon1.dataMembers, (void *)(FreeMemberInit));
2190 if(init->type == 1 && init->__anon1.function)
2192 FreeClassFunction(init->__anon1.function);
2194 ((init ? (__ecereClass_MembersInit->Destructor ? __ecereClass_MembersInit->Destructor((void *)init) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(init)) : 0), init = 0);
2197 void FreeInstance(struct Instantiation * inst)
2201 FreeList(inst->members, (void *)(FreeMembersInit));
2204 FreeExpression(inst->exp);
2207 struct Symbol * classSym = FindClass(inst->_class->__anon1.__anon1.name);
2208 struct __ecereNameSpace__ecere__com__Class * _class = classSym ? classSym->__anon1.registered : (((void *)0));
2212 if(_class->type == 0)
2214 struct __ecereNameSpace__ecere__com__Instance * instance = (struct __ecereNameSpace__ecere__com__Instance *)inst->data;
2216 (__ecereNameSpace__ecere__com__eInstance_DecRef(instance), instance = 0);
2218 else if(_class->type == 5)
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);
2224 else if(_class->type == 1)
2226 (__ecereNameSpace__ecere__com__eSystem_Delete(inst->data), inst->data = 0);
2231 struct __ecereNameSpace__ecere__com__Instance * instance = (struct __ecereNameSpace__ecere__com__Instance *)inst->data;
2233 (__ecereNameSpace__ecere__com__eInstance_DecRef(instance), instance = 0);
2237 FreeSpecifier(inst->_class);
2238 ((inst ? (__ecereClass_Instantiation->Destructor ? __ecereClass_Instantiation->Destructor((void *)inst) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(inst)) : 0), inst = 0);
2241 static void _FreeExpression(struct Expression * exp, unsigned int freePointer)
2247 FreeExpression(exp->__anon1._new.size);
2248 FreeTypeName(exp->__anon1._new.typeName);
2252 FreeExpression(exp->__anon1._renew.exp);
2253 FreeExpression(exp->__anon1._renew.size);
2254 FreeTypeName(exp->__anon1._renew.typeName);
2257 (__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.__anon1.constant), exp->__anon1.__anon1.constant = 0);
2260 if(exp->__anon1.__anon1.identifier)
2261 FreeIdentifier(exp->__anon1.__anon1.identifier);
2264 if(exp->__anon1.instance)
2266 FreeInstance(exp->__anon1.instance);
2267 exp->__anon1.instance = (((void *)0));
2271 (__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.__anon2.string), exp->__anon1.__anon2.string = 0);
2274 if(exp->__anon1.op.exp1)
2275 FreeExpression(exp->__anon1.op.exp1);
2276 if(exp->__anon1.op.exp2)
2277 FreeExpression(exp->__anon1.op.exp2);
2281 FreeList(exp->__anon1.list, (void *)(FreeExpression));
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));
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));
2302 if(exp->__anon1.member.exp)
2303 FreeExpression(exp->__anon1.member.exp);
2304 if(exp->__anon1.member.member)
2305 FreeIdentifier(exp->__anon1.member.member);
2308 FreeTypeName(exp->__anon1._new.typeName);
2311 FreeTypeName(exp->__anon1._new.typeName);
2314 if(exp->__anon1.cast.exp)
2315 FreeExpression(exp->__anon1.cast.exp);
2316 FreeTypeName(exp->__anon1.cast.typeName);
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);
2330 if(exp->__anon1.compound)
2331 FreeStatement(exp->__anon1.compound);
2336 if(exp->__anon1.list)
2337 FreeList(exp->__anon1.list, (void *)(FreeExpression));
2342 if(exp->__anon1.initializer.typeName)
2343 FreeTypeName(exp->__anon1.initializer.typeName);
2344 if(exp->__anon1.initializer.initializer)
2345 FreeInitializer(exp->__anon1.initializer.initializer);
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);
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);
2364 if(exp->__anon1.dbopen.ds)
2365 FreeExpression(exp->__anon1.dbopen.ds);
2366 if(exp->__anon1.dbopen.name)
2367 FreeExpression(exp->__anon1.dbopen.name);
2370 if(exp->__anon1.vaArg.exp)
2371 FreeExpression(exp->__anon1.vaArg.exp);
2372 if(exp->__anon1.vaArg.typeName)
2373 FreeTypeName(exp->__anon1.vaArg.typeName);
2376 if(exp->__anon1.list)
2377 FreeList(exp->__anon1.list, (void *)(FreeExpression));
2380 if(exp->__anon1._class)
2381 FreeSpecifier(exp->__anon1._class);
2384 if(exp->__anon1.classData.id)
2385 FreeIdentifier(exp->__anon1.classData.id);
2388 if(exp->__anon1.__anon1.identifier)
2389 FreeIdentifier(exp->__anon1.__anon1.identifier);
2392 (__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.__anon1.constant), exp->__anon1.__anon1.constant = 0);
2396 if(exp->__anon1.member.exp)
2397 FreeExpression(exp->__anon1.member.exp);
2398 if(exp->__anon1.member.member)
2399 FreeIdentifier(exp->__anon1.member.member);
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));
2415 FreeType(exp->expType);
2417 FreeType(exp->destType);
2418 ((exp ? (__ecereClass_Expression->Destructor ? __ecereClass_Expression->Destructor((void *)exp) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(exp)) : 0), exp = 0);
2422 void FreeDeclaration(struct Declaration * decl)
2424 if(decl->symbol && !decl->symbol->type)
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);
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));
2448 if(decl->__anon1.inst)
2449 FreeInstance(decl->__anon1.inst);
2453 if(decl->__anon1.__anon2.exp)
2454 FreeExpression(decl->__anon1.__anon2.exp);
2455 if(decl->__anon1.__anon2.id)
2456 FreeIdentifier(decl->__anon1.__anon2.id);
2460 ((decl ? (__ecereClass_Declaration->Destructor ? __ecereClass_Declaration->Destructor((void *)decl) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(decl)) : 0), decl = 0);
2463 void FreeStatement(struct Statement * stmt)
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);
2481 if(stmt->__anon1.labeled.stmt)
2482 FreeStatement(stmt->__anon1.labeled.stmt);
2485 if(stmt->__anon1.caseStmt.exp)
2486 FreeExpression(stmt->__anon1.caseStmt.exp);
2487 if(stmt->__anon1.caseStmt.stmt)
2488 FreeStatement(stmt->__anon1.caseStmt.stmt);
2491 if(stmt->__anon1.decl)
2492 FreeDeclaration(stmt->__anon1.decl);
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)
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);
2509 if(stmt->__anon1.expressions)
2510 FreeList(stmt->__anon1.expressions, (void *)(FreeExpression));
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);
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);
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);
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));
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);
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);
2578 if(stmt->__anon1.expressions)
2579 FreeList(stmt->__anon1.expressions, (void *)(FreeExpression));
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);
2594 ((stmt ? (__ecereClass_Statement->Destructor ? __ecereClass_Statement->Destructor((void *)stmt) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(stmt)) : 0), stmt = 0);
2597 void FreeFunction(struct FunctionDefinition * func)
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));
2608 FreeType(func->type);
2609 ((func ? (__ecereClass_FunctionDefinition->Destructor ? __ecereClass_FunctionDefinition->Destructor((void *)func) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(func)) : 0), func = 0);
2612 void FreeClassFunction(struct ClassFunction * func)
2614 if(func->declarator && func->declarator->symbol)
2618 FreeType(func->type);
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);
2631 void FreeClassDef(struct ClassDef * def)
2636 if(def->__anon1.decl)
2637 FreeDeclaration(def->__anon1.decl);
2641 FreeList(def->__anon1.defProperties, (void *)(FreeMemberInit));
2645 if(def->__anon1.function)
2646 FreeClassFunction(def->__anon1.function);
2649 if(def->__anon1.propertyDef)
2650 FreeProperty(def->__anon1.propertyDef);
2653 if(def->__anon1.propertyDef)
2654 FreeProperty(def->__anon1.propertyDef);
2660 if(def->__anon1.decl)
2661 FreeDeclaration(def->__anon1.decl);
2666 (__ecereNameSpace__ecere__com__eSystem_Delete(def->__anon1.designer), def->__anon1.designer = 0);
2674 if(def->__anon1.__anon1.id)
2675 FreeIdentifier(def->__anon1.__anon1.id);
2676 if(def->__anon1.__anon1.initializer)
2677 FreeInitializer(def->__anon1.__anon1.initializer);
2681 if(def->__anon1.defaultProperty)
2682 FreeIdentifier(def->__anon1.defaultProperty);
2689 if(def->__anon1.propertyWatch)
2690 FreePropertyWatch(def->__anon1.propertyWatch);
2694 ((def ? (__ecereClass_ClassDef->Destructor ? __ecereClass_ClassDef->Destructor((void *)def) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(def)) : 0), def = 0);
2697 void FreeSpecifierContents(struct Specifier * spec)
2702 (__ecereNameSpace__ecere__com__eSystem_Delete(spec->__anon1.__anon1.name), spec->__anon1.__anon1.name = 0);
2703 if(spec->__anon1.__anon1.templateArgs)
2705 FreeList(spec->__anon1.__anon1.templateArgs, (void *)(FreeTemplateArgument));
2706 spec->__anon1.__anon1.templateArgs = (((void *)0));
2710 if(spec->__anon1.__anon1.extDecl)
2712 FreeExtDecl(spec->__anon1.__anon1.extDecl);
2713 spec->__anon1.__anon1.extDecl = (((void *)0));
2717 if(spec->__anon1.__anon2.baseSpecs)
2719 FreeList(spec->__anon1.__anon2.baseSpecs, (void *)(FreeSpecifier));
2720 spec->__anon1.__anon2.baseSpecs = (((void *)0));
2722 if(spec->__anon1.__anon2.id)
2724 FreeIdentifier(spec->__anon1.__anon2.id);
2725 spec->__anon1.__anon2.id = (((void *)0));
2727 if(spec->__anon1.__anon2.list)
2729 FreeList(spec->__anon1.__anon2.list, (void *)(FreeEnumerator));
2730 spec->__anon1.__anon2.list = (((void *)0));
2732 if(spec->__anon1.__anon2.definitions)
2734 FreeList(spec->__anon1.__anon2.definitions, (void *)(FreeClassDef));
2735 spec->__anon1.__anon2.definitions = (((void *)0));
2740 if(spec->__anon1.__anon2.id)
2742 FreeIdentifier(spec->__anon1.__anon2.id);
2743 spec->__anon1.__anon2.id = (((void *)0));
2745 if(spec->__anon1.__anon2.definitions)
2747 FreeList(spec->__anon1.__anon2.definitions, (void *)(FreeClassDef));
2748 spec->__anon1.__anon2.definitions = (((void *)0));
2750 if(spec->__anon1.__anon2.baseSpecs)
2752 FreeList(spec->__anon1.__anon2.baseSpecs, (void *)(FreeSpecifier));
2753 spec->__anon1.__anon2.baseSpecs = (((void *)0));
2755 if(spec->__anon1.__anon2.extDeclStruct)
2757 FreeExtDecl(spec->__anon1.__anon2.extDeclStruct);
2758 spec->__anon1.__anon2.extDeclStruct = (((void *)0));
2760 if(spec->__anon1.__anon2.ctx)
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);
2767 if(spec->__anon1._class)
2769 FreeSpecifier(spec->__anon1._class);
2770 spec->__anon1._class = (((void *)0));
2776 void FreeClass(struct ClassDefinition * _class)
2778 if(_class->definitions)
2779 FreeList(_class->definitions, (void *)(FreeClassDef));
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);
2787 void FreeExternal(struct External * external)
2789 struct TopoEdge * e;
2791 while((e = ((struct __ecereNameSpace__ecere__com__LinkList *)(((char *)external->incoming + 0 + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->first))
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;
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;
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);
2805 while((e = ((struct __ecereNameSpace__ecere__com__LinkList *)(((char *)external->outgoing + 0 + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->first))
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;
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;
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);
2818 e->to->nonBreakableIncoming--;
2819 ((e ? (__ecereClass_TopoEdge->Destructor ? __ecereClass_TopoEdge->Destructor((void *)e) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(e)) : 0), e = 0);
2821 switch(external->type)
2824 if(external->__anon1.function)
2825 FreeFunction(external->__anon1.function);
2828 if(external->__anon1.declaration)
2829 FreeDeclaration(external->__anon1.declaration);
2832 if(external->__anon1._class)
2833 FreeClass(external->__anon1._class);
2836 (__ecereNameSpace__ecere__com__eSystem_Delete(external->__anon1.importString), external->__anon1.importString = 0);
2839 FreeIdentifier(external->__anon1.id);
2842 if(external->__anon1.table)
2843 FreeDBTable(external->__anon1.table);
2846 ((external ? (__ecereClass_External->Destructor ? __ecereClass_External->Destructor((void *)external) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(external)) : 0), external = 0);
2849 void __ecereRegisterModule_freeAst(struct __ecereNameSpace__ecere__com__Instance * module)
2851 struct __ecereNameSpace__ecere__com__Class __attribute__((unused)) * class;
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);