2 typedef long long int64;
3 typedef unsigned long long uint64;
7 #elif defined(__TINYC__)
9 #define __builtin_va_list va_list
10 #define __builtin_va_start va_start
11 #define __builtin_va_end va_end
13 #define strcasecmp stricmp
14 #define strncasecmp strnicmp
15 #define __declspec(x) __attribute__((x))
19 typedef long long int64;
20 typedef unsigned long long uint64;
22 typedef __int64 int64;
23 typedef unsigned __int64 uint64;
26 #define __ENDIAN_PAD(x) (8 - (x))
28 #define __ENDIAN_PAD(x) 0
32 typedef unsigned long long int uintptr_t;
33 typedef long long int intptr_t;
35 typedef unsigned int uintptr_t;
41 extern void * __ecereNameSpace__ecere__com__eSystem_New(unsigned int size);
43 extern void * __ecereNameSpace__ecere__com__eSystem_New0(unsigned int size);
45 extern void * __ecereNameSpace__ecere__com__eSystem_Renew(void * memory, unsigned int size);
47 extern void * __ecereNameSpace__ecere__com__eSystem_Renew0(void * memory, unsigned int size);
49 struct __ecereNameSpace__ecere__sys__BTNode
52 struct __ecereNameSpace__ecere__sys__BTNode * parent, * left, * right;
54 } __attribute__ ((gcc_struct));
56 static struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__BTNode;
58 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__BinaryTree;
60 struct __ecereNameSpace__ecere__sys__BinaryTree
62 struct __ecereNameSpace__ecere__sys__BTNode * root;
64 int (* CompareKey)(struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t a, uintptr_t b);
65 void (* FreeKey)(void * key);
66 } __attribute__ ((gcc_struct));
68 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__OldList;
70 struct __ecereNameSpace__ecere__sys__OldList
77 } __attribute__ ((gcc_struct));
79 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Class;
81 struct __ecereNameSpace__ecere__com__Class
83 struct __ecereNameSpace__ecere__com__Class * prev;
84 struct __ecereNameSpace__ecere__com__Class * next;
90 int (* Constructor)(struct __ecereNameSpace__ecere__com__Instance *);
91 void (* Destructor)(struct __ecereNameSpace__ecere__com__Instance *);
94 struct __ecereNameSpace__ecere__com__Class * base;
95 struct __ecereNameSpace__ecere__sys__BinaryTree methods;
96 struct __ecereNameSpace__ecere__sys__BinaryTree members;
97 struct __ecereNameSpace__ecere__sys__BinaryTree prop;
98 struct __ecereNameSpace__ecere__sys__OldList membersAndProperties;
99 struct __ecereNameSpace__ecere__sys__BinaryTree classProperties;
100 struct __ecereNameSpace__ecere__sys__OldList derivatives;
104 struct __ecereNameSpace__ecere__com__Instance * module;
105 struct __ecereNameSpace__ecere__com__NameSpace * nameSpace;
106 char * dataTypeString;
107 struct __ecereNameSpace__ecere__com__Instance * dataType;
109 int defaultAlignment;
110 void (* Initialize)();
112 struct __ecereNameSpace__ecere__sys__OldList selfWatchers;
113 char * designerClass;
114 unsigned int noExpansion;
115 char * defaultProperty;
116 unsigned int comRedefinition;
118 unsigned int isRemote;
119 unsigned int internalDecl;
121 unsigned int computeSize;
123 int destructionWatchOffset;
125 struct __ecereNameSpace__ecere__sys__OldList delayedCPValues;
126 int inheritanceAccess;
129 struct __ecereNameSpace__ecere__sys__OldList conversions;
130 struct __ecereNameSpace__ecere__sys__OldList templateParams;
131 struct __ecereNameSpace__ecere__com__ClassTemplateArgument * templateArgs;
132 struct __ecereNameSpace__ecere__com__Class * templateClass;
133 struct __ecereNameSpace__ecere__sys__OldList templatized;
135 } __attribute__ ((gcc_struct));
137 extern long long __ecereNameSpace__ecere__com__eClass_GetProperty(struct __ecereNameSpace__ecere__com__Class * _class, char * name);
139 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Instance;
141 struct __ecereNameSpace__ecere__com__Instance
144 struct __ecereNameSpace__ecere__com__Class * _class;
146 } __attribute__ ((gcc_struct));
148 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Property;
150 struct __ecereNameSpace__ecere__com__Property
152 struct __ecereNameSpace__ecere__com__Property * prev;
153 struct __ecereNameSpace__ecere__com__Property * next;
155 unsigned int isProperty;
158 struct __ecereNameSpace__ecere__com__Class * _class;
159 char * dataTypeString;
160 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
161 struct __ecereNameSpace__ecere__com__Instance * dataType;
162 void (* Set)(void * , int);
163 int (* Get)(void * );
164 unsigned int (* IsSet)(void * );
168 unsigned int conversion;
169 unsigned int watcherOffset;
171 unsigned int compiled;
172 unsigned int selfWatchable;
173 unsigned int isWatchable;
174 } __attribute__ ((gcc_struct));
176 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__DataMember;
178 struct __ecereNameSpace__ecere__com__DataMember
180 struct __ecereNameSpace__ecere__com__DataMember * prev;
181 struct __ecereNameSpace__ecere__com__DataMember * next;
183 unsigned int isProperty;
186 struct __ecereNameSpace__ecere__com__Class * _class;
187 char * dataTypeString;
188 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
189 struct __ecereNameSpace__ecere__com__Instance * dataType;
193 struct __ecereNameSpace__ecere__sys__OldList members;
194 struct __ecereNameSpace__ecere__sys__BinaryTree membersAlpha;
197 } __attribute__ ((gcc_struct));
199 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Method;
201 struct __ecereNameSpace__ecere__com__Method
204 struct __ecereNameSpace__ecere__com__Method * parent;
205 struct __ecereNameSpace__ecere__com__Method * left;
206 struct __ecereNameSpace__ecere__com__Method * right;
211 struct __ecereNameSpace__ecere__com__Class * _class;
213 char * dataTypeString;
214 struct __ecereNameSpace__ecere__com__Instance * dataType;
216 } __attribute__ ((gcc_struct));
218 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__SerialBuffer;
220 struct __ecereNameSpace__ecere__com__SerialBuffer
222 unsigned char * _buffer;
226 } __attribute__ ((gcc_struct));
228 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__DataValue;
230 struct __ecereNameSpace__ecere__com__DataValue
245 } __attribute__ ((gcc_struct));
246 } __attribute__ ((gcc_struct));
248 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__ClassTemplateArgument;
250 struct __ecereNameSpace__ecere__com__ClassTemplateArgument
256 char * dataTypeString;
257 struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
258 } __attribute__ ((gcc_struct));
259 struct __ecereNameSpace__ecere__com__DataValue expression;
265 struct __ecereNameSpace__ecere__com__DataMember * member;
266 struct __ecereNameSpace__ecere__com__Property * prop;
267 struct __ecereNameSpace__ecere__com__Method * method;
268 } __attribute__ ((gcc_struct));
269 } __attribute__ ((gcc_struct));
270 } __attribute__ ((gcc_struct));
271 } __attribute__ ((gcc_struct));
273 typedef __builtin_va_list __gnuc_va_list;
275 typedef __gnuc_va_list va_list;
277 static struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__TreePrintStyle;
279 extern int vsprintf(char * , const char * , __builtin_va_list);
281 extern int strlen(const char * );
283 void __ecereNameSpace__ecere__sys__strcatf(char * string, char * format, ...)
287 __builtin_va_start(args, format);
288 vsprintf(string + strlen(string), format, args);
289 __builtin_va_end(args);
292 static struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_prev, * __ecerePropM___ecereNameSpace__ecere__sys__BTNode_prev;
294 static struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_next, * __ecerePropM___ecereNameSpace__ecere__sys__BTNode_next;
296 static struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_count, * __ecerePropM___ecereNameSpace__ecere__sys__BTNode_count;
298 static struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_balanceFactor, * __ecerePropM___ecereNameSpace__ecere__sys__BTNode_balanceFactor;
300 void __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(struct __ecereNameSpace__ecere__com__Instance * this, struct __ecereNameSpace__ecere__com__Class * class, void * data);
302 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_bool;
304 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_uintptr;
306 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_uint;
308 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_OnSerialize(struct __ecereNameSpace__ecere__com__Class * class, struct __ecereNameSpace__ecere__sys__BTNode * this, struct __ecereNameSpace__ecere__com__Instance * channel)
310 if((struct __ecereNameSpace__ecere__sys__BTNode *)this)
312 unsigned int truth = 0x1;
314 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass_bool, &truth);
315 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass_uintptr, &this->key);
316 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass___ecereNameSpace__ecere__sys__BTNode, this->left);
317 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass___ecereNameSpace__ecere__sys__BTNode, this->right);
321 unsigned int nothing = 0;
323 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass_uint, ¬hing);
327 extern void * __ecereNameSpace__ecere__com__eInstance_New(struct __ecereNameSpace__ecere__com__Class * _class);
329 void __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(struct __ecereNameSpace__ecere__com__Instance * this, struct __ecereNameSpace__ecere__com__Class * class, void * * data);
331 int __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(struct __ecereNameSpace__ecere__sys__BTNode * this);
333 static struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_depthProp, * __ecerePropM___ecereNameSpace__ecere__sys__BTNode_depthProp;
335 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_OnUnserialize(struct __ecereNameSpace__ecere__com__Class * class, struct __ecereNameSpace__ecere__sys__BTNode ** this, struct __ecereNameSpace__ecere__com__Instance * channel)
339 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(channel, __ecereClass_bool, &truth);
342 (*(this)) = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass___ecereNameSpace__ecere__sys__BTNode);
343 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(channel, __ecereClass_uintptr, &(*(this))->key);
344 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(channel, __ecereClass___ecereNameSpace__ecere__sys__BTNode, &(*(this))->left);
347 (*(this))->left->parent = (void *)*(struct __ecereNameSpace__ecere__sys__BTNode **)this;
349 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(channel, __ecereClass___ecereNameSpace__ecere__sys__BTNode, &(*(this))->right);
352 (*(this))->right->parent = (void *)*(struct __ecereNameSpace__ecere__sys__BTNode **)this;
354 (*(this))->depth = __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(((struct __ecereNameSpace__ecere__sys__BTNode *)(void *)*(struct __ecereNameSpace__ecere__sys__BTNode **)this));
357 (*(this)) = (((void *)0));
360 struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_maximum(struct __ecereNameSpace__ecere__sys__BTNode * this);
362 static struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_maximum, * __ecerePropM___ecereNameSpace__ecere__sys__BTNode_maximum;
364 struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_prev(struct __ecereNameSpace__ecere__sys__BTNode * this)
367 return __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_maximum(this->left);
370 if(this->parent && this == this->parent->right)
378 struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_minimum(struct __ecereNameSpace__ecere__sys__BTNode * this);
380 static struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_minimum, * __ecerePropM___ecereNameSpace__ecere__sys__BTNode_minimum;
382 struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_next(struct __ecereNameSpace__ecere__sys__BTNode * this)
384 struct __ecereNameSpace__ecere__sys__BTNode * right = this->right;
387 return __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_minimum(right);
390 struct __ecereNameSpace__ecere__sys__BTNode * parent = this->parent;
392 if(parent && this == parent->left)
397 return (((void *)0));
400 struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_minimum(struct __ecereNameSpace__ecere__sys__BTNode * this)
407 struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_maximum(struct __ecereNameSpace__ecere__sys__BTNode * this)
414 int __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_count(struct __ecereNameSpace__ecere__sys__BTNode * this)
416 return 1 + (this->left ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_count(this->left) : 0) + (this->right ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_count(this->right) : 0);
419 int __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(struct __ecereNameSpace__ecere__sys__BTNode * this)
421 int leftDepth = this->left ? (__ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(this->left) + 1) : 0;
422 int rightDepth = this->right ? (__ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(this->right) + 1) : 0;
424 return ((leftDepth > rightDepth) ? leftDepth : rightDepth);
427 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Free(struct __ecereNameSpace__ecere__sys__BTNode * this, void (* FreeKey)(void * key))
430 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Free(this->left, FreeKey);
432 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Free(this->right, FreeKey);
434 FreeKey((void *)this->key);
435 ((this ? (__ecereClass___ecereNameSpace__ecere__sys__BTNode->Destructor ? __ecereClass___ecereNameSpace__ecere__sys__BTNode->Destructor(this) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(this)) : 0), this = 0);
438 unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Add(struct __ecereNameSpace__ecere__sys__BTNode * this, struct __ecereNameSpace__ecere__sys__BinaryTree * tree, struct __ecereNameSpace__ecere__sys__BTNode * node)
440 uintptr_t newKey = node->key;
444 int result = tree->CompareKey(tree, newKey, this->key);
460 struct __ecereNameSpace__ecere__sys__BTNode * n;
462 for(n = this; n; n = n->parent)
464 int __simpleStruct0, __simpleStruct1;
465 int newDepth = (__simpleStruct0 = n->left ? (n->left->depth + 1) : 0, __simpleStruct1 = n->right ? (n->right->depth + 1) : 0, (__simpleStruct0 > __simpleStruct1) ? __simpleStruct0 : __simpleStruct1);
467 if(newDepth == n->depth)
485 struct __ecereNameSpace__ecere__sys__BTNode * n;
487 for(n = this; n; n = n->parent)
489 int __simpleStruct0, __simpleStruct1;
490 int newDepth = (__simpleStruct0 = n->left ? (n->left->depth + 1) : 0, __simpleStruct1 = n->right ? (n->right->depth + 1) : 0, (__simpleStruct0 > __simpleStruct1) ? __simpleStruct0 : __simpleStruct1);
492 if(newDepth == n->depth)
503 unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindNode(struct __ecereNameSpace__ecere__sys__BTNode * this, struct __ecereNameSpace__ecere__sys__BTNode * node)
507 else if(this->left && __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindNode(this->left, node))
509 else if(this->right && __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindNode(this->right, node))
514 struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Find(struct __ecereNameSpace__ecere__sys__BTNode * this, struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t key)
518 int result = tree->CompareKey(tree, key, this->key);
530 extern int strcmp(const char * , const char * );
532 struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindString(struct __ecereNameSpace__ecere__sys__BTNode * this, char * key)
539 result = strcmp(key, (char *)this->key);
540 else if(key && !this->key)
542 else if(!key && this->key)
556 extern int strncmp(const char * , const char * , int n);
558 struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindPrefix(struct __ecereNameSpace__ecere__sys__BTNode * this, char * key)
560 struct __ecereNameSpace__ecere__sys__BTNode * subString = (((void *)0));
561 int len = key ? strlen(key) : 0;
568 result = strcmp(key, (char *)this->key);
569 else if(key && !this->key)
571 else if(!key && this->key)
577 if(!strncmp(key, (char *)this->key, len))
592 struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindAll(struct __ecereNameSpace__ecere__sys__BTNode * this, uintptr_t key)
594 struct __ecereNameSpace__ecere__sys__BTNode * result = (((void *)0));
598 if(!result && this->left)
599 result = __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindAll(this->left, key);
600 if(!result && this->right)
601 result = __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindAll(this->right, key);
605 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_RemoveSwap(struct __ecereNameSpace__ecere__sys__BTNode * this, struct __ecereNameSpace__ecere__sys__BTNode * swap)
609 swap->left->parent = swap->parent;
610 if(swap == swap->parent->left)
611 swap->parent->left = swap->left;
612 else if(swap == swap->parent->right)
613 swap->parent->right = swap->left;
614 swap->left = (((void *)0));
618 swap->right->parent = swap->parent;
619 if(swap == swap->parent->left)
620 swap->parent->left = swap->right;
621 else if(swap == swap->parent->right)
622 swap->parent->right = swap->right;
623 swap->right = (((void *)0));
625 if(swap == swap->parent->left)
626 swap->parent->left = (((void *)0));
627 else if(swap == swap->parent->right)
628 swap->parent->right = (((void *)0));
630 struct __ecereNameSpace__ecere__sys__BTNode * n;
632 for(n = swap->parent; n; n = n->parent)
634 int __simpleStruct0, __simpleStruct1;
635 int newDepth = (__simpleStruct0 = n->left ? (n->left->depth + 1) : 0, __simpleStruct1 = n->right ? (n->right->depth + 1) : 0, (__simpleStruct0 > __simpleStruct1) ? __simpleStruct0 : __simpleStruct1);
637 if(newDepth == n->depth)
645 swap->left = this->left;
647 this->left->parent = swap;
650 swap->right = this->right;
652 this->right->parent = swap;
654 swap->parent = this->parent;
655 this->left = (((void *)0));
656 this->right = (((void *)0));
659 if(this == this->parent->left)
660 this->parent->left = swap;
661 else if(this == this->parent->right)
662 this->parent->right = swap;
666 struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance();
668 struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_RemoveSwapLeft(struct __ecereNameSpace__ecere__sys__BTNode * this)
670 struct __ecereNameSpace__ecere__sys__BTNode * swap = this->left ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_maximum(this->left) : this->right;
671 struct __ecereNameSpace__ecere__sys__BTNode * swapParent = (((void *)0));
675 swapParent = swap->parent;
676 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_RemoveSwap(this, swap);
680 if(this == this->parent->left)
681 this->parent->left = (((void *)0));
682 else if(this == this->parent->right)
683 this->parent->right = (((void *)0));
686 struct __ecereNameSpace__ecere__sys__BTNode * n;
688 for(n = swap ? swap : this->parent; n; n = n->parent)
690 int __simpleStruct0, __simpleStruct1;
691 int newDepth = (__simpleStruct0 = n->left ? (n->left->depth + 1) : 0, __simpleStruct1 = n->right ? (n->right->depth + 1) : 0, (__simpleStruct0 > __simpleStruct1) ? __simpleStruct0 : __simpleStruct1);
693 if(newDepth == n->depth && n != swap)
698 if(swapParent && swapParent != this)
699 return __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance(swapParent);
701 return __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance(swap);
702 else if(this->parent)
703 return __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance(this->parent);
705 return (((void *)0));
708 struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_RemoveSwapRight(struct __ecereNameSpace__ecere__sys__BTNode * this)
710 struct __ecereNameSpace__ecere__sys__BTNode * result;
711 struct __ecereNameSpace__ecere__sys__BTNode * swap = this->right ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_minimum(this->right) : this->left;
712 struct __ecereNameSpace__ecere__sys__BTNode * swapParent = (((void *)0));
716 swapParent = swap->parent;
717 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_RemoveSwap(this, swap);
721 if(this == this->parent->left)
722 this->parent->left = (((void *)0));
723 else if(this == this->parent->right)
724 this->parent->right = (((void *)0));
727 struct __ecereNameSpace__ecere__sys__BTNode * n;
729 for(n = swap ? swap : this->parent; n; n = n->parent)
731 int __simpleStruct0, __simpleStruct1;
732 int newDepth = (__simpleStruct0 = n->left ? (n->left->depth + 1) : 0, __simpleStruct1 = n->right ? (n->right->depth + 1) : 0, (__simpleStruct0 > __simpleStruct1) ? __simpleStruct0 : __simpleStruct1);
734 if(newDepth == n->depth && n != swap)
739 if(swapParent && swapParent != this)
740 result = __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance(swapParent);
742 result = __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance(swap);
743 else if(this->parent)
744 result = __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance(this->parent);
746 result = (((void *)0));
750 int __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_balanceFactor(struct __ecereNameSpace__ecere__sys__BTNode * this)
752 int leftDepth = this->left ? (this->left->depth + 1) : 0;
753 int rightDepth = this->right ? (this->right->depth + 1) : 0;
755 return rightDepth - leftDepth;
758 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_DoubleRotateRight();
760 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_SingleRotateRight();
762 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_DoubleRotateLeft();
764 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_SingleRotateLeft();
766 struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance(struct __ecereNameSpace__ecere__sys__BTNode * this)
770 int factor = __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_balanceFactor(this);
774 if(__ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_balanceFactor(this->left) == 1)
775 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_DoubleRotateRight(this);
777 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_SingleRotateRight(this);
781 if(__ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_balanceFactor(this->right) == -1)
782 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_DoubleRotateLeft(this);
784 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_SingleRotateLeft(this);
793 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_SingleRotateRight(struct __ecereNameSpace__ecere__sys__BTNode * this)
795 int __simpleStruct2, __simpleStruct3;
796 int __simpleStruct0, __simpleStruct1;
800 if(this == this->parent->left)
801 this->parent->left = this->left;
802 else if(this == this->parent->right)
803 this->parent->right = this->left;
805 this->left->parent = this->parent;
806 this->parent = this->left;
807 this->left = this->parent->right;
809 this->left->parent = this;
810 this->parent->right = this;
811 this->depth = (__simpleStruct0 = this->left ? (this->left->depth + 1) : 0, __simpleStruct1 = this->right ? (this->right->depth + 1) : 0, (__simpleStruct0 > __simpleStruct1) ? __simpleStruct0 : __simpleStruct1);
812 this->parent->depth = (__simpleStruct2 = this->parent->left ? (this->parent->left->depth + 1) : 0, __simpleStruct3 = this->parent->right ? (this->parent->right->depth + 1) : 0, (__simpleStruct2 > __simpleStruct3) ? __simpleStruct2 : __simpleStruct3);
814 struct __ecereNameSpace__ecere__sys__BTNode * n;
816 for(n = this->parent->parent; n; n = n->parent)
818 int __simpleStruct0, __simpleStruct1;
819 int newDepth = (__simpleStruct0 = n->left ? (n->left->depth + 1) : 0, __simpleStruct1 = n->right ? (n->right->depth + 1) : 0, (__simpleStruct0 > __simpleStruct1) ? __simpleStruct0 : __simpleStruct1);
821 if(newDepth == n->depth)
828 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_SingleRotateLeft(struct __ecereNameSpace__ecere__sys__BTNode * this)
830 int __simpleStruct2, __simpleStruct3;
831 int __simpleStruct0, __simpleStruct1;
835 if(this == this->parent->right)
836 this->parent->right = this->right;
837 else if(this == this->parent->left)
838 this->parent->left = this->right;
840 this->right->parent = this->parent;
841 this->parent = this->right;
842 this->right = this->parent->left;
844 this->right->parent = this;
845 this->parent->left = this;
846 this->depth = (__simpleStruct0 = this->left ? (this->left->depth + 1) : 0, __simpleStruct1 = this->right ? (this->right->depth + 1) : 0, (__simpleStruct0 > __simpleStruct1) ? __simpleStruct0 : __simpleStruct1);
847 this->parent->depth = (__simpleStruct2 = this->parent->left ? (this->parent->left->depth + 1) : 0, __simpleStruct3 = this->parent->right ? (this->parent->right->depth + 1) : 0, (__simpleStruct2 > __simpleStruct3) ? __simpleStruct2 : __simpleStruct3);
849 struct __ecereNameSpace__ecere__sys__BTNode * n;
851 for(n = this->parent->parent; n; n = n->parent)
853 int __simpleStruct0, __simpleStruct1;
854 int newDepth = (__simpleStruct0 = n->left ? (n->left->depth + 1) : 0, __simpleStruct1 = n->right ? (n->right->depth + 1) : 0, (__simpleStruct0 > __simpleStruct1) ? __simpleStruct0 : __simpleStruct1);
856 if(newDepth == n->depth)
863 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_DoubleRotateRight(struct __ecereNameSpace__ecere__sys__BTNode * this)
865 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_SingleRotateLeft(this->left);
866 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_SingleRotateRight(this);
869 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_DoubleRotateLeft(struct __ecereNameSpace__ecere__sys__BTNode * this)
871 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_SingleRotateRight(this->right);
872 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_SingleRotateLeft(this);
875 extern char * strcat(char * , const char * );
877 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_PrintDepth(struct __ecereNameSpace__ecere__sys__BTNode * this, char * output, int wantedDepth, int curDepth, int maxDepth, unsigned int last);
879 char * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Print(struct __ecereNameSpace__ecere__sys__BTNode * this, char * output, int tps)
888 __ecereNameSpace__ecere__sys__strcatf(output, "%d ", this->key);
890 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Print(this->left, output, tps);
892 __ecereNameSpace__ecere__sys__strcatf(output, "%d ", this->key);
894 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Print(this->right, output, tps);
896 __ecereNameSpace__ecere__sys__strcatf(output, "%d ", this->key);
901 int maxDepth = this->depth;
904 for(curDepth = 0; curDepth <= maxDepth; curDepth++)
908 for(c = 0; c < ((1 << (maxDepth - curDepth)) - 1) * 4 / 2; c++)
910 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_PrintDepth(this, output, curDepth, 0, maxDepth, 0x1);
911 strcat(output, "\n");
916 return (((void *)0));
919 extern int sprintf(char * , char * , ...);
921 void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_PrintDepth(struct __ecereNameSpace__ecere__sys__BTNode * this, char * output, int wantedDepth, int curDepth, int maxDepth, unsigned int last)
925 if(wantedDepth == curDepth)
927 char nodeString[10] = "";
931 sprintf(nodeString, "%d", this->key);
932 len = strlen(nodeString);
933 for(c = 0; c < (4 - len) / 2; c++)
936 strcat(output, nodeString);
937 for(c = len; c < 4; c++)
939 if(curDepth && !last)
941 for(c = 0; c < ((1 << (maxDepth - curDepth)) - 1) * 4; c++)
945 else if(curDepth <= maxDepth)
947 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_PrintDepth((this ? this->left : (struct __ecereNameSpace__ecere__sys__BTNode *)(((void *)0))), output, wantedDepth, curDepth + 1, maxDepth, last && this && !this->right);
948 __ecereMethod___ecereNameSpace__ecere__sys__BTNode_PrintDepth((this ? this->right : (struct __ecereNameSpace__ecere__sys__BTNode *)(((void *)0))), output, wantedDepth, curDepth + 1, maxDepth, last);
952 extern int printf(char * , ...);
954 unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Check(struct __ecereNameSpace__ecere__sys__BTNode * this, struct __ecereNameSpace__ecere__sys__BinaryTree * tree)
956 unsigned int valid = 0x1;
957 int leftHeight = this->left ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(this->left) + 1 : 0;
958 int rightHeight = this->right ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(this->right) + 1 : 0;
959 int diffHeight = rightHeight - leftHeight;
963 if(this->left->parent != this)
965 printf("Parent not set properly at node %d\n", this->left->key);
968 valid *= __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Check(this->left, tree);
972 if(this->right->parent != this)
974 printf("Parent not set properly at node %d\n", this->right->key);
977 valid *= __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Check(this->right, tree);
979 if(this->depth != __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(this))
981 printf("Depth value at node %d (%d) doesn't match depth property (%d)\n", this->key, this->depth, __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(this));
982 valid = (unsigned int)0;
984 if(diffHeight < -1 || diffHeight > 1)
986 valid = (unsigned int)0;
987 printf("Height difference is %d at node %d\n", diffHeight, this->key);
989 if(diffHeight != __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_balanceFactor(this))
991 valid = (unsigned int)0;
992 printf("Height difference %d doesnt match balance-factor of %d at node \n", diffHeight, __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_balanceFactor(this), this->key);
994 if(this->left && tree->CompareKey(tree, this->left->key, this->key) > 0)
997 printf("Node %d is *smaller* than left subtree %d\n", this->key, this->left->key);
999 if(this->right && tree->CompareKey(tree, this->right->key, this->key) < 0)
1002 printf("Node %d is *greater* than right subtree %d\n", this->key, this->right->key);
1007 struct __ecereNameSpace__ecere__sys__StringBTNode
1010 struct __ecereNameSpace__ecere__sys__StringBTNode * parent, * left, * right;
1012 } __attribute__ ((gcc_struct));
1014 static struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__StringBTNode;
1016 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_String;
1018 void __ecereMethod___ecereNameSpace__ecere__sys__StringBTNode_OnSerialize(struct __ecereNameSpace__ecere__com__Class * class, struct __ecereNameSpace__ecere__sys__StringBTNode * this, struct __ecereNameSpace__ecere__com__Instance * channel)
1020 if((struct __ecereNameSpace__ecere__sys__StringBTNode *)this)
1022 unsigned int truth = 0x1;
1024 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass_bool, &truth);
1025 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass_String, this->key);
1026 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass___ecereNameSpace__ecere__sys__StringBTNode, this->left);
1027 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass___ecereNameSpace__ecere__sys__StringBTNode, this->right);
1031 unsigned int nothing = 0;
1033 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass_uint, ¬hing);
1037 void __ecereMethod___ecereNameSpace__ecere__sys__StringBTNode_OnUnserialize(struct __ecereNameSpace__ecere__com__Class * class, struct __ecereNameSpace__ecere__sys__StringBTNode ** this, struct __ecereNameSpace__ecere__com__Instance * channel)
1041 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(channel, __ecereClass_bool, &truth);
1044 (*(this)) = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass___ecereNameSpace__ecere__sys__StringBTNode);
1045 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(channel, __ecereClass_String, &(*(this))->key);
1046 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(channel, __ecereClass___ecereNameSpace__ecere__sys__StringBTNode, &(*(this))->left);
1049 (*(this))->left->parent = (void *)*(struct __ecereNameSpace__ecere__sys__StringBTNode **)this;
1051 __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(channel, __ecereClass___ecereNameSpace__ecere__sys__StringBTNode, &(*(this))->right);
1052 if((*(this))->right)
1054 (*(this))->right->parent = (void *)*(struct __ecereNameSpace__ecere__sys__StringBTNode **)this;
1056 (*(this))->depth = __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(((struct __ecereNameSpace__ecere__sys__BTNode *)((void *)*(struct __ecereNameSpace__ecere__sys__StringBTNode **)this)));
1059 (*(this)) = (((void *)0));
1062 extern struct __ecereNameSpace__ecere__com__Class * __ecereNameSpace__ecere__com__eSystem_RegisterClass(int type, char * name, char * baseName, int size, int sizeClass, unsigned int (* )(void * ), void (* )(void * ), struct __ecereNameSpace__ecere__com__Instance * module, int declMode, int inheritanceAccess);
1064 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__NameSpace;
1066 struct __ecereNameSpace__ecere__com__NameSpace
1069 struct __ecereNameSpace__ecere__com__NameSpace * btParent;
1070 struct __ecereNameSpace__ecere__com__NameSpace * left;
1071 struct __ecereNameSpace__ecere__com__NameSpace * right;
1073 struct __ecereNameSpace__ecere__com__NameSpace * parent;
1074 struct __ecereNameSpace__ecere__sys__BinaryTree nameSpaces;
1075 struct __ecereNameSpace__ecere__sys__BinaryTree classes;
1076 struct __ecereNameSpace__ecere__sys__BinaryTree defines;
1077 struct __ecereNameSpace__ecere__sys__BinaryTree functions;
1078 } __attribute__ ((gcc_struct));
1080 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Module;
1082 struct __ecereNameSpace__ecere__com__Module
1084 struct __ecereNameSpace__ecere__com__Instance * application;
1085 struct __ecereNameSpace__ecere__sys__OldList classes;
1086 struct __ecereNameSpace__ecere__sys__OldList defines;
1087 struct __ecereNameSpace__ecere__sys__OldList functions;
1088 struct __ecereNameSpace__ecere__sys__OldList modules;
1089 struct __ecereNameSpace__ecere__com__Instance * prev;
1090 struct __ecereNameSpace__ecere__com__Instance * next;
1096 struct __ecereNameSpace__ecere__com__NameSpace privateNameSpace;
1097 struct __ecereNameSpace__ecere__com__NameSpace publicNameSpace;
1098 } __attribute__ ((gcc_struct));
1100 extern struct __ecereNameSpace__ecere__com__Instance * __thisModule;
1102 extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, char * string, int value);
1104 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__GlobalFunction;
1106 struct __ecereNameSpace__ecere__com__GlobalFunction;
1108 extern struct __ecereNameSpace__ecere__com__GlobalFunction * __ecereNameSpace__ecere__com__eSystem_RegisterFunction(char * name, char * type, void * func, struct __ecereNameSpace__ecere__com__Instance * module, int declMode);
1110 extern struct __ecereNameSpace__ecere__com__Method * __ecereNameSpace__ecere__com__eClass_AddMethod(struct __ecereNameSpace__ecere__com__Class * _class, char * name, char * type, void * function, int declMode);
1112 extern struct __ecereNameSpace__ecere__com__DataMember * __ecereNameSpace__ecere__com__eClass_AddDataMember(struct __ecereNameSpace__ecere__com__Class * _class, char * name, char * type, unsigned int size, unsigned int alignment, int declMode);
1114 extern struct __ecereNameSpace__ecere__com__Property * __ecereNameSpace__ecere__com__eClass_AddProperty(struct __ecereNameSpace__ecere__com__Class * _class, char * name, char * dataType, void * setStmt, void * getStmt, int declMode);
1116 void __ecereRegisterModule_BTNode(struct __ecereNameSpace__ecere__com__Instance * module)
1118 struct __ecereNameSpace__ecere__com__Class * class;
1120 class = __ecereNameSpace__ecere__com__eSystem_RegisterClass(4, "ecere::sys::TreePrintStyle", 0, 0, 0, 0, 0, module, 4, 1);
1121 if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + 12)))->application && class)
1122 __ecereClass___ecereNameSpace__ecere__sys__TreePrintStyle = class;
1123 __ecereNameSpace__ecere__com__eEnum_AddFixedValue(class, "inOrder", 0);
1124 __ecereNameSpace__ecere__com__eEnum_AddFixedValue(class, "postOrder", 1);
1125 __ecereNameSpace__ecere__com__eEnum_AddFixedValue(class, "preOrder", 2);
1126 __ecereNameSpace__ecere__com__eEnum_AddFixedValue(class, "depthOrder", 3);
1127 __ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::sys::strcatf", "void ecere::sys::strcatf(char * string, char * format, ...)", __ecereNameSpace__ecere__sys__strcatf, module, 4);
1128 class = __ecereNameSpace__ecere__com__eSystem_RegisterClass(5, "ecere::sys::BTNode", 0, sizeof(struct __ecereNameSpace__ecere__sys__BTNode), 0, 0, 0, module, 4, 1);
1129 if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + 12)))->application && class)
1130 __ecereClass___ecereNameSpace__ecere__sys__BTNode = class;
1131 __ecereNameSpace__ecere__com__eClass_AddMethod(class, "OnSerialize", 0, __ecereMethod___ecereNameSpace__ecere__sys__BTNode_OnSerialize, 1);
1132 __ecereNameSpace__ecere__com__eClass_AddMethod(class, "OnUnserialize", 0, __ecereMethod___ecereNameSpace__ecere__sys__BTNode_OnUnserialize, 1);
1133 __ecereNameSpace__ecere__com__eClass_AddMethod(class, "FindPrefix", "ecere::sys::BTNode FindPrefix(char * key)", __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindPrefix, 1);
1134 __ecereNameSpace__ecere__com__eClass_AddMethod(class, "FindString", "ecere::sys::BTNode FindString(char * key)", __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindString, 1);
1135 __ecereNameSpace__ecere__com__eClass_AddDataMember(class, "key", "uintptr", 4, 4, 1);
1136 __ecereNameSpace__ecere__com__eClass_AddDataMember(class, "parent", "ecere::sys::BTNode", 4, 4, 1);
1137 __ecereNameSpace__ecere__com__eClass_AddDataMember(class, "left", "ecere::sys::BTNode", 4, 4, 1);
1138 __ecereNameSpace__ecere__com__eClass_AddDataMember(class, "right", "ecere::sys::BTNode", 4, 4, 1);
1139 __ecereNameSpace__ecere__com__eClass_AddDataMember(class, "depth", "int", 4, 4, 1);
1140 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_prev = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "prev", "ecere::sys::BTNode", 0, __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_prev, 1);
1141 if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + 12)))->application)
1142 __ecereProp___ecereNameSpace__ecere__sys__BTNode_prev = __ecerePropM___ecereNameSpace__ecere__sys__BTNode_prev, __ecerePropM___ecereNameSpace__ecere__sys__BTNode_prev = (void *)0;
1143 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_next = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "next", "ecere::sys::BTNode", 0, __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_next, 1);
1144 if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + 12)))->application)
1145 __ecereProp___ecereNameSpace__ecere__sys__BTNode_next = __ecerePropM___ecereNameSpace__ecere__sys__BTNode_next, __ecerePropM___ecereNameSpace__ecere__sys__BTNode_next = (void *)0;
1146 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_minimum = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "minimum", "ecere::sys::BTNode", 0, __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_minimum, 1);
1147 if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + 12)))->application)
1148 __ecereProp___ecereNameSpace__ecere__sys__BTNode_minimum = __ecerePropM___ecereNameSpace__ecere__sys__BTNode_minimum, __ecerePropM___ecereNameSpace__ecere__sys__BTNode_minimum = (void *)0;
1149 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_maximum = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "maximum", "ecere::sys::BTNode", 0, __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_maximum, 1);
1150 if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + 12)))->application)
1151 __ecereProp___ecereNameSpace__ecere__sys__BTNode_maximum = __ecerePropM___ecereNameSpace__ecere__sys__BTNode_maximum, __ecerePropM___ecereNameSpace__ecere__sys__BTNode_maximum = (void *)0;
1152 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_count = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "count", "int", 0, __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_count, 1);
1153 if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + 12)))->application)
1154 __ecereProp___ecereNameSpace__ecere__sys__BTNode_count = __ecerePropM___ecereNameSpace__ecere__sys__BTNode_count, __ecerePropM___ecereNameSpace__ecere__sys__BTNode_count = (void *)0;
1155 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_depthProp = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "depthProp", "int", 0, __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp, 1);
1156 if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + 12)))->application)
1157 __ecereProp___ecereNameSpace__ecere__sys__BTNode_depthProp = __ecerePropM___ecereNameSpace__ecere__sys__BTNode_depthProp, __ecerePropM___ecereNameSpace__ecere__sys__BTNode_depthProp = (void *)0;
1158 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_balanceFactor = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "balanceFactor", "int", 0, __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_balanceFactor, 2);
1159 if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + 12)))->application)
1160 __ecereProp___ecereNameSpace__ecere__sys__BTNode_balanceFactor = __ecerePropM___ecereNameSpace__ecere__sys__BTNode_balanceFactor, __ecerePropM___ecereNameSpace__ecere__sys__BTNode_balanceFactor = (void *)0;
1162 class->fixed = (unsigned int)1;
1163 class = __ecereNameSpace__ecere__com__eSystem_RegisterClass(5, "ecere::sys::StringBTNode", 0, sizeof(struct __ecereNameSpace__ecere__sys__StringBTNode), 0, 0, 0, module, 4, 1);
1164 if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + 12)))->application && class)
1165 __ecereClass___ecereNameSpace__ecere__sys__StringBTNode = class;
1166 __ecereNameSpace__ecere__com__eClass_AddMethod(class, "OnSerialize", 0, __ecereMethod___ecereNameSpace__ecere__sys__StringBTNode_OnSerialize, 1);
1167 __ecereNameSpace__ecere__com__eClass_AddMethod(class, "OnUnserialize", 0, __ecereMethod___ecereNameSpace__ecere__sys__StringBTNode_OnUnserialize, 1);
1168 __ecereNameSpace__ecere__com__eClass_AddDataMember(class, "key", "String", 4, 4, 1);
1169 __ecereNameSpace__ecere__com__eClass_AddDataMember(class, "parent", "ecere::sys::StringBTNode", 4, 4, 1);
1170 __ecereNameSpace__ecere__com__eClass_AddDataMember(class, "left", "ecere::sys::StringBTNode", 4, 4, 1);
1171 __ecereNameSpace__ecere__com__eClass_AddDataMember(class, "right", "ecere::sys::StringBTNode", 4, 4, 1);
1172 __ecereNameSpace__ecere__com__eClass_AddDataMember(class, "depth", "int", 4, 4, 1);
1174 class->fixed = (unsigned int)1;
1177 void __ecereUnregisterModule_BTNode(struct __ecereNameSpace__ecere__com__Instance * module)
1180 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_prev = (void *)0;
1181 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_next = (void *)0;
1182 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_minimum = (void *)0;
1183 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_maximum = (void *)0;
1184 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_count = (void *)0;
1185 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_depthProp = (void *)0;
1186 __ecerePropM___ecereNameSpace__ecere__sys__BTNode_balanceFactor = (void *)0;