char * cppOptions = (((void *)0));
int cppOptionsLen = 0;
int c;
-unsigned int valid = 0x1;
+unsigned int valid = 1;
char defaultOutputFile[797];
-unsigned int buildingBootStrap = 0x0;
+unsigned int buildingBootStrap = 0;
int targetPlatform = __ecereNameSpace__ecere__com__GetRuntimePlatform();
int targetBits = GetHostBits();
if(arg[1] == 'D')
{
if(!strcmp(arg, "-DBUILDING_ECERE_COM"))
-SetBuildingEcereCom(0x1);
+SetBuildingEcereCom(1);
else if(!strcmp(arg, "-DECERE_COM_MODULE"))
-SetBuildingEcereComModule(0x1);
+SetBuildingEcereComModule(1);
else if(!strcmp(arg, "-DECERE_BOOTSTRAP"))
-buildingBootStrap = 0x1;
+buildingBootStrap = 1;
}
}
else if(!strcmp(arg + 1, "t"))
if(++c < ((struct __ecereNameSpace__ecere__com__Application *)(((char *)this + structSize_Module)))->argc)
targetPlatform = __ecereProp___ecereNameSpace__ecere__com__Platform_Set_char__PTR_(((struct __ecereNameSpace__ecere__com__Application *)(((char *)this + structSize_Module)))->argv[c]);
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "cpp"))
{
if(++c < ((struct __ecereNameSpace__ecere__com__Application *)(((char *)this + structSize_Module)))->argc)
cppCommand = __ecereNameSpace__ecere__sys__CopyString(((struct __ecereNameSpace__ecere__com__Application *)(((char *)this + structSize_Module)))->argv[c]);
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "o"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "c"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "isystem") || !strcmp(arg + 1, "isysroot"))
{
cppOptionsLen = buf - cppOptions;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "fno-diagnostics-show-caret"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "module"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "memguard"))
{
-SetMemoryGuard(0x1);
+SetMemoryGuard(1);
}
else if(!strcmp(arg + 1, "defaultns"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "strictns"))
{
-SetStrictNameSpaces(0x1);
+SetStrictNameSpaces(1);
}
else if(!strcmp(arg + 1, "nolinenumbers"))
{
-SetOutputLineNumbers(0x0);
+SetOutputLineNumbers(0);
}
}
else
-valid = 0x0;
+valid = 0;
}
if(valid)
{
if(!cppCommand)
cppCommand = __ecereNameSpace__ecere__sys__CopyString("gcc");
if(!GetSourceFile())
-valid = 0x0;
+valid = 0;
else if(!GetOutputFile())
{
strcpy(defaultOutputFile, "");
SetTopContext(globalContext);
SetDefines(&defines);
SetImports(&imports);
-SetInCompiler(0x1);
+SetInCompiler(1);
SetTargetPlatform(targetPlatform);
SetTargetBits(targetBits);
-SetEchoOn(0x0);
-privateModule = (struct __ecereNameSpace__ecere__com__Instance *)__ecereNameSpace__ecere__com____ecere_COM_Initialize((unsigned int)(0x1 | (targetBits == sizeof(uintptr_t) * 8 ? (unsigned int)0 : targetBits == 64 ? 2 : targetBits == 32 ? 4 : (unsigned int)0) | 8), 1, (((void *)0)));
+SetEchoOn(0);
+privateModule = (struct __ecereNameSpace__ecere__com__Instance *)__ecereNameSpace__ecere__com____ecere_COM_Initialize((unsigned int)(1 | (targetBits == sizeof(uintptr_t) * 8 ? (unsigned int)0 : targetBits == 64 ? 2 : targetBits == 32 ? 4 : (unsigned int)0) | 8), 1, (((void *)0)));
SetPrivateModule(privateModule);
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint"), __ecereInstance1->type = ProcessTypeString("unsigned int", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint"), __ecereInstance1->type = ProcessTypeString("unsigned int", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint64"), __ecereInstance1->type = ProcessTypeString("unsigned int64", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint64"), __ecereInstance1->type = ProcessTypeString("unsigned int64", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint32"), __ecereInstance1->type = ProcessTypeString("unsigned int", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint32"), __ecereInstance1->type = ProcessTypeString("unsigned int", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint16"), __ecereInstance1->type = ProcessTypeString("unsigned short", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint16"), __ecereInstance1->type = ProcessTypeString("unsigned short", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("byte"), __ecereInstance1->type = ProcessTypeString("unsigned char", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("byte"), __ecereInstance1->type = ProcessTypeString("unsigned char", 0), __ecereInstance1;
}));
if(buildingBootStrap)
{
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("intptr_t"), __ecereInstance1->type = ProcessTypeString("intptr", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("intptr_t"), __ecereInstance1->type = ProcessTypeString("intptr", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uintptr_t"), __ecereInstance1->type = ProcessTypeString("uintptr", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uintptr_t"), __ecereInstance1->type = ProcessTypeString("uintptr", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("ssize_t"), __ecereInstance1->type = ProcessTypeString("intsize", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("ssize_t"), __ecereInstance1->type = ProcessTypeString("intsize", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("size_t"), __ecereInstance1->type = ProcessTypeString("uintsize", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("size_t"), __ecereInstance1->type = ProcessTypeString("uintsize", 0), __ecereInstance1;
}));
}
{
}
snprintf(command, sizeof (command), "%s%s -x c -E %s\"%s\"", cppCommand, cppOptions ? cppOptions : "", buildingBootStrap ? "" : "-include stdint.h -include sys/types.h ", GetSourceFile());
command[sizeof (command) - 1] = (char)0;
-if((cppOutput = __ecereNameSpace__ecere__sys__DualPipeOpen((((unsigned int)(0x1))), command)))
+if((cppOutput = __ecereNameSpace__ecere__sys__DualPipeOpen((((unsigned int)(1))), command)))
{
char impFile[797];
struct ImportedModule * module;
__ecereNameSpace__ecere__sys__ChangeExtension(symFile, "sym", symFile);
strcpy(symLocation, GetSymbolsDir());
__ecereNameSpace__ecere__sys__PathCat(symLocation, symFile);
-LoadSymbols(symLocation, 3, 0x0);
+LoadSymbols(symLocation, 3, 0);
for(module = defines.first; module; module = next)
{
next = module->next;
}
ParseEc();
CheckDataRedefinitions();
-SetYydebug(0x0);
+SetYydebug(0);
SetCurrentNameSpace((((void *)0)));
SetDefaultNameSpace((((void *)0)));
SetDeclMode(2);
else
node->key = value;
((struct __ecereNameSpace__ecere__com__IteratorPointer * (*)(struct __ecereNameSpace__ecere__com__Instance *, uint64 value))__ecereClass___ecereNameSpace__ecere__com__AVLTree->_vTbl[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Add])(this, (uint64)node);
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__CustomAVLTree;
uint64 * item = (uint64 *)ip;
(memcpy(item, (((struct __ecereNameSpace__ecere__com__Instance *)(char *)this)->_class->templateArgs[0].__anon1.__anon1.dataTypeClass->type == 1) ? (char *)(uintptr_t)(((uint64)(value))) : ((char *)&value + __ENDIAN_PAD(((struct __ecereNameSpace__ecere__com__Instance *)(char *)this)->_class->templateArgs[0].__anon1.__anon1.dataTypeClass->typeSize)), ((struct __ecereNameSpace__ecere__com__Instance * )(char * )this)->_class->templateArgs[0].__anon1.__anon1.dataTypeClass->typeSize));
-return 0x1;
+return 1;
}
struct __ecereNameSpace__ecere__com__IteratorPointer * __ecereMethod___ecereNameSpace__ecere__com__Array_GetAtPosition(struct __ecereNameSpace__ecere__com__Instance * this, const uint64 pos, unsigned int create)
if((struct __ecereNameSpace__ecere__sys__BTNode *)this)
{
unsigned int __internalValue000;
-unsigned int truth = 0x1;
+unsigned int truth = 1;
__ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass_bool, &truth);
__ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass_uint, __extension__ ({
{
uintptr_t newKey = node->key;
-while(0x1)
+while(1)
{
int result = tree->CompareKey(tree, newKey, this->key);
if(!result)
{
-return 0x0;
+return 0;
}
else if(result > 0)
{
n->depth = newDepth;
}
}
-return 0x1;
+return 1;
}
}
else
n->depth = newDepth;
}
}
-return 0x1;
+return 1;
}
}
}
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindNode(struct __ecereNameSpace__ecere__sys__BTNode * this, struct __ecereNameSpace__ecere__sys__BTNode * node)
{
if(this == node)
-return 0x1;
+return 1;
else if(this->left && __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindNode(this->left, node))
-return 0x1;
+return 1;
else if(this->right && __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindNode(this->right, node))
-return 0x1;
-return 0x0;
+return 1;
+return 0;
}
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)
struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance(struct __ecereNameSpace__ecere__sys__BTNode * this)
{
-while(0x1)
+while(1)
{
int factor = __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_balanceFactor(this);
for(c = 0; c < ((1 << (maxDepth - curDepth)) - 1) * 4 / 2; c++)
strcat(output, " ");
-__ecereMethod___ecereNameSpace__ecere__sys__BTNode_PrintDepth(this, output, curDepth, 0, maxDepth, 0x1);
+__ecereMethod___ecereNameSpace__ecere__sys__BTNode_PrintDepth(this, output, curDepth, 0, maxDepth, 1);
strcat(output, "\n");
}
return output;
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Check(struct __ecereNameSpace__ecere__sys__BTNode * this, struct __ecereNameSpace__ecere__sys__BinaryTree * tree)
{
-unsigned int valid = 0x1;
+unsigned int valid = 1;
int leftHeight = this->left ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(this->left) + 1 : 0;
int rightHeight = this->right ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_depthProp(this->right) + 1 : 0;
int diffHeight = rightHeight - leftHeight;
if(this->left->parent != this)
{
printf("Parent not set properly at node %d\n", (int)this->left->key);
-valid = 0x0;
+valid = 0;
}
valid *= __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Check(this->left, tree);
}
if(this->right->parent != this)
{
printf("Parent not set properly at node %d\n", (int)this->right->key);
-valid = 0x0;
+valid = 0;
}
valid *= __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Check(this->right, tree);
}
}
if(this->left && tree->CompareKey(tree, this->left->key, this->key) > 0)
{
-valid = 0x0;
+valid = 0;
printf("Node %d is *smaller* than left subtree %d\n", (int)this->key, (int)this->left->key);
}
if(this->right && tree->CompareKey(tree, this->right->key, this->key) < 0)
{
-valid = 0x0;
+valid = 0;
printf("Node %d is *greater* than right subtree %d\n", (int)this->key, (int)this->right->key);
}
return valid;
{
if((struct __ecereNameSpace__ecere__sys__StringBTNode *)this)
{
-unsigned int truth = 0x1;
+unsigned int truth = 1;
__ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass_bool, &truth);
__ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass_String, this->key);
extern struct __ecereNameSpace__ecere__com__Instance * __thisModule;
-extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, int value);
+extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, long long value);
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__GlobalFunction;
else if(__ecereMethod___ecereNameSpace__ecere__sys__BTNode_Add(this->root, this, node))
this->root = __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance(node);
else
-return 0x0;
+return 0;
this->count++;
-return 0x1;
+return 1;
}
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);
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Check(struct __ecereNameSpace__ecere__sys__BinaryTree * this)
{
-return this->root ? __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Check(this->root, this) : 0x1;
+return this->root ? __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Check(this->root, this) : 1;
}
struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_minimum(struct __ecereNameSpace__ecere__sys__BTNode * this);
__ecereProp___ecereNameSpace__ecere__sys__BufferedFile_Set_bufferSize(this, 512 * 1024);
__ecereProp___ecereNameSpace__ecere__sys__BufferedFile_Set_bufferRead(this, 1 * 1024);
-return 0x1;
+return 1;
}
extern void __ecereNameSpace__ecere__com__eInstance_DecRef(struct __ecereNameSpace__ecere__com__Instance * instance);
unsigned int readCount = count;
readCount *= size;
-while(0x1)
+while(1)
{
unsigned int bytesRead = (bufferCount > bufferPos) ? (bufferCount - bufferPos) : 0;
bufferCount += read;
if(!read)
{
-__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->eof = 0x1;
+__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->eof = 1;
break;
}
}
if(__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->handle)
{
-while(0x1)
+while(1)
{
if(__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->bufferCount > __ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->bufferPos)
{
*ch = *(__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->buffer + __ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->bufferPos);
__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->bufferPos++;
__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->pos++;
-return 0x1;
+return 1;
}
else
{
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Read])(__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->handle, __ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->buffer, 1, __ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->bufferSize);
if(!__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->bufferCount)
{
-__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->eof = 0x1;
+__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->eof = 1;
break;
}
}
}
}
-return 0x0;
+return 0;
}
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BufferedFile_Putc(struct __ecereNameSpace__ecere__com__Instance * this, char ch)
__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->eof = newPosition > __ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->fileSize;
__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->pos = newPosition;
}
-return 0x1;
+return 1;
}
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BufferedFile_Tell(struct __ecereNameSpace__ecere__com__Instance * this)
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Truncate])(__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->handle, size);
__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->bufferCount = (__simpleStruct0 = __ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->bufferCount, (__simpleStruct0 < bytesAhead) ? __simpleStruct0 : bytesAhead);
__ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->fileSize = (__simpleStruct1 = __ecerePointer___ecereNameSpace__ecere__sys__BufferedFile->fileSize, (__simpleStruct1 < size) ? __simpleStruct1 : size);
-return 0x1;
+return 1;
}
int __ecereVMethodID___ecereNameSpace__ecere__sys__File_Lock;
__ecereProp___ecereNameSpace__ecere__sys__BufferedFile_Get_handle(__ecTemp1);
})))
{
-__ecereProp___ecereNameSpace__ecere__sys__File_Set_buffered(__ecereProp___ecereNameSpace__ecere__sys__BufferedFile_Get_handle(f), 0x1);
+__ecereProp___ecereNameSpace__ecere__sys__File_Set_buffered(__ecereProp___ecereNameSpace__ecere__sys__BufferedFile_Get_handle(f), 1);
((struct __ecereNameSpace__ecere__sys__BufferedFile *)(((char *)f + structSize_File)))->fileSize = ((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = __ecereProp___ecereNameSpace__ecere__sys__BufferedFile_Get_handle(f);
unsigned int __ecereMethod___ecereNameSpace__ecere__com__BuiltInContainer_SetData(struct __ecereNameSpace__ecere__com__BuiltInContainer * this, struct __ecereNameSpace__ecere__com__IteratorPointer * pointer, uint64 data)
{
-return 0x0;
+return 0;
}
struct __ecereNameSpace__ecere__com__IteratorPointer * __ecereMethod___ecereNameSpace__ecere__com__BuiltInContainer_GetAtPosition(struct __ecereNameSpace__ecere__com__BuiltInContainer * this, const uint64 pos, unsigned int create)
{
struct __ecereNameSpace__ecere__com__Class * Dclass = this->type;
char itemString[4096];
-unsigned int first = 0x1;
+unsigned int first = 1;
unsigned char * data = this->data;
int i;
if(!first)
strcat(tempString, ", ");
strcat(tempString, result);
-first = 0x0;
+first = 0;
data += Dclass->typeSize;
}
}
})[__ecereVMethodID___ecereNameSpace__ecere__com__Container_GetAtPosition])(this->container, index, create);
return this->pointer != (((void *)0));
}
-return 0x0;
+return 0;
}
int __ecereVMethodID___ecereNameSpace__ecere__com__Container_RemoveAll;
if((struct __ecereNameSpace__ecere__com__Instance *)this)
{
char itemString[4096];
-unsigned int first = 0x1;
+unsigned int first = 1;
struct __ecereNameSpace__ecere__com__IteratorPointer * i;
tempString[0] = '\0';
if(!first)
strcat(tempString, ", ");
strcat(tempString, result);
-first = 0x0;
+first = 0;
}
}
else
{
if(!Tclass)
Tclass = __ecereClass_uint64;
-while(0x1)
+while(1)
{
int result;
unsigned char * a, * b;
result = ((int (*)(void *, void *, void *))(void *)Tclass->_vTbl[__ecereVMethodID_class_OnCompare])(Tclass, a, b);
if(!result)
{
-return 0x0;
+return 0;
}
else if(result > 0)
{
n->depth = newDepth;
}
}
-return 0x1;
+return 1;
}
}
else
n->depth = newDepth;
}
}
-return 0x1;
+return 1;
}
}
}
struct __ecereNameSpace__ecere__com__AVLNode * __ecereMethod___ecereNameSpace__ecere__com__AVLNode_Rebalance(struct __ecereNameSpace__ecere__com__AVLNode * this)
{
-while(0x1)
+while(1)
{
int factor = __ecereProp___ecereNameSpace__ecere__com__AVLNode_Get_balanceFactor(this);
{
struct __ecereNameSpace__ecere__com__CustomAVLTree * __ecerePointer___ecereNameSpace__ecere__com__CustomAVLTree = (struct __ecereNameSpace__ecere__com__CustomAVLTree *)(this ? (((char *)this) + structSize_Instance) : 0);
-return 0x0;
+return 0;
}
extern struct __ecereNameSpace__ecere__com__Class * __ecereNameSpace__ecere__com__eSystem_FindClass(struct __ecereNameSpace__ecere__com__Instance * module, const char * name);
else if(strstr(end, "KB") || strstr(end, "kb"))
multiplier = 1024;
(*this) = (unsigned int)((double)multiplier * value);
-return 0x1;
+return 1;
}
static struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__FileSize64;
else if(strstr(end, "KB") || strstr(end, "kb"))
multiplier = 1024;
(*this) = (uint64)((double)multiplier * value);
-return 0x1;
+return 1;
}
static struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__FileSystem;
if(!string[0])
{
(*this) = (((void *)0));
-return 0x1;
+return 1;
}
else
{
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write])((*this), buffer, 1, read);
}
(__ecereNameSpace__ecere__com__eInstance_DecRef(f), f = 0);
-return 0x1;
+return 1;
}
}
-return 0x0;
+return 0;
}
int __ecereVMethodID___ecereNameSpace__ecere__sys__File_GetSize;
{
if(ch)
*ch = (char)ich;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__File_Putc(struct __ecereNameSpace__ecere__com__Instance * this, char ch)
{
struct __ecereNameSpace__ecere__sys__File * __ecerePointer___ecereNameSpace__ecere__sys__File = (struct __ecereNameSpace__ecere__sys__File *)(this ? (((char *)this) + __ecereClass___ecereNameSpace__ecere__sys__File->offset) : 0);
-return (fputc((int)ch, __ecerePointer___ecereNameSpace__ecere__sys__File->output) == (-1)) ? 0x0 : 0x1;
+return (fputc((int)ch, __ecerePointer___ecereNameSpace__ecere__sys__File->output) == (-1)) ? 0 : 1;
}
extern int fputs(const char * , void * stream);
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__File_Puts(struct __ecereNameSpace__ecere__com__Instance * this, const char * string)
{
struct __ecereNameSpace__ecere__sys__File * __ecerePointer___ecereNameSpace__ecere__sys__File = (struct __ecereNameSpace__ecere__sys__File *)(this ? (((char *)this) + __ecereClass___ecereNameSpace__ecere__sys__File->offset) : 0);
-unsigned int result = 0x0;
+unsigned int result = 0;
if(__ecerePointer___ecereNameSpace__ecere__sys__File->output)
{
-result = (fputs(string, __ecerePointer___ecereNameSpace__ecere__sys__File->output) == (-1)) ? 0x0 : 0x1;
+result = (fputs(string, __ecerePointer___ecereNameSpace__ecere__sys__File->output) == (-1)) ? 0 : 1;
}
return result;
}
{
struct __ecereNameSpace__ecere__sys__File * __ecerePointer___ecereNameSpace__ecere__sys__File = (struct __ecereNameSpace__ecere__sys__File *)(this ? (((char *)this) + __ecereClass___ecereNameSpace__ecere__sys__File->offset) : 0);
-return __ecerePointer___ecereNameSpace__ecere__sys__File->input ? feof(__ecerePointer___ecereNameSpace__ecere__sys__File->input) != 0 : 0x1;
+return __ecerePointer___ecereNameSpace__ecere__sys__File->input ? feof(__ecerePointer___ecereNameSpace__ecere__sys__File->input) != 0 : 1;
}
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__File_Truncate(struct __ecereNameSpace__ecere__com__Instance * this, unsigned int size)
struct __ecereNameSpace__ecere__sys__File * __ecerePointer___ecereNameSpace__ecere__sys__File = (struct __ecereNameSpace__ecere__sys__File *)(this ? (((char *)this) + __ecereClass___ecereNameSpace__ecere__sys__File->offset) : 0);
fprintf((bsl_stderr()), "WARNING: File::Truncate unimplemented in ecereBootstrap.\n");
-return 0x0;
+return 0;
}
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__File_GetSize(struct __ecereNameSpace__ecere__com__Instance * this)
struct __ecereNameSpace__ecere__sys__File * __ecerePointer___ecereNameSpace__ecere__sys__File = (struct __ecereNameSpace__ecere__sys__File *)(this ? (((char *)this) + __ecereClass___ecereNameSpace__ecere__sys__File->offset) : 0);
fflush(__ecerePointer___ecereNameSpace__ecere__sys__File->output);
-return 0x1;
+return 1;
}
int __ecereVMethodID___ecereNameSpace__ecere__sys__File_Getc;
{
struct __ecereNameSpace__ecere__sys__File * __ecerePointer___ecereNameSpace__ecere__sys__File = (struct __ecereNameSpace__ecere__sys__File *)(this ? (((char *)this) + __ecereClass___ecereNameSpace__ecere__sys__File->offset) : 0);
int c = 0;
-unsigned int result = 0x1;
+unsigned int result = 1;
s[c] = (char)0;
if(((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *))__extension__ ({
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Eof])(this))
{
-result = 0x0;
+result = 0;
}
else
{
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Getc])(this, &ch))
{
-result = 0x0;
+result = 0;
break;
}
if(ch == '\n')
struct __ecereNameSpace__ecere__sys__File * __ecerePointer___ecereNameSpace__ecere__sys__File = (struct __ecereNameSpace__ecere__sys__File *)(this ? (((char *)this) + __ecereClass___ecereNameSpace__ecere__sys__File->offset) : 0);
int c;
char ch;
-unsigned int quoted = 0x0;
-unsigned int result = 0x1;
+unsigned int quoted = 0;
+unsigned int result = 1;
*string = (char)0;
-while(0x1)
+while(1)
{
if(!((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, char * ch))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = this;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Getc])(this, &ch))
-result = 0x0;
+result = 0;
if((ch != '\n') && (ch != '\r') && (ch != ' ') && (ch != ',') && (ch != '\t'))
break;
if(((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *))__extension__ ({
{
if(!quoted && ((ch == '\n') || (ch == '\r') || (ch == ' ') || (ch == ',') || (ch == '\t')))
{
-result = 0x1;
+result = 1;
break;
}
if(ch == '\"')
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Getc])(this, &ch))
{
c++;
-result = 0x0;
+result = 0;
break;
}
}
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__File_CopyTo(struct __ecereNameSpace__ecere__com__Instance * this, const char * outputFileName)
{
struct __ecereNameSpace__ecere__sys__File * __ecerePointer___ecereNameSpace__ecere__sys__File = (struct __ecereNameSpace__ecere__sys__File *)(this ? (((char *)this) + __ecereClass___ecereNameSpace__ecere__sys__File->offset) : 0);
-unsigned int result = 0x0;
+unsigned int result = 0;
struct __ecereNameSpace__ecere__com__Instance * f = __ecereNameSpace__ecere__sys__FileOpen(outputFileName, 2);
if(f)
{
unsigned char buffer[65536];
-result = 0x1;
+result = 1;
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, int pos, int mode))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = this;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write])(f, buffer, 1, count))
{
-result = 0x0;
+result = 0;
break;
}
}
{
__ecereProp___ecereNameSpace__ecere__sys__File_Set_input(this, eC_stdin());
__ecereProp___ecereNameSpace__ecere__sys__File_Set_output(this, eC_stdout());
-return 0x1;
+return 1;
}
void __ecereDestructor___ecereNameSpace__ecere__sys__ConsoleFile(struct __ecereNameSpace__ecere__com__Instance * this)
unsigned int __ecereNameSpace__ecere__sys__FileGetSize(const char * fileName, unsigned int * size)
{
-unsigned int result = 0x0;
+unsigned int result = 0;
if(size)
{
unsigned int __ecereNameSpace__ecere__sys__FileGetStats(const char * fileName, struct __ecereNameSpace__ecere__sys__FileStats * stats)
{
-unsigned int result = 0x0;
+unsigned int result = 0;
if(stats && fileName)
{
extern struct __ecereNameSpace__ecere__com__Method * __ecereNameSpace__ecere__com__eClass_AddVirtualMethod(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, const char * type, void * function, int declMode);
-extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, int value);
+extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, long long value);
extern struct __ecereNameSpace__ecere__com__Property * __ecereNameSpace__ecere__com__eClass_AddProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, const char * dataType, void * setStmt, void * getStmt, int declMode);
{
struct __ecereNameSpace__ecere__com__LinkList * __ecerePointer___ecereNameSpace__ecere__com__LinkList = (struct __ecereNameSpace__ecere__com__LinkList *)(this ? (((char *)this) + structSize_Instance) : 0);
-return 0x0;
+return 0;
}
struct __ecereNameSpace__ecere__com__IteratorPointer * __ecereMethod___ecereNameSpace__ecere__com__LinkList_Add(struct __ecereNameSpace__ecere__com__Instance * this, uint64 item)
.__anon1 = {
.dataTypeString = 0
-}, .expression = (__simpleStruct2.__anon1.ui64 = 0LL, __simpleStruct2)
+}, .expression = (__simpleStruct2.__anon1.ui64 = 0, __simpleStruct2)
}
};
struct __ecereNameSpace__ecere__com__ClassTemplateArgument __simpleStruct0 =
memcpy((void *)&link->data, (void *)value, ((struct __ecereNameSpace__ecere__com__Instance *)(char *)this)->_class->templateArgs[6].__anon1.__anon1.dataTypeClass->structSize);
else
link->data = ((uint64)(value));
-return 0x1;
+return 1;
}
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__ListItem;
memcpy((void *)&node->value, (void *)value, ((struct __ecereNameSpace__ecere__com__Instance *)(char *)this)->_class->templateArgs[6].__anon1.__anon1.dataTypeClass->structSize);
else
__ecereProp___ecereNameSpace__ecere__com__MapNode_Set_value(node, value);
-return 0x1;
+return 1;
}
int __ecereVMethodID___ecereNameSpace__ecere__com__Container_GetAtPosition;
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = this;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__Map->_vTbl;
-})[__ecereVMethodID___ecereNameSpace__ecere__com__Container_GetAtPosition])(this, __ecereProp___ecereNameSpace__ecere__com__MapNode_Get_key(newNode), 0x1);
+})[__ecereVMethodID___ecereNameSpace__ecere__com__Container_GetAtPosition])(this, __ecereProp___ecereNameSpace__ecere__com__MapNode_Get_key(newNode), 1);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * pointer, uint64 data))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = this;
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = this;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__Map->_vTbl;
-})[__ecereVMethodID___ecereNameSpace__ecere__com__Container_GetAtPosition])(this, __ecereProp___ecereNameSpace__ecere__com__MapNode_Get_key(srcNode), 0x1);
+})[__ecereVMethodID___ecereNameSpace__ecere__com__Container_GetAtPosition])(this, __ecereProp___ecereNameSpace__ecere__com__MapNode_Get_key(srcNode), 1);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * pointer, uint64 data))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = this;
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = this;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__Map->_vTbl;
-})[__ecereVMethodID___ecereNameSpace__ecere__com__Container_GetAtPosition])(this, __ecereProp___ecereNameSpace__ecere__com__MapNode_Get_key(srcNode), 0x1);
+})[__ecereVMethodID___ecereNameSpace__ecere__com__Container_GetAtPosition])(this, __ecereProp___ecereNameSpace__ecere__com__MapNode_Get_key(srcNode), 1);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * pointer, uint64 data))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = this;
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = container;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__Map->_vTbl;
-})[__ecereVMethodID___ecereNameSpace__ecere__com__Container_GetAtPosition])(container, key, 0x1);
+})[__ecereVMethodID___ecereNameSpace__ecere__com__Container_GetAtPosition])(container, key, 1);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, struct __ecereNameSpace__ecere__com__IteratorPointer * pointer, uint64 data))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = container;
strncpy(archiveName, fileName + 1, c - 1);
archiveName[c - 1] = '\0';
*archiveFile = fileName + c + 1;
-return 0x1;
+return 1;
}
}
else if(fileName[0] == ':')
{
strcpy(archiveName, ":");
*archiveFile = fileName + 1;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
extern char * strstr(const char * , const char * );
char * __ecereNameSpace__ecere__sys__PathCatSlash(char * string, const char * addedPath)
{
-unsigned int modified = 0x0;
+unsigned int modified = 0;
if(addedPath)
{
char fileName[797] = "", archiveName[797] = "";
const char * file = (((void *)0));
int c = 0;
-unsigned int isURL = 0x0;
+unsigned int isURL = 0;
unsigned int isArchive = __ecereNameSpace__ecere__sys__SplitArchivePath(string, archiveName, &file);
char * urlFileName;
char * protocolSymbol;
{
char * slash = strstr(protocolSymbol + 3, "/");
-isURL = 0x1;
+isURL = 1;
if(slash)
urlFileName = slash;
else
memcpy(fileName, addedPath, len);
fileName[len] = (char)0;
-isURL = 0x1;
+isURL = 1;
c = len;
}
else if(__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1)
fileName[1] = ':';
fileName[2] = '\0';
c = 2;
-modified = 0x1;
+modified = 1;
}
else if(addedPath[0] == '\\' && addedPath[1] == '\\')
{
fileName[0] = fileName[1] = '\\';
fileName[2] = '\0';
c = 2;
-modified = 0x1;
+modified = 1;
}
}
if(!modified && isURL && (addedPath[0] == '\\' || addedPath[0] == '/'))
{
fileName[0] = addedPath[0];
fileName[1] = '\0';
-modified = 0x1;
+modified = 1;
}
else if(fileName[0] && fileName[1] == ':')
{
fileName[2] = '\0';
-modified = 0x1;
+modified = 1;
}
else
{
fileName[0] = '\\';
fileName[1] = '\0';
-modified = 0x1;
+modified = 1;
}
}
else
{
fileName[0] = '/';
fileName[1] = '\0';
-modified = 0x1;
+modified = 1;
}
c = 1;
}
}
if(len > 0)
{
-modified = 0x1;
+modified = 1;
if(strstr(directory, "..") == directory && (!directory[2] || directory[2] == ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? '\\' : '/') || directory[2] == '/'))
{
int strLen = strlen(fileName) - 1;
char * __ecereNameSpace__ecere__sys__PathCat(char * string, const char * addedPath)
{
-unsigned int modified = 0x0;
+unsigned int modified = 0;
if(addedPath)
{
char fileName[797] = "", archiveName[797] = "";
const char * file = (((void *)0));
int c = 0;
-unsigned int isURL = 0x0;
+unsigned int isURL = 0;
unsigned int isArchive = __ecereNameSpace__ecere__sys__SplitArchivePath(string, archiveName, &file);
char * urlFileName;
char * protocolSymbol;
{
char * slash = strstr(protocolSymbol + 3, "/");
-isURL = 0x1;
+isURL = 1;
if(slash)
urlFileName = slash;
else
memcpy(fileName, addedPath, len);
fileName[len] = (char)0;
-isURL = 0x1;
+isURL = 1;
c = len;
}
else if(runtimePlatform == 1)
fileName[1] = ':';
fileName[2] = '\0';
c = 2;
-modified = 0x1;
+modified = 1;
}
else if(addedPath[0] == '\\' && addedPath[1] == '\\')
{
fileName[0] = fileName[1] = '\\';
fileName[2] = '\0';
c = 2;
-modified = 0x1;
+modified = 1;
}
else if(fileName[0] == '/' && !archiveName[0] && strcmp(addedPath, "/"))
return (((void *)0));
{
fileName[0] = addedPath[0];
fileName[1] = '\0';
-modified = 0x1;
+modified = 1;
}
else if(fileName[0] && fileName[1] == ':')
{
fileName[2] = '\0';
-modified = 0x1;
+modified = 1;
}
else
{
fileName[0] = '\\';
fileName[1] = '\0';
-modified = 0x1;
+modified = 1;
}
}
else
{
fileName[0] = '/';
fileName[1] = '\0';
-modified = 0x1;
+modified = 1;
}
c = 1;
}
}
if(len > 0)
{
-modified = 0x1;
+modified = 1;
if(strstr(directory, "..") == directory && (!directory[2] || directory[2] == ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? '\\' : '/')))
{
int strLen = strlen(fileName) - 1;
if(strLen > -1)
{
-unsigned int separator = 0x0;
+unsigned int separator = 0;
for(; strLen > -1 && (ch = fileName[strLen]) && (ch == '/' || ch == '\\'); strLen--)
;
for(; strLen > -1 && (ch = fileName[strLen]) && (ch != '/' && ch != '\\' && ch != ':'); strLen--)
;
for(; strLen > -1 && (ch = fileName[strLen]) && (ch == '/' || ch == '\\'); strLen--)
-separator = 0x1;
+separator = 1;
if(isURL)
{
int __simpleStruct0;
{
char pathPart[4384], pathRest[797];
char toPart[4384], toRest[797];
-unsigned int different = 0x0;
+unsigned int different = 0;
strcpy(pathRest, path);
strcpy(toRest, to);
__ecereNameSpace__ecere__sys__SplitDirectory(pathRest, pathPart, pathRest);
if(different || ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? (strcasecmp) : strcmp)(toPart, pathPart))
{
-different = 0x1;
+different = 1;
strcat(destination, "..");
strcat(destination, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "\\" : "/"));
}
if(string[c] == '.')
{
string[c] = '\0';
-return 0x1;
+return 1;
}
else if(string[c] == '\\' || string[c] == '/')
break;
-return 0x0;
+return 0;
}
char * __ecereNameSpace__ecere__sys__ChangeExtension(const char * string, const char * ext, char * output)
const char * escCharsQuoted = "\"()$";
#endif
int count = 0;
-unsigned int quoted = 0x0, escaped = 0x0;
+unsigned int quoted = 0, escaped = 0;
char * start = (((void *)0)), * output = string;
char ch;
{
if(escaped)
{
-escaped = 0x0;
+escaped = 0;
output--;
*output = ch;
}
else if(ch == '\"')
{
-quoted ^= 0x1;
+quoted ^= 1;
output--;
}
else if(ch == ' ' && !quoted)
{
if(ch == '\"')
{
-quoted = 0x1;
+quoted = 1;
start = output + 1;
}
else
start = output;
}
-if(!wasEscaped && ch == '\\' && (esc == 0x1 || (esc == 0x2 && strchr(quoted ? escCharsQuoted : escChars, *(string + 1)))))
-escaped = 0x1;
+if(!wasEscaped && ch == '\\' && (esc == 1 || (esc == 2 && strchr(quoted ? escCharsQuoted : escChars, *(string + 1)))))
+escaped = 1;
}
if(start && count < maxTokens)
{
int __ecereNameSpace__ecere__sys__TokenizeWith(char * string, int maxTokens, char * tokens[], const char * tokenizers, unsigned int escapeBackSlashes)
{
int count = 0;
-unsigned int quoted = 0x0;
+unsigned int quoted = 0;
char * start = (((void *)0));
-unsigned int escaped = 0x0;
+unsigned int escaped = 0;
char * output = string;
-unsigned int quotedFromStart = 0x0;
+unsigned int quotedFromStart = 0;
for(; *string && count < maxTokens; string++, output++)
{
{
if(escaped)
{
-escaped = 0x0;
+escaped = 0;
output--;
if(output != string)
*output = *string;
}
else if(escapeBackSlashes && *string == '\\')
-escaped = 0x1;
+escaped = 1;
else if(*string == '\"')
{
if(quoted)
{
if(quotedFromStart)
*output = '\0';
-quotedFromStart = 0x0;
-quoted = 0x0;
+quotedFromStart = 0;
+quoted = 0;
}
else
-quoted = 0x1;
+quoted = 1;
}
else if(strchr(tokenizers, *string) && !quoted)
{
{
if(*string == '\"')
{
-quotedFromStart = 0x1;
-quoted = 0x1;
+quotedFromStart = 1;
+quoted = 1;
start = output + 1;
}
else
{
start = output;
if(*string == '\\' && escapeBackSlashes)
-escaped = 0x1;
+escaped = 1;
}
}
}
{
int c;
char ch;
-unsigned int quoted = 0x0;
-unsigned int result = 0x1;
+unsigned int quoted = 0;
+unsigned int result = 1;
if(!* *buffer)
{
string[0] = (char)0;
-return 0x0;
+return 0;
}
for(; ; )
{
if(!(ch = *((*buffer)++)))
-result = 0x0;
+result = 0;
if((ch != '\n') && (ch != '\r') && (ch != ' ') && (ch != ',') && (ch != '\t'))
break;
if(!*(*buffer))
{
if(!quoted && ((ch == '\n') || (ch == '\r') || (ch == ' ') || (ch == ',') || (ch == '\t')))
{
-result = 0x1;
+result = 1;
break;
}
if(ch == '\"')
unsigned int __ecereNameSpace__ecere__sys__IsPathInsideOf(const char * path, const char * of)
{
if(!path[0] || !of[0])
-return 0x0;
+return 0;
else
{
char ofPart[274], ofRest[797];
__ecereNameSpace__ecere__sys__SplitDirectory(ofRest, ofPart, ofRest);
__ecereNameSpace__ecere__sys__SplitDirectory(pathRest, pathPart, pathRest);
if(((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? (strcasecmp) : strcmp)(pathPart, ofPart))
-return 0x0;
+return 0;
}
if(!ofRest[0] && !pathRest[0])
-return 0x0;
+return 0;
else if(!pathRest[0])
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
}
extern struct __ecereNameSpace__ecere__com__Instance * __thisModule;
-extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, int value);
+extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, long long value);
void __ecereRegisterModule_String(struct __ecereNameSpace__ecere__com__Instance * module)
{
va_list args;
__builtin_va_start(args, command);
-result = System_Execute((((void *)0)), command, args, 0x0);
+result = System_Execute((((void *)0)), command, args, 0);
__builtin_va_end(args);
return result;
}
va_list args;
__builtin_va_start(args, command);
-result = System_Execute((((void *)0)), command, args, 0x1);
+result = System_Execute((((void *)0)), command, args, 1);
__builtin_va_end(args);
return result;
}
va_list args;
__builtin_va_start(args, command);
-result = System_Execute(env, command, args, 0x0);
+result = System_Execute(env, command, args, 0);
__builtin_va_end(args);
return result;
}
}
if(mode == (int)0)
{
-__ecereNameSpace__ecere__sys__DumpErrors(0x1);
+__ecereNameSpace__ecere__sys__DumpErrors(1);
if(__ecereNameSpace__ecere__sys__globalSystem.errorBuffer)
{
(__ecereNameSpace__ecere__com__eSystem_Delete(__ecereNameSpace__ecere__sys__globalSystem.errorBuffer), __ecereNameSpace__ecere__sys__globalSystem.errorBuffer = 0);
extern struct __ecereNameSpace__ecere__com__Instance * __thisModule;
-extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, int value);
+extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, long long value);
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__DefinedExpression;
struct __ecereNameSpace__ecere__sys__TempFile * __ecerePointer___ecereNameSpace__ecere__sys__TempFile = (struct __ecereNameSpace__ecere__sys__TempFile *)(this ? (((char *)this) + __ecereClass___ecereNameSpace__ecere__sys__TempFile->offset) : 0);
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->openMode = 5;
-return 0x1;
+return 1;
}
void __ecereDestructor___ecereNameSpace__ecere__sys__TempFile(struct __ecereNameSpace__ecere__com__Instance * this)
int read = (__simpleStruct0 = __ecerePointer___ecereNameSpace__ecere__sys__TempFile->size - __ecerePointer___ecereNameSpace__ecere__sys__TempFile->position, (readSize < __simpleStruct0) ? readSize : __simpleStruct0);
if(__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position >= __ecerePointer___ecereNameSpace__ecere__sys__TempFile->size)
-__ecerePointer___ecereNameSpace__ecere__sys__TempFile->eof = 0x1;
+__ecerePointer___ecereNameSpace__ecere__sys__TempFile->eof = 1;
if(buffer)
memcpy(buffer, __ecerePointer___ecereNameSpace__ecere__sys__TempFile->buffer + __ecerePointer___ecereNameSpace__ecere__sys__TempFile->position, read);
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position += read;
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Seek(struct __ecereNameSpace__ecere__com__Instance * this, int pos, int mode)
{
struct __ecereNameSpace__ecere__sys__TempFile * __ecerePointer___ecereNameSpace__ecere__sys__TempFile = (struct __ecereNameSpace__ecere__sys__TempFile *)(this ? (((char *)this) + __ecereClass___ecereNameSpace__ecere__sys__TempFile->offset) : 0);
-unsigned int result = 0x1;
+unsigned int result = 1;
unsigned int increase = 0;
switch(mode)
else
{
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position = __ecerePointer___ecereNameSpace__ecere__sys__TempFile->size;
-result = 0x0;
+result = 0;
}
}
else if(pos < 0)
{
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position = 0;
-result = 0x0;
+result = 0;
}
else
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position = pos;
else
{
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position = __ecerePointer___ecereNameSpace__ecere__sys__TempFile->size;
-result = 0x0;
+result = 0;
}
}
else if(__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position + pos < 0)
{
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position = 0;
-result = 0x0;
+result = 0;
}
else
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position += pos;
else
{
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position = __ecerePointer___ecereNameSpace__ecere__sys__TempFile->size;
-result = 0x0;
+result = 0;
}
}
else if((int)__ecerePointer___ecereNameSpace__ecere__sys__TempFile->size + pos < 0)
{
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position = 0;
-result = 0x0;
+result = 0;
}
else
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position = __ecerePointer___ecereNameSpace__ecere__sys__TempFile->size + pos;
}
}
if(result)
-__ecerePointer___ecereNameSpace__ecere__sys__TempFile->eof = 0x0;
+__ecerePointer___ecereNameSpace__ecere__sys__TempFile->eof = 0;
if(increase)
{
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->size += increase;
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->allocated = (unsigned int)size;
if(__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position > size)
__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position = (unsigned int)size;
-return 0x1;
+return 1;
}
int __ecereProp___ecereNameSpace__ecere__sys__TempFile_Get_openMode(struct __ecereNameSpace__ecere__com__Instance * this)
__ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(this, __ecereProp___ecereNameSpace__ecere__com__SerialBuffer_size), __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(this, __ecerePropM___ecereNameSpace__ecere__com__SerialBuffer_size);
}
+extern int strcmp(const char * , const char * );
+
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__EnumClassData;
struct __ecereNameSpace__ecere__com__EnumClassData
{
struct __ecereNameSpace__ecere__sys__OldList values;
-int largest;
+long long largest;
} __attribute__ ((gcc_struct));
-extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink;
+extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
-struct __ecereNameSpace__ecere__sys__NamedLink
+struct __ecereNameSpace__ecere__sys__NamedLink64
{
-struct __ecereNameSpace__ecere__sys__NamedLink * prev;
-struct __ecereNameSpace__ecere__sys__NamedLink * next;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * prev;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * next;
char * name;
-void * data;
+long long data;
} __attribute__ ((gcc_struct));
extern char * strcpy(char * , const char * );
extern int toupper(int);
-const char * __ecereNameSpace__ecere__com__Enum_OnGetString(struct __ecereNameSpace__ecere__com__Class * _class, int * data, char * tempString, void * fieldData, unsigned int * needClass)
+const char * __ecereNameSpace__ecere__com__Enum_OnGetString(struct __ecereNameSpace__ecere__com__Class * _class, void * data, char * tempString, void * fieldData, unsigned int * needClass)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * item = (((void *)0));
+struct __ecereNameSpace__ecere__sys__NamedLink64 * item = (((void *)0));
struct __ecereNameSpace__ecere__com__Class * b;
+long long i64Data;
+switch(_class->typeSize)
+{
+case 1:
+i64Data = !strcmp(_class->dataTypeString, "byte") ? *(unsigned char *)data : *(char *)data;
+break;
+case 2:
+i64Data = !strcmp(_class->dataTypeString, "uint16") ? *(unsigned short *)data : *(short *)data;
+break;
+case 4:
+i64Data = !strcmp(_class->dataTypeString, "uint") ? *(unsigned int *)data : *(int *)data;
+break;
+case 8:
+i64Data = !strcmp(_class->dataTypeString, "uint64") ? *(long long *)data : *(long long *)data;
+break;
+}
for(b = _class; !item && b && b->type == 4; b = b->base)
{
struct __ecereNameSpace__ecere__com__EnumClassData * enumeration = (struct __ecereNameSpace__ecere__com__EnumClassData *)b->data;
for(item = enumeration->values.first; item; item = item->next)
-if((int)item->data == *data)
+if(item->data == i64Data)
break;
}
if(item)
extern int strcasecmp(const char * , const char * );
-static unsigned int __ecereNameSpace__ecere__com__Integer_OnGetDataFromString(struct __ecereNameSpace__ecere__com__Class * _class, int * data, const char * string);
+static unsigned int __ecereNameSpace__ecere__com__Int64_OnGetDataFromString(struct __ecereNameSpace__ecere__com__Class * _class, long long * data, const char * string);
-static unsigned int __ecereNameSpace__ecere__com__Enum_OnGetDataFromString(struct __ecereNameSpace__ecere__com__Class * _class, int * data, const char * string)
+static unsigned int __ecereNameSpace__ecere__com__Enum_OnGetDataFromString(struct __ecereNameSpace__ecere__com__Class * _class, void * data, const char * string)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * item = (((void *)0));
+struct __ecereNameSpace__ecere__sys__NamedLink64 * item = (((void *)0));
struct __ecereNameSpace__ecere__com__Class * b;
for(b = _class; !item && b && b->type == 4; b = b->base)
}
if(item)
{
-*data = (int)item->data;
-return 0x1;
+switch(_class->typeSize)
+{
+case 1:
+if(!strcmp(_class->dataTypeString, "byte"))
+*(unsigned char *)data = (unsigned char)item->data;
+else
+*(char *)data = (char)item->data;
+break;
+case 2:
+if(!strcmp(_class->dataTypeString, "uint16"))
+*(unsigned short *)data = (unsigned short)item->data;
+else
+*(short *)data = (short)item->data;
+break;
+case 4:
+if(!strcmp(_class->dataTypeString, "uint"))
+*(unsigned int *)data = (unsigned int)item->data;
+else
+*(int *)data = (int)item->data;
+break;
+case 8:
+if(!strcmp(_class->dataTypeString, "uint64"))
+*(uint64 *)data = *(uint64 *)&item->data;
+else
+*(long long *)data = item->data;
+break;
+}
+return 1;
}
else
-return __ecereNameSpace__ecere__com__Integer_OnGetDataFromString(_class, data, string);
-return 0x0;
+return __ecereNameSpace__ecere__com__Int64_OnGetDataFromString(_class, data, string);
+return 0;
}
extern void __ecereNameSpace__ecere__com__eInstance_DecRef(struct __ecereNameSpace__ecere__com__Instance * instance);
return 0;
}
-extern int strcmp(const char * , const char * );
-
static int __ecereNameSpace__ecere__com__OnCompare(struct __ecereNameSpace__ecere__com__Class * _class, void * data1, void * data2)
{
struct __ecereNameSpace__ecere__com__Instance * module = _class->module;
for(prop = _class->conversions.first; prop; prop = prop->next)
{
-unsigned int refProp = 0x0;
+unsigned int refProp = 0;
struct __ecereNameSpace__ecere__com__Class * c;
if(!strcmp(prop->name, _class->base->fullName))
-refProp = 0x1;
+refProp = 1;
else if((c = __ecereNameSpace__ecere__com__eSystem_FindClass(_class->module, prop->name)))
{
struct __ecereNameSpace__ecere__com__Property * p;
{
if(!strcmp(p->name, _class->base->fullName) && !p->Set && !p->Get)
{
-refProp = 0x1;
+refProp = 1;
break;
}
}
}
else
{
-unsigned int atMember = 0x1;
-unsigned int prev = 0x0;
+unsigned int atMember = 1;
+unsigned int prev = 0;
struct __ecereNameSpace__ecere__com__Class * mainClass = _class;
_class = (((void *)0));
value.__anon1.f = ((float (*)(void *))(void *)prop->Get)(data);
if(value.__anon1.f)
{
-unsigned int needClass = 0x1;
+unsigned int needClass = 1;
const char * result = ((const char * (*)(void *, void *, char *, void *, unsigned int *))(void *)memberType->_vTbl[__ecereVMethodID_class_OnGetString])(memberType, &value, memberString, (((void *)0)), &needClass);
if(result && result != memberString)
value.__anon1.p = ((void * (*)(void *))(void *)prop->Get)(data);
if(value.__anon1.p || prop->IsSet)
{
-unsigned int needClass = 0x1;
+unsigned int needClass = 1;
const char * result = ((const char * (*)(void *, void *, char *, void *, unsigned int *))(void *)memberType->_vTbl[__ecereVMethodID_class_OnGetString])(memberType, (memberType->type == 0) ? value.__anon1.p : &value, memberString, (((void *)0)), &needClass);
if(result && result != memberString)
value.__anon1.i = ((int (*)(void *))(void *)prop->Get)(data);
if(value.__anon1.i || prop->IsSet)
{
-unsigned int needClass = 0x1;
+unsigned int needClass = 1;
const char * result = ((const char * (*)(void *, void *, char *, void *, unsigned int *))(void *)memberType->_vTbl[__ecereVMethodID_class_OnGetString])(memberType, &value, memberString, (((void *)0)), &needClass);
if(result && result != memberString)
break;
if(c < typeSize)
{
-unsigned int needClass = 0x1;
+unsigned int needClass = 1;
const char * result;
if(memberType->type == 0)
value.__anon1.ui64 = ((*(unsigned int *)data & bitMember->mask) >> bitMember->pos);
if(value.__anon1.ui64)
{
-unsigned int needClass = 0x1;
+unsigned int needClass = 1;
char internalMemberString[1024];
const char * result = ((const char * (*)(void *, void *, char *, void *, unsigned int *))(void *)memberType->_vTbl[__ecereVMethodID_class_OnGetString])(memberType, &value, internalMemberString, (((void *)0)), &needClass);
value.__anon1.i = *(int *)((unsigned char *)data + (((member->_class->type == 0) ? member->_class->offset : 0) + member->offset));
if(value.__anon1.i)
{
-unsigned int needClass = 0x1;
+unsigned int needClass = 1;
const char * result = ((const char * (*)(void *, void *, char *, void *, unsigned int *))(void *)memberType->_vTbl[__ecereVMethodID_class_OnGetString])(memberType, &value, memberString, (((void *)0)), &needClass);
if(result && memberString != result)
}
else
{
-unsigned int needClass = 0x1;
+unsigned int needClass = 1;
const char * result = ((const char * (*)(void *, void *, char *, void *, unsigned int *))(void *)memberType->_vTbl[__ecereVMethodID_class_OnGetString])(memberType, ((unsigned char *)data + (((member->_class->type == 0) ? member->_class->offset : 0) + member->offset)), memberString, (((void *)0)), &needClass);
if(result && memberString != result)
}
else
strcat(tempString, memberString);
-atMember = 0x1;
-prev = 0x1;
+atMember = 1;
+prev = 1;
}
else if(member && (!member->isProperty || !((struct __ecereNameSpace__ecere__com__Property *)member)->conversion))
-atMember = 0x0;
+atMember = 0;
}
}
}
struct __ecereNameSpace__ecere__com__Instance * module = _class->module;
if(_class->type == 4)
-result = __ecereNameSpace__ecere__com__Enum_OnGetDataFromString(_class, (int *)data, string);
+result = __ecereNameSpace__ecere__com__Enum_OnGetDataFromString(_class, (long long *)data, string);
else if(_class->type == 3)
{
struct __ecereNameSpace__ecere__com__Class * dataType;
for(prop = _class->conversions.first; prop; prop = prop->next)
{
-unsigned int refProp = 0x0;
+unsigned int refProp = 0;
struct __ecereNameSpace__ecere__com__Class * c;
if(!strcmp(prop->name, _class->base->fullName))
-refProp = 0x1;
+refProp = 1;
else if((c = __ecereNameSpace__ecere__com__eSystem_FindClass(_class->module, prop->name)))
{
struct __ecereNameSpace__ecere__com__Property * p;
{
if(!strcmp(p->name, _class->base->fullName) && !p->Set && !p->Get)
{
-refProp = 0x1;
+refProp = 1;
break;
}
}
else if(!string[0] && _class->type == 0)
{
*data = (((void *)0));
-return 0x1;
+return 1;
}
else
{
char memberName[1024];
char memberString[10240];
int count = 0;
-unsigned int quoted = 0x0;
+unsigned int quoted = 0;
int brackets = 0;
char ch;
-unsigned int escape = 0x0;
+unsigned int escape = 0;
unsigned int gotChar;
unsigned int memberOffset;
struct __ecereNameSpace__ecere__com__Class * curClass = (((void *)0));
struct __ecereNameSpace__ecere__com__DataMember * subMemberStack[256];
int subMemberStackPos = 0;
-result = 0x1;
+result = 1;
if(_class->type == 5 || _class->type == 0)
{
data = *data = __ecereNameSpace__ecere__com__eInstance_New(_class);
memberName[0] = '\0';
for(c = 0; string[c] && count < sizeof (memberString); )
{
-unsigned int found = 0x0;
+unsigned int found = 0;
struct __ecereNameSpace__ecere__com__DataMember * thisMember = (((void *)0));
brackets = 0;
-gotChar = 0x0;
+gotChar = 0;
for(; (ch = string[c]) && count < sizeof (memberString); c++)
{
if(ch == '\"' && !escape)
{
-quoted ^= 0x1;
+quoted ^= 1;
}
else if(quoted)
{
if(!escape && ch == '\\')
{
-escape = 0x1;
+escape = 1;
}
else
{
memberString[count++] = ch;
-escape = 0x0;
+escape = 0;
}
}
else if(ch == ' ')
if(gotChar && !brackets)
{
count = 0;
-gotChar = 0x0;
+gotChar = 0;
}
if(brackets)
{
memberString[count++] = ch;
-gotChar = 0x1;
+gotChar = 1;
}
brackets++;
}
brackets--;
if(brackets)
{
-gotChar = 0x1;
+gotChar = 1;
memberString[count++] = ch;
}
}
memberString[count] = '\0';
__ecereNameSpace__ecere__sys__TrimRSpaces(memberString, memberName);
count = 0;
-gotChar = 0x0;
+gotChar = 0;
}
}
else
{
memberString[count++] = ch;
-gotChar = 0x1;
+gotChar = 1;
}
}
memberString[count] = '\0';
memcpy(subMemberStack, _subMemberStack, sizeof(int) * _subMemberStackPos);
subMemberStackPos = _subMemberStackPos;
}
-found = 0x1;
+found = 1;
}
}
else
thisMember = curMember;
if(thisMember)
{
-found = 0x1;
+found = 1;
__ecereNameSpace__ecere__com__eClass_FindDataMemberAndOffset(_class, thisMember->name, &memberOffset, _class->module, (((void *)0)), (((void *)0)));
}
}
if(thisMember)
{
if(!((unsigned int (*)(void *, void *, const char *))(void *)memberType->_vTbl[__ecereVMethodID_class_OnGetDataFromString])(memberType, (unsigned char *)data + (((thisMember->_class->type == 0) ? thisMember->_class->offset : 0) + memberOffset), memberString))
-result = 0x0;
+result = 0;
}
}
else
if(memberType->_vTbl[__ecereVMethodID_class_OnGetDataFromString] == _class->_vTbl[__ecereVMethodID_class_OnGetDataFromString])
{
if(!__ecereNameSpace__ecere__com__OnGetDataFromString(memberType, &value, memberString))
-result = 0x0;
+result = 0;
}
else if(!((unsigned int (*)(void *, void *, const char *))(void *)memberType->_vTbl[__ecereVMethodID_class_OnGetDataFromString])(memberType, &value, memberString))
-result = 0x0;
+result = 0;
if(thisMember && !thisMember->isProperty)
{
if(_class->type == 2)
}
}
else
-result = 0x0;
+result = 0;
count = 0;
memberName[0] = '\0';
}
if(end > string)
{
*data = result;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
static const char * __ecereNameSpace__ecere__com__Int16_OnGetString(struct __ecereNameSpace__ecere__com__Class * _class, short * data, char * string, void * fieldData, unsigned int * needClass)
if(end > string)
{
*data = result;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
static int __ecereNameSpace__ecere__com__Int16_OnCompare(struct __ecereNameSpace__ecere__com__Class * _class, short * data1, short * data2)
if(end > string)
{
*data = result;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
static unsigned int __ecereNameSpace__ecere__com__UInt16_OnGetDataFromString(struct __ecereNameSpace__ecere__com__Class * _class, unsigned short * data, const char * string)
if(end > string)
{
*data = result;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
static int __ecereNameSpace__ecere__com__Byte_OnCompare(struct __ecereNameSpace__ecere__com__Class * _class, unsigned char * data1, unsigned char * data2)
if(end > string)
{
*data = result;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
static int __ecereNameSpace__ecere__com__Int64_OnCompare(struct __ecereNameSpace__ecere__com__Class * _class, long long * data1, long long * data2)
if(end > string)
{
*data = result;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
extern uint64 __ecereNameSpace__ecere__com___strtoui64(const char * string, const char * * endString, int base);
if(end > string)
{
*data = result;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
int __ecereVMethodID___ecereNameSpace__ecere__com__IOChannel_WriteData;
integerClass->dataTypeString = __ecereNameSpace__ecere__sys__CopyString("uintptr_t");
integerClass->structSize = 0;
integerClass->typeSize = sizeof(uintptr_t);
-integerClass->byValueSystemClass = 0x1;
+integerClass->byValueSystemClass = 1;
if(sizeof(uintptr_t) == 8)
{
__ecereNameSpace__ecere__com__eClass_AddMethod(integerClass, "OnGetString", (((void *)0)), __ecereNameSpace__ecere__com__UIntPtr64_OnGetString, 1);
integerClass->dataTypeString = __ecereNameSpace__ecere__sys__CopyString("intptr_t");
integerClass->structSize = 0;
integerClass->typeSize = sizeof(intptr_t);
-integerClass->byValueSystemClass = 0x1;
+integerClass->byValueSystemClass = 1;
if(sizeof(intptr_t) == 8)
{
__ecereNameSpace__ecere__com__eClass_AddMethod(integerClass, "OnGetString", (((void *)0)), __ecereNameSpace__ecere__com__IntPtr64_OnGetString, 1);
if(end > string)
{
*data = result;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
static void __ecereNameSpace__ecere__com__Float_OnSerialize(struct __ecereNameSpace__ecere__com__Class * _class, float * data, struct __ecereNameSpace__ecere__com__Instance * channel)
if(end > string)
{
*data = result;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
static void __ecereNameSpace__ecere__com__Double_OnSerialize(struct __ecereNameSpace__ecere__com__Class * _class, double * data, struct __ecereNameSpace__ecere__com__Instance * channel)
else
*data = (((void *)0));
}
-return 0x1;
+return 1;
}
int __ecereNameSpace__ecere__com__String_OnCompare(struct __ecereNameSpace__ecere__com__Class * _class, const char * string1, const char * string2)
(__ecereNameSpace__ecere__com__eSystem_Delete((void *)stringClass->dataTypeString), stringClass->dataTypeString = 0);
stringClass->dataTypeString = __ecereNameSpace__ecere__sys__CopyString("char *");
stringClass->structSize = 0;
-stringClass->computeSize = 0x0;
+stringClass->computeSize = 0;
__ecereNameSpace__ecere__com__eClass_AddMethod(stringClass, "OnCompare", (((void *)0)), __ecereNameSpace__ecere__com__String_OnCompare, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(stringClass, "OnCopy", (((void *)0)), __ecereNameSpace__ecere__com__String_OnCopy, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(stringClass, "OnFree", (((void *)0)), __ecereNameSpace__ecere__com__String_OnFree, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(stringClass, "OnUnserialize", (((void *)0)), __ecereNameSpace__ecere__com__String_OnUnserialize, 1);
stringClass = __ecereNameSpace__ecere__com__eSystem_RegisterClass(0, "String", "char *", 0, 0, (((void *)0)), (((void *)0)), module, 4, 1);
stringClass->structSize = 0;
-stringClass->computeSize = 0x0;
+stringClass->computeSize = 0;
__ecereNameSpace__ecere__com__eClass_AddProperty(stringClass, (((void *)0)), "char *", (((void *)0)), (((void *)0)), 1);
}
if(result != buffer)
memcpy(buffer, result, len);
}
-while(0x1)
+while(1)
{
struct __ecereNameSpace__ecere__com__Class * _class = (((void *)0));
void * data = (((void *)0));
__ecerePropM___ecereNameSpace__ecere__com__SerialBuffer_size = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "size", "uint", __ecereProp___ecereNameSpace__ecere__com__SerialBuffer_Set_size, __ecereProp___ecereNameSpace__ecere__com__SerialBuffer_Get_size, 1);
if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + structSize_Instance)))->application)
__ecereProp___ecereNameSpace__ecere__com__SerialBuffer_size = __ecerePropM___ecereNameSpace__ecere__com__SerialBuffer_size, __ecerePropM___ecereNameSpace__ecere__com__SerialBuffer_size = (void *)0;
-__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::Enum_OnGetString", "const char * ecere::com::Enum_OnGetString(ecere::com::Class _class, int * data, char * tempString, void * fieldData, bool * needClass)", __ecereNameSpace__ecere__com__Enum_OnGetString, module, 4);
+__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::Enum_OnGetString", "const char * ecere::com::Enum_OnGetString(ecere::com::Class _class, int64 * data, char * tempString, void * fieldData, bool * needClass)", __ecereNameSpace__ecere__com__Enum_OnGetString, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::Integer_OnGetString", "const char * ecere::com::Integer_OnGetString(ecere::com::Class _class, int * data, char * string, void * fieldData, bool * needClass)", __ecereNameSpace__ecere__com__Integer_OnGetString, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::Byte_OnSerialize", "void ecere::com::Byte_OnSerialize(ecere::com::Class _class, byte * data, ecere::com::IOChannel channel)", __ecereNameSpace__ecere__com__Byte_OnSerialize, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::Byte_OnUnserialize", "void ecere::com::Byte_OnUnserialize(ecere::com::Class _class, byte * data, ecere::com::IOChannel channel)", __ecereNameSpace__ecere__com__Byte_OnUnserialize, module, 4);
int __ecereVMethodID___ecereNameSpace__ecere__sys__FileSystem_Stats;
-struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink;
-
struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__OldLink;
method = __ecereNameSpace__ecere__com__eClass_FindMethod(_class, "Stats", module);
if(method)
__ecereVMethodID___ecereNameSpace__ecere__sys__FileSystem_Stats = method->vid;
-__ecereClass___ecereNameSpace__ecere__sys__NamedLink = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::NamedLink");
__ecereClass___ecereNameSpace__ecere__sys__NamedLink64 = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::NamedLink64");
__ecereClass___ecereNameSpace__ecere__sys__OldLink = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::OldLink");
__ecereClass___ecereNameSpace__ecere__sys__OldList = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::OldList");
{
__ecereCreateModuleInstances_System();
}
-return 0x1;
+return 1;
}
extern void __ecereNameSpace__ecere__UnloadTranslatedStrings(const char * name);
__ecereUnregisterModule_OldList(module);
if(__currentModule == module)
__currentModule = (void *)0;
-return 0x1;
+return 1;
}
void __ecereRegisterModule_ecere_main(struct __ecereNameSpace__ecere__com__Instance * module)
{
struct __ecereNameSpace__ecere__com__MapIterator it = (it.container = (void *)0, it.pointer = (void *)0, __ecereProp___ecereNameSpace__ecere__com__MapIterator_Set_map(&it, __ecereNameSpace__ecere__moduleMaps), it);
-if(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index((void *)&it, (uint64)(name), 0x0))
+if(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index((void *)&it, (uint64)(name), 0))
(__ecereNameSpace__ecere__com__eInstance_DecRef(((void * )(__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data((void *)&it)))), __ecereProp___ecereNameSpace__ecere__com__Iterator_Set_data((void *)&it, 0));
}
__extension__ ({
__ecereNameSpace__ecere__moduleMaps, 0
};
-__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(name)), 0x1);
+__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(name)), 1);
__ecereProp___ecereNameSpace__ecere__com__Iterator_Set_data(&__internalIterator, ((uint64)(textMap = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass___ecereNameSpace__ecere__com__Map_TPL_String__const_String_))));
});
for(c = 0; c < numStrings; c++)
{
struct __ecereNameSpace__ecere__com__MapIterator it = (it.container = (void *)0, it.pointer = (void *)0, __ecereProp___ecereNameSpace__ecere__com__MapIterator_Set_map(&it, textMap), it);
-if(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index((void *)&it, (uint64)(original), 0x0))
+if(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index((void *)&it, (uint64)(original), 0))
(__ecereNameSpace__ecere__com__eSystem_Delete(translated), translated = 0);
else
__extension__ ({
textMap, 0
};
-__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(original)), 0x1);
+__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(original)), 1);
__ecereProp___ecereNameSpace__ecere__com__Iterator_Set_data(&__internalIterator, ((uint64)(translated)));
});
}
{
struct __ecereNameSpace__ecere__com__MapIterator it = (it.container = (void *)0, it.pointer = (void *)0, __ecereProp___ecereNameSpace__ecere__com__MapIterator_Set_map(&it, __ecereNameSpace__ecere__moduleMaps), it);
-if(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index((void *)&it, (uint64)(name), 0x0))
+if(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index((void *)&it, (uint64)(name), 0))
{
((void (*)(struct __ecereNameSpace__ecere__com__Instance *))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = ((struct __ecereNameSpace__ecere__com__Instance *)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data((void *)&it));
__ecereNameSpace__ecere__moduleMaps, 0
};
-__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(name)), 0x0);
+__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(name)), 0);
((struct __ecereNameSpace__ecere__com__Instance *)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data(&__internalIterator));
})))) : (((void *)0));
const char * result = textMap ? (((const char *)(__extension__ ({
textMap, 0
};
-__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(stringAndContext ? stringAndContext : string)), 0x0);
+__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(stringAndContext ? stringAndContext : string)), 0);
((char *)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data(&__internalIterator));
})))) : string;
#define structSize_GlobalFunction (_64BIT ? 72 : 36)
#define structSize_DefinedExpression (_64BIT ? 40 : 20)
#define structSize_BitMember (_64BIT ? 96 : 64)
-#define structSize_NamedLink (_64BIT ? 32 : 16)
#define structSize_DataMember (_64BIT ? 160 : 96)
#define structSize_ClassProperty (_64BIT ? 80 : 40)
#define structSize_Method (_64BIT ? 96 : 52)
int nb;
(*this) = __ecereNameSpace__ecere__sys__UTF8GetChar(string, &nb);
-return 0x1;
+return 1;
}
void __ecereNameSpace__ecere__com__eInstance_FireWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
struct __ecereNameSpace__ecere__com__EnumClassData
{
struct __ecereNameSpace__ecere__sys__OldList values;
-int largest;
+long long largest;
} __attribute__ ((gcc_struct));
static struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__EnumClassData;
block->next = (((void *)0));
this->totalSize += numBlocks;
this->numParts++;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
struct __ecereNameSpace__ecere__com__MemBlock * __ecereMethod___ecereNameSpace__ecere__com__BlockPool_Add(struct __ecereNameSpace__ecere__com__BlockPool * this)
return 1 << __ecereNameSpace__ecere__com__log2i(number);
}
-static unsigned int __ecereNameSpace__ecere__com__memoryInitialized = 0x0;
+static unsigned int __ecereNameSpace__ecere__com__memoryInitialized = 0;
static void __ecereNameSpace__ecere__com__InitMemory()
{
int c;
-__ecereNameSpace__ecere__com__memoryInitialized = 0x1;
+__ecereNameSpace__ecere__com__memoryInitialized = 1;
__ecereNameSpace__ecere__com__pools = calloc(1, sizeof(struct __ecereNameSpace__ecere__com__BlockPool) * 31);
for(c = 0; c < 31; c++)
{
if(watcher->_property == prop)
watcher->_property = _property;
}
-_property->selfWatchable = 0x1;
+_property->selfWatchable = 1;
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Delete(&_class->prop, (struct __ecereNameSpace__ecere__sys__BTNode *)link);
(__ecereNameSpace__ecere__com__eSystem_Delete((void *)prop->name), prop->name = 0);
(__ecereNameSpace__ecere__com__eSystem_Delete((void *)prop->dataTypeString), prop->dataTypeString = 0);
{
int start = 0, c;
struct __ecereNameSpace__ecere__com__NameSpace * nameSpace = (((void *)0));
-unsigned int force64Bits = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 2) ? 0x1 : 0x0;
-unsigned int force32Bits = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 4) ? 0x1 : 0x0;
-unsigned int inCompiler = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 8) ? 0x1 : 0x0;
+unsigned int force64Bits = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 2) ? 1 : 0;
+unsigned int force32Bits = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 4) ? 1 : 0;
+unsigned int inCompiler = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 8) ? 1 : 0;
unsigned int crossBits = force32Bits || force64Bits;
-unsigned int fixed = 0x0;
+unsigned int fixed = 0;
if(inCompiler && crossBits)
{
struct __ecereNameSpace__ecere__com__Class * c = __ecereNameSpace__ecere__com__eSystem_FindClass(((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + structSize_Instance)))->application, name);
if(c && c->fixed)
-fixed = 0x1;
+fixed = 1;
else if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + structSize_Instance)))->name && !strcmp(((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + structSize_Instance)))->name, "ecereCOM"))
-fixed = 0x1;
+fixed = 1;
}
{
nameSpace = (declMode == 1) ? &((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->publicNameSpace : &((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->privateNameSpace;
else
{
base = __ecereNameSpace__ecere__com__eSystem_RegisterClass((int)0, baseName, (((void *)0)), 0, 0, (((void *)0)), (((void *)0)), module, declMode, 1);
-base->internalDecl = 0x1;
+base->internalDecl = 1;
enumBase = base;
base = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "enum");
}
_class = __ecereNameSpace__ecere__com__eSystem_FindClass(module, name);
if(!_class)
{
-const char * colons = __ecereNameSpace__ecere__sys__RSearchString(name, "::", strlen(name), 0x1, 0x0);
+const char * colons = __ecereNameSpace__ecere__sys__RSearchString(name, "::", strlen(name), 1, 0);
if(colons && colons)
{
printf("error: Redefinition of class %s\n", name);
else
{
-_class->comRedefinition = 0x1;
+_class->comRedefinition = 1;
return _class;
}
return (((void *)0));
if(!templateBase)
{
templateBase = __ecereNameSpace__ecere__com__eSystem_RegisterClass((int)0, templateClassName, (((void *)0)), 0, 0, (((void *)0)), (((void *)0)), module, declMode, 1);
-templateBase->internalDecl = 0x1;
+templateBase->internalDecl = 1;
}
base = __ecereNameSpace__ecere__com__eSystem_FindClass(module, baseName);
}
else
{
base = __ecereNameSpace__ecere__com__eSystem_RegisterClass((int)0, baseName, (((void *)0)), 0, 0, (((void *)0)), (((void *)0)), module, declMode, 1);
-base->internalDecl = 0x1;
+base->internalDecl = 1;
}
}
else
-_class->internalDecl = 0x0;
+_class->internalDecl = 0;
if(totalSizeClass)
{
_class->data = __ecereNameSpace__ecere__com__eSystem_Renew(_class->data, sizeof(unsigned char) * (totalSizeClass));
size = 0;
else if(!strcmp(name, "ecere::sys::NamedLink"))
size = 0;
+else if(!strcmp(name, "ecere::sys::NamedLink64"))
+size = 0;
else if(!strcmp(name, "ecere::sys::OldLink"))
size = 0;
else if(!strcmp(name, "ecere::sys::NamedItem"))
if(_class->type != 1000)
_class->type = type;
if(!size)
-_class->computeSize = 0x1;
+_class->computeSize = 1;
else
-_class->computeSize = 0x0;
+_class->computeSize = 0;
_class->inheritanceAccess = inheritanceAccess;
if(type == 4)
{
}
}
-extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink;
+extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
-struct __ecereNameSpace__ecere__sys__NamedLink
+struct __ecereNameSpace__ecere__sys__NamedLink64
{
-struct __ecereNameSpace__ecere__sys__NamedLink * prev;
-struct __ecereNameSpace__ecere__sys__NamedLink * next;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * prev;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * next;
char * name;
-void * data;
+long long data;
} __attribute__ ((gcc_struct));
-static void __ecereNameSpace__ecere__com__FreeEnumValue(struct __ecereNameSpace__ecere__sys__NamedLink * value)
+static void __ecereNameSpace__ecere__com__FreeEnumValue(struct __ecereNameSpace__ecere__sys__NamedLink64 * value)
{
(__ecereNameSpace__ecere__com__eSystem_Delete(value->name), value->name = 0);
}
{
if(searchPrivate || subModule->importMode == 1)
{
-link = __ecereNameSpace__ecere__com__SearchModule(subModule->module, name, listOffset, 0x0);
+link = __ecereNameSpace__ecere__com__SearchModule(subModule->module, name, listOffset, 0);
if(link)
return link;
}
link = __ecereNameSpace__ecere__com__SearchNameSpace(&((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->systemNameSpace, name, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).classes);
if(link)
return link->data;
-link = __ecereNameSpace__ecere__com__SearchModule(module, name, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).classes, 0x1);
+link = __ecereNameSpace__ecere__com__SearchModule(module, name, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).classes, 1);
if(link)
return link->data;
{
strcpy(noTemplateName, name);
link = __ecereNameSpace__ecere__com__SearchNameSpace(&((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->systemNameSpace, noTemplateName, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).classes);
if(!link)
-link = __ecereNameSpace__ecere__com__SearchModule(module, noTemplateName, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).classes, 0x1);
+link = __ecereNameSpace__ecere__com__SearchModule(module, noTemplateName, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).classes, 1);
if(link)
{
struct __ecereNameSpace__ecere__com__Class * _class = link->data;
link = __ecereNameSpace__ecere__com__SearchNameSpace(&((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->systemNameSpace, className, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).classes);
if(link)
return link->data;
-link = __ecereNameSpace__ecere__com__SearchModule(module, className, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).classes, 0x1);
+link = __ecereNameSpace__ecere__com__SearchModule(module, className, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).classes, 1);
if(link)
return link->data;
if(_class && templateParams)
unsigned int __ecereNameSpace__ecere__com__DefaultFunction()
{
-return 0x1;
+return 1;
}
unsigned int __ecereNameSpace__ecere__com__eClass_IsDerived(struct __ecereNameSpace__ecere__com__Class * _class, struct __ecereNameSpace__ecere__com__Class * from)
{
if(!_class && !from)
-return 0x1;
+return 1;
if(_class && from && (_class->templateClass || from->templateClass))
{
if(__ecereNameSpace__ecere__com__eClass_IsDerived(_class->templateClass ? _class->templateClass : _class, from->templateClass ? from->templateClass : from))
{
if(!from->templateClass)
-return 0x1;
+return 1;
else if(!_class->templateClass && _class == from->templateClass)
-return 0x0;
+return 0;
else
{
struct __ecereNameSpace__ecere__com__Class * sClass;
}
}
if(param)
-return 0x0;
+return 0;
}
}
-return 0x1;
+return 1;
}
}
}
for(; _class && from; _class = _class->base)
{
if(_class == from || _class->templateClass == from || ((_class->type == 1000 || (_class->type == 0 && _class->isInstanceClass)) && from->name && !strcmp(_class->name, from->name)))
-return 0x1;
+return 1;
}
}
-return 0x0;
+return 0;
}
static void __ecereNameSpace__ecere__com__FixDerivativeVirtualMethod(struct __ecereNameSpace__ecere__com__Class * base, const char * name, int vid, void * origFunction, const char * type)
if(watcher->_property == prop)
watcher->_property = _property;
}
-_property->selfWatchable = 0x1;
+_property->selfWatchable = 1;
(__ecereNameSpace__ecere__com__eSystem_Delete((void *)prop->name), prop->name = 0);
(__ecereNameSpace__ecere__com__eSystem_Delete((void *)prop->dataTypeString), prop->dataTypeString = 0);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Delete(&_class->membersAndProperties, prop);
if(_class)
{
struct __ecereNameSpace__ecere__com__BTNamedLink * link = (struct __ecereNameSpace__ecere__com__BTNamedLink *)__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_FindString(&_class->prop, name ? name : dataType);
-unsigned int isConversion = name ? 0x0 : 0x1;
+unsigned int isConversion = name ? 0 : 1;
if(!name && dataType && !strncmp(dataType, "const ", 6))
{
name = dataType + 6;
-isConversion = 0x1;
+isConversion = 1;
}
if(link)
_property = link->data;
_property = __extension__ ({
struct __ecereNameSpace__ecere__com__Property * __ecereInstance1 = __ecereNameSpace__ecere__com__eSystem_New0(structSize_Property);
-__ecereInstance1->isProperty = 0x1, __ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(name ? name : dataType), __ecereInstance1->id = (name && (setStmt || getStmt || dataType)) ? _class->memberID++ : 0, __ecereInstance1->Set = setStmt, __ecereInstance1->Get = getStmt, __ecereInstance1->dataTypeString = __ecereNameSpace__ecere__sys__CopyString(dataType), __ecereInstance1->_class = _class, __ecereInstance1->compiled = 0x1, __ecereInstance1->conversion = isConversion, __ecereInstance1->memberAccess = declMode, __ecereInstance1;
+__ecereInstance1->isProperty = 1, __ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(name ? name : dataType), __ecereInstance1->id = (name && (setStmt || getStmt || dataType)) ? _class->memberID++ : 0, __ecereInstance1->Set = setStmt, __ecereInstance1->Get = getStmt, __ecereInstance1->dataTypeString = __ecereNameSpace__ecere__sys__CopyString(dataType), __ecereInstance1->_class = _class, __ecereInstance1->compiled = 1, __ecereInstance1->conversion = isConversion, __ecereInstance1->memberAccess = declMode, __ecereInstance1;
});
if(!isConversion)
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&_class->membersAndProperties, _property);
return _property;
}
-extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
-
-struct __ecereNameSpace__ecere__sys__NamedLink64
-{
-struct __ecereNameSpace__ecere__sys__NamedLink64 * prev;
-struct __ecereNameSpace__ecere__sys__NamedLink64 * next;
-char * name;
-long long data;
-} __attribute__ ((gcc_struct));
-
static void __ecereNameSpace__ecere__com__SetDelayedCPValues(struct __ecereNameSpace__ecere__com__Class * _class, struct __ecereNameSpace__ecere__com__ClassProperty * _property)
{
struct __ecereNameSpace__ecere__sys__OldLink * deriv;
if(_class->base && from != _class->base)
{
if(!__ecereNameSpace__ecere__com__ConstructInstance(instance, _class->base, from))
-return 0x0;
+return 0;
}
if(_class->Initialize)
{
if(_class->Destructor)
_class->Destructor(instance);
}
-return 0x0;
+return 0;
}
}
(_class->templateClass ? _class->templateClass : _class)->count++;
-return 0x1;
+return 1;
}
void * __ecereNameSpace__ecere__com__eInstance_New(struct __ecereNameSpace__ecere__com__Class * _class)
{
int size = _class->structSize;
int flags = ((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)_class->module + structSize_Instance)))->application + structSize_Module)))->isGUIApp;
-unsigned int inCompiler = (flags & 8) ? 0x1 : 0x0;
-unsigned int force32Bits = (flags & 4) ? 0x1 : 0x0;
+unsigned int inCompiler = (flags & 8) ? 1 : 0;
+unsigned int force32Bits = (flags & 4) ? 1 : 0;
if(force32Bits && inCompiler)
{
{
if(_class && instancePtr && *instancePtr)
{
-unsigned int wasApp = 0x0, wasGuiApp = 0x0;
+unsigned int wasApp = 0, wasGuiApp = 0;
struct __ecereNameSpace__ecere__com__Instance * instance = (struct __ecereNameSpace__ecere__com__Instance *)__ecereNameSpace__ecere__com__eSystem_Renew(*instancePtr, sizeof(unsigned char) * (_class->structSize));
struct __ecereNameSpace__ecere__com__Class * fromClass = ((struct __ecereNameSpace__ecere__com__Instance *)(char *)instance)->_class;
for(; _class; _class = _class->base)
{
if(_class == from)
-return 0x1;
+return 1;
}
}
-return 0x0;
+return 0;
}
void __ecereNameSpace__ecere__com__eInstance_IncRef(struct __ecereNameSpace__ecere__com__Instance * instance)
{
__ecereNameSpace__ecere__com__DataMember_Free(dataMember);
((dataMember ? (__ecereClass___ecereNameSpace__ecere__com__DataMember->Destructor ? __ecereClass___ecereNameSpace__ecere__com__DataMember->Destructor((void *)dataMember) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(dataMember)) : 0), dataMember = 0);
-return 0x0;
+return 0;
}
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&addTo->members, dataMember);
if(dataMember->name)
}
else
addTo->memberOffset += dataMember->memberOffset;
-return 0x1;
+return 1;
}
unsigned int __ecereNameSpace__ecere__com__eClass_AddMember(struct __ecereNameSpace__ecere__com__Class * _class, struct __ecereNameSpace__ecere__com__DataMember * dataMember)
{
__ecereNameSpace__ecere__com__DataMember_Free(dataMember);
((dataMember ? (__ecereClass___ecereNameSpace__ecere__com__DataMember->Destructor ? __ecereClass___ecereNameSpace__ecere__com__DataMember->Destructor((void *)dataMember) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(dataMember)) : 0), dataMember = 0);
-return 0x0;
+return 0;
}
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&_class->membersAndProperties, dataMember);
if(dataMember->name)
}
dataMember->offset = _class->memberOffset;
_class->memberOffset += dataMember->memberOffset;
-return 0x1;
+return 1;
}
struct __ecereNameSpace__ecere__com__BitMember * __ecereNameSpace__ecere__com__eClass_AddBitMember(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, const char * type, int bitSize, int bitPos, int declMode)
struct __ecereNameSpace__ecere__com__Instance * __ecereNameSpace__ecere__com__eModule_Load(struct __ecereNameSpace__ecere__com__Instance * fromModule, const char * name, int importAccess)
{
-return __ecereNameSpace__ecere__com__Module_Load(fromModule, name, importAccess, 0x1);
+return __ecereNameSpace__ecere__com__Module_Load(fromModule, name, importAccess, 1);
}
struct __ecereNameSpace__ecere__com__Instance * __ecereNameSpace__ecere__com__eModule_LoadStrict(struct __ecereNameSpace__ecere__com__Instance * fromModule, const char * name, int importAccess)
{
-return __ecereNameSpace__ecere__com__Module_Load(fromModule, name, importAccess, 0x0);
+return __ecereNameSpace__ecere__com__Module_Load(fromModule, name, importAccess, 0);
}
struct __ecereNameSpace__ecere__com__Instance * __ecereNameSpace__ecere__com__eModule_LoadStatic(struct __ecereNameSpace__ecere__com__Instance * fromModule, const char * name, int importAccess, unsigned int (* Load)(struct __ecereNameSpace__ecere__com__Instance * module), unsigned int (* Unload)(struct __ecereNameSpace__ecere__com__Instance * module))
}
}
-void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, int value)
+void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, long long value)
{
if(_class && _class->type == 4)
{
struct __ecereNameSpace__ecere__com__EnumClassData * data = (struct __ecereNameSpace__ecere__com__EnumClassData *)_class->data;
-struct __ecereNameSpace__ecere__sys__NamedLink * item;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * item;
for(item = data->values.first; item; item = item->next)
if(!strcmp(item->name, string))
if(!item)
{
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&data->values, __extension__ ({
-struct __ecereNameSpace__ecere__sys__NamedLink * __ecereInstance1 = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink);
+struct __ecereNameSpace__ecere__sys__NamedLink64 * __ecereInstance1 = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink64);
-__ecereInstance1->data = (void *)value, __ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(string), __ecereInstance1;
+__ecereInstance1->data = value, __ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(string), __ecereInstance1;
}));
if(value > data->largest)
data->largest = value;
}
}
-int __ecereNameSpace__ecere__com__eEnum_AddValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string)
+long long __ecereNameSpace__ecere__com__eEnum_AddValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string)
{
if(_class && _class->type == 4)
{
struct __ecereNameSpace__ecere__com__EnumClassData * data = (struct __ecereNameSpace__ecere__com__EnumClassData *)_class->data;
-int value = data->largest + 1;
-struct __ecereNameSpace__ecere__sys__NamedLink * item;
+long long value = data->largest + 1;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * item;
for(item = data->values.first; item; item = item->next)
if(!strcmp(item->name, string))
if(!item)
{
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&data->values, __extension__ ({
-struct __ecereNameSpace__ecere__sys__NamedLink * __ecereInstance1 = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink);
+struct __ecereNameSpace__ecere__sys__NamedLink64 * __ecereInstance1 = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink64);
-__ecereInstance1->data = (void *)value, __ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(string), __ecereInstance1;
+__ecereInstance1->data = value, __ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(string), __ecereInstance1;
}));
if(value > data->largest)
data->largest = value;
{
if(((struct __ecereNameSpace__ecere__com__Application *)(((char *)app + structSize_Module)))->parsedCommand)
{
-(__ecereNameSpace__ecere__com__eSystem_Delete(((struct __ecereNameSpace__ecere__com__Application *)(((char *)app + structSize_Module)))->argv), ((struct __ecereNameSpace__ecere__com__Application * )(((char * )app + structSize_Module)))->argv = 0);
+(__ecereNameSpace__ecere__com__eSystem_Delete((void *)((struct __ecereNameSpace__ecere__com__Application *)(((char *)app + structSize_Module)))->argv), ((struct __ecereNameSpace__ecere__com__Application * )(((char * )app + structSize_Module)))->argv = 0);
(__ecereNameSpace__ecere__com__eSystem_Delete(((struct __ecereNameSpace__ecere__com__Application *)(((char *)app + structSize_Module)))->parsedCommand), ((struct __ecereNameSpace__ecere__com__Application * )(((char * )app + structSize_Module)))->parsedCommand = 0);
}
}
link = __ecereNameSpace__ecere__com__SearchNameSpace(&((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->systemNameSpace, name, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).defines);
if(link)
return link->data;
-link = __ecereNameSpace__ecere__com__SearchModule(module, name, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).defines, 0x1);
+link = __ecereNameSpace__ecere__com__SearchModule(module, name, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).defines, 1);
if(link)
return link->data;
}
link = __ecereNameSpace__ecere__com__SearchNameSpace(&((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->systemNameSpace, name, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).functions);
if(link)
return link->data;
-link = __ecereNameSpace__ecere__com__SearchModule(module, name, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).functions, 0x1);
+link = __ecereNameSpace__ecere__com__SearchModule(module, name, &(*((struct __ecereNameSpace__ecere__com__NameSpace *)0)).functions, 1);
if(link)
return link->data;
}
struct __ecereNameSpace__ecere__com__Instance * module = ((struct __ecereNameSpace__ecere__com__Instance *)(char *)instance)->_class ? ((struct __ecereNameSpace__ecere__com__Instance *)(char *)instance)->_class->module : (((void *)0));
struct __ecereNameSpace__ecere__com__Instance * application = module ? ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application : (((void *)0));
int flags = application ? ((struct __ecereNameSpace__ecere__com__Application *)(((char *)application + structSize_Module)))->isGUIApp : 0;
-unsigned int inCompiler = (flags & 8) ? 0x1 : 0x0;
-unsigned int force32Bits = (flags & 4) ? 0x1 : 0x0;
+unsigned int inCompiler = (flags & 8) ? 1 : 0;
+unsigned int force32Bits = (flags & 4) ? 1 : 0;
if(!force32Bits || !inCompiler)
{
_class->structSize += sizeof(struct __ecereNameSpace__ecere__sys__OldList);
__ecereNameSpace__ecere__com__FixDerivativesBase(_class, _class);
}
-_property->isWatchable = 0x1;
+_property->isWatchable = 1;
}
}
__ecereInstance1->_property = _property, __ecereInstance1->callback = callback, __ecereInstance1;
}));
-_property->selfWatchable = 0x1;
+_property->selfWatchable = 1;
}
}
static void __ecereNameSpace__ecere__com__LoadCOM(struct __ecereNameSpace__ecere__com__Instance * module)
{
-unsigned int force64Bits = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 2) ? 0x1 : 0x0;
-unsigned int force32Bits = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 4) ? 0x1 : 0x0;
-unsigned int inCompiler = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 8) ? 0x1 : 0x0;
+unsigned int force64Bits = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 2) ? 1 : 0;
+unsigned int force32Bits = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 4) ? 1 : 0;
+unsigned int inCompiler = (((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application + structSize_Module)))->isGUIApp & 8) ? 1 : 0;
int pointerSize = force64Bits ? 8 : force32Bits ? 4 : sizeof(void *);
struct __ecereNameSpace__ecere__com__Class * applicationClass;
struct __ecereNameSpace__ecere__com__Class * enumClass, * structClass, * boolClass;
struct __ecereNameSpace__ecere__com__Class * instanceClass = __ecereNameSpace__ecere__com__eSystem_RegisterClass(0, "ecere::com::Instance", (((void *)0)), 0, 0, (((void *)0)), (((void *)0)), module, 4, 1);
instanceClass->type = 0;
-instanceClass->isInstanceClass = 0x1;
-instanceClass->fixed = 0x1;
+instanceClass->isInstanceClass = 1;
+instanceClass->fixed = 1;
instanceClass->memberOffset = 0;
instanceClass->offset = 0;
instanceClass->memberID = -3;
}
__ecereNameSpace__ecere__com__InitializeDataTypes1(module);
enumClass = __ecereNameSpace__ecere__com__eSystem_RegisterClass(0, "enum", (((void *)0)), 0, force64Bits ? 40 : sizeof(struct __ecereNameSpace__ecere__com__EnumClassData), (((void *)0)), (((void *)0)), module, 4, 1);
-__ecereNameSpace__ecere__com__eClass_AddClassProperty(enumClass, "enumSize", "int", (((void *)0)), __ecereNameSpace__ecere__com__GetEnumSize)->constant = 0x1;
+__ecereNameSpace__ecere__com__eClass_AddClassProperty(enumClass, "enumSize", "int", (((void *)0)), __ecereNameSpace__ecere__com__GetEnumSize)->constant = 1;
enumClass->type = 1000;
(__ecereNameSpace__ecere__com__eSystem_Delete((void *)enumClass->dataTypeString), enumClass->dataTypeString = 0);
enumClass->dataTypeString = __ecereNameSpace__ecere__sys__CopyString("int");
__ecereNameSpace__ecere__com__eClass_AddDataMember(moduleClass, "origImportType", "ImportType", sizeof(int), 4, 1);
__ecereNameSpace__ecere__com__eClass_AddDataMember(moduleClass, "privateNameSpace", "NameSpace", force64Bits ? (32 + 8 + 8 + 4 * 32) : force32Bits ? (16 + 4 + 4 + 4 * 16) : sizeof(struct __ecereNameSpace__ecere__com__NameSpace), pointerSize, 1);
__ecereNameSpace__ecere__com__eClass_AddDataMember(moduleClass, "publicNameSpace", "NameSpace", force64Bits ? (32 + 8 + 8 + 4 * 32) : force32Bits ? (16 + 4 + 4 + 4 * 16) : sizeof(struct __ecereNameSpace__ecere__com__NameSpace), pointerSize, 1);
-moduleClass->fixed = 0x1;
+moduleClass->fixed = 1;
moduleClass->count++;
if(inCompiler && force32Bits)
moduleClass->structSize = 12 + 4 + 20 + 20 + 20 + 20 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + (16 + 4 + 4 + 4 * 16) + (16 + 4 + 4 + 4 * 16);
__ecereNameSpace__ecere__com__eClass_AddDataMember(applicationClass, "allModules", "OldList", force64Bits ? 32 : force32Bits ? 20 : sizeof(struct __ecereNameSpace__ecere__sys__OldList), pointerSize, 1);
__ecereNameSpace__ecere__com__eClass_AddDataMember(applicationClass, "parsedCommand", "char *", pointerSize, pointerSize, 1);
__ecereNameSpace__ecere__com__eClass_AddDataMember(applicationClass, "systemNameSpace", "NameSpace", force64Bits ? (32 + 8 + 8 + 4 * 32) : force32Bits ? (16 + 4 + 4 + 4 * 16) : sizeof(struct __ecereNameSpace__ecere__com__NameSpace), pointerSize, 1);
-applicationClass->fixed = 0x1;
+applicationClass->fixed = 1;
applicationClass->count++;
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("sin", "double sin(Angle number)", sin, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("sinh", "double sinh(Angle number)", sinh, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("qsort", "void qsort(void *, uintsize, uintsize, int (*)(void *, void *))", qsort, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("strtod", "double strtod(const char*, char**)", strtod, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("strtol", "int strtol(const char*, char**, int base)", strtol, module, 4);
+__ecereNameSpace__ecere__com__eSystem_RegisterFunction("strtoul", "unsigned long strtoul(const char * nptr, char ** endptr, int base)", strtoul, module, 4);
+__ecereNameSpace__ecere__com__eSystem_RegisterFunction("strtoll", "int64 strtoll(const char * nptr, char ** endptr, int base)", strtoll, module, 4);
+__ecereNameSpace__ecere__com__eSystem_RegisterFunction("strtoull", "uint64 strtoull(const char * nptr, char ** endptr, int base)", strtoull, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("system", "int system(const char*)", system, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("atoi", "int atoi(const char*)", atoi, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("atof", "double atof(const char*)", atof, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("islower", "int islower(int c)", islower, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("isupper", "int isupper(int c)", isupper, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("isprint", "int isprint(int c)", isprint, module, 4);
-__ecereNameSpace__ecere__com__eSystem_RegisterFunction("strtoul", "unsigned long strtoul(const char * nptr, char ** endptr, int base)", strtoul, module, 4);
-__ecereNameSpace__ecere__com__eSystem_RegisterFunction("strtoll", "int64 strtoll(const char * nptr, char ** endptr, int base)", strtoul, module, 4);
-__ecereNameSpace__ecere__com__eSystem_RegisterFunction("strtoull", "uint64 strtoull(const char * nptr, char ** endptr, int base)", strtoul, module, 4);
}
struct __ecereNameSpace__ecere__com__Instance * __ecereNameSpace__ecere__com____ecere_COM_Initialize(unsigned int guiApp, int argc, char * argv[])
if(ch & (unsigned char)0x10)
{
if(ch & (unsigned char)0x08)
-return 0x0;
+return 0;
numBytes++;
mask >>= 1;
}
}
}
else
-return 0x0;
+return 0;
}
for(i = 0; i < numBytes && (ch = source[c]); i++, c++)
{
if(i > 1)
{
if(!(ch & (unsigned char)0x80) || (ch & (unsigned char)0x40))
-return 0x0;
+return 0;
}
}
if(i < numBytes)
-return 0x0;
+return 0;
if(codePoint > 0x10FFFF || (codePoint >= 0xD800 && codePoint <= 0xDFFF) || (codePoint < 0x80 && numBytes > 1) || (codePoint < 0x800 && numBytes > 2) || (codePoint < 0x10000 && numBytes > 3))
-return 0x0;
+return 0;
}
}
-return 0x1;
+return 1;
}
int __ecereNameSpace__ecere__sys__ISO8859_1toUTF8(const char * source, char * dest, int max)
int len;
char * dest;
unsigned short u16;
-unsigned int invert = 0x0;
+unsigned int invert = 0;
for(len = 0; source[len]; len++)
;
if(!c && (u16 == (unsigned short)0xFFFE || u16 == (unsigned short)0xFEFF))
{
if(u16 == (unsigned short)0xFFFE)
-invert = 0x1;
+invert = 1;
continue;
}
if(invert)
if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + structSize_Instance)))->application && class)
__ecereClass___ecereNameSpace__ecere__com__EnumClassData = class;
__ecereNameSpace__ecere__com__eClass_AddDataMember(class, "values", "ecere::sys::OldList", structSize_OldList, arch_PointerSize, 1);
-__ecereNameSpace__ecere__com__eClass_AddDataMember(class, "largest", "int", 4, 4, 1);
+__ecereNameSpace__ecere__com__eClass_AddDataMember(class, "largest", "int64", 8, 8, 1);
if(class)
class->fixed = (unsigned int)1;
class = __ecereNameSpace__ecere__com__eSystem_RegisterClass(5, "ecere::com::Watcher", 0, sizeof(struct __ecereNameSpace__ecere__com__Watcher), 0, 0, 0, module, 2, 1);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::eModule_LoadStrict", "ecere::com::Module ecere::com::eModule_LoadStrict(ecere::com::Module fromModule, const char * name, ecere::com::AccessMode importAccess)", __ecereNameSpace__ecere__com__eModule_LoadStrict, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::eModule_LoadStatic", "ecere::com::Module ecere::com::eModule_LoadStatic(ecere::com::Module fromModule, const char * name, ecere::com::AccessMode importAccess, bool (* Load)(ecere::com::Module module), bool (* Unload)(ecere::com::Module module))", __ecereNameSpace__ecere__com__eModule_LoadStatic, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::eModule_Unload", "void ecere::com::eModule_Unload(ecere::com::Module fromModule, ecere::com::Module module)", __ecereNameSpace__ecere__com__eModule_Unload, module, 4);
-__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::eEnum_AddFixedValue", "void ecere::com::eEnum_AddFixedValue(ecere::com::Class _class, const char * string, int value)", __ecereNameSpace__ecere__com__eEnum_AddFixedValue, module, 4);
-__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::eEnum_AddValue", "int ecere::com::eEnum_AddValue(ecere::com::Class _class, const char * string)", __ecereNameSpace__ecere__com__eEnum_AddValue, module, 4);
+__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::eEnum_AddFixedValue", "void ecere::com::eEnum_AddFixedValue(ecere::com::Class _class, const char * string, int64 value)", __ecereNameSpace__ecere__com__eEnum_AddFixedValue, module, 4);
+__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::eEnum_AddValue", "int64 ecere::com::eEnum_AddValue(ecere::com::Class _class, const char * string)", __ecereNameSpace__ecere__com__eEnum_AddValue, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::eSystem_RegisterDefine", "ecere::com::DefinedExpression ecere::com::eSystem_RegisterDefine(const char * name, const char * value, ecere::com::Module module, ecere::com::AccessMode declMode)", __ecereNameSpace__ecere__com__eSystem_RegisterDefine, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::eSystem_RegisterFunction", "ecere::com::GlobalFunction ecere::com::eSystem_RegisterFunction(const char * name, const char * type, void * func, ecere::com::Module module, ecere::com::AccessMode declMode)", __ecereNameSpace__ecere__com__eSystem_RegisterFunction, module, 4);
__ecereNameSpace__ecere__com__eSystem_RegisterFunction("ecere::com::eSystem_FindDefine", "ecere::com::DefinedExpression ecere::com::eSystem_FindDefine(ecere::com::Module module, const char * name)", __ecereNameSpace__ecere__com__eSystem_FindDefine, module, 4);
}
}
-static unsigned int globalInstance = 0x0;
+static unsigned int globalInstance = 0;
static struct Context * globalContext;
d->__anon1.structDecl.exp = (((void *)0));
d->__anon1.structDecl.posExp = (((void *)0));
dataType = ProcessType(decl->__anon1.__anon1.specifiers, d);
-PrintType(dataType, dataTypeString, 0x0, 0x1);
+PrintType(dataType, dataTypeString, 0, 1);
{
struct __ecereNameSpace__ecere__com__BitMember * member = __ecereNameSpace__ecere__com__eClass_AddBitMember(regClass, declId->string, dataTypeString, 0, 0, def->memberAccess);
typeString[0] = '\0';
dataType = ProcessType(decl->__anon1.__anon1.specifiers, d);
-PrintType(dataType, typeString, 0x0, 0x1);
+PrintType(dataType, typeString, 0, 1);
if(member)
dataMember = __ecereNameSpace__ecere__com__eMember_AddDataMember(member, declId->string, typeString, 0, 0, def->memberAccess);
else
spec->__anon1.__anon2.id = (((void *)0));
decl->__anon1.__anon1.declarators = MkListOne(MkDeclaratorIdentifier(id));
dataType = ProcessType(decl->__anon1.__anon1.specifiers, (((void *)0)));
-PrintType(dataType, typeString, 0x0, 0x1);
+PrintType(dataType, typeString, 0, 1);
if(member)
dataMember = __ecereNameSpace__ecere__com__eMember_AddDataMember(member, id->string, typeString, 0, 0, def->memberAccess);
else
if(prop)
{
prop->IsSet = (void *)propertyDef->issetStmt;
-prop->compiled = 0x0;
+prop->compiled = 0;
}
(__ecereNameSpace__ecere__com__eSystem_Delete(dataTypeString), dataTypeString = 0);
}
propDefine = __extension__ ({
struct PropertyDefine * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_PropertyDefine);
-__ecereInstance1->isProperty = 1, __ecereInstance1->name = prop->conversion ? (((void *)0)) : __ecereNameSpace__ecere__sys__CopyString(prop->name), __ecereInstance1->type = __ecereNameSpace__ecere__sys__CopyString(prop->dataTypeString), __ecereInstance1->isVirtual = 0x0, __ecereInstance1->memberAccess = def->memberAccess, __ecereInstance1->hasSet = propertyDef->setStmt ? 0x1 : 0x0, __ecereInstance1->hasGet = propertyDef->getStmt ? 0x1 : 0x0, __ecereInstance1->isWatchable = propertyDef->__anon1.isWatchable, __ecereInstance1;
+__ecereInstance1->isProperty = 1, __ecereInstance1->name = prop->conversion ? (((void *)0)) : __ecereNameSpace__ecere__sys__CopyString(prop->name), __ecereInstance1->type = __ecereNameSpace__ecere__sys__CopyString(prop->dataTypeString), __ecereInstance1->isVirtual = 0, __ecereInstance1->memberAccess = def->memberAccess, __ecereInstance1->hasSet = propertyDef->setStmt ? 1 : 0, __ecereInstance1->hasGet = propertyDef->getStmt ? 1 : 0, __ecereInstance1->isWatchable = propertyDef->__anon1.isWatchable, __ecereInstance1;
});
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&classDefine->propertiesAndMembers, propDefine);
}
propDefine = __extension__ ({
struct PropertyDefine * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_PropertyDefine);
-__ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(prop->name), __ecereInstance1->type = __ecereNameSpace__ecere__sys__CopyString(prop->dataTypeString), __ecereInstance1->hasSet = propertyDef->setStmt ? 0x1 : 0x0, __ecereInstance1->hasGet = propertyDef->getStmt ? 0x1 : 0x0, __ecereInstance1;
+__ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(prop->name), __ecereInstance1->type = __ecereNameSpace__ecere__sys__CopyString(prop->dataTypeString), __ecereInstance1->hasSet = propertyDef->setStmt ? 1 : 0, __ecereInstance1->hasGet = propertyDef->getStmt ? 1 : 0, __ecereInstance1;
});
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&classDefine->classProperties, propDefine);
}
else if(def->type == 7)
{
if(classDefine)
-classDefine->fixed = 0x1;
+classDefine->fixed = 1;
}
else if(def->type == 6)
{
if(classDefine)
-classDefine->noExpansion = 0x1;
+classDefine->noExpansion = 1;
}
else if(def->type == 13)
{
struct ClassDef * def;
struct ClassDefine * classDefine;
char baseName[1024];
-unsigned int unitType = 0x0;
-unsigned int wouldBeEnum = 0x0;
+unsigned int unitType = 0;
+unsigned int wouldBeEnum = 0;
int inheritanceAccess = 1;
baseName[0] = '\0';
{
struct Type * baseType = ProcessType(baseSpecs, (((void *)0)));
-PrintType(baseType, baseName, 0x0, 0x1);
+PrintType(baseType, baseName, 0, 1);
if(baseType->kind == 8)
{
if(baseType->__anon1._class->__anon1.registered && classType == 0)
classType = 5;
else if(baseType->__anon1._class->__anon1.registered->type == 4)
{
-wouldBeEnum = 0x1;
+wouldBeEnum = 1;
}
}
}
baseName[0] = '\0';
}
else
-unitType = 0x1;
+unitType = 1;
FreeType(baseType);
if(((struct Specifier *)baseSpecs->first)->type == 0 && ((struct Specifier *)baseSpecs->first)->__anon1.specifier == PRIVATE)
inheritanceAccess = 2;
extern void SetParsingType(unsigned int b);
-extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink;
+extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
-struct __ecereNameSpace__ecere__sys__NamedLink
+struct __ecereNameSpace__ecere__sys__NamedLink64
{
-struct __ecereNameSpace__ecere__sys__NamedLink * prev;
-struct __ecereNameSpace__ecere__sys__NamedLink * next;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * prev;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * next;
char * name;
-void * data;
+long long data;
} __attribute__ ((gcc_struct));
extern int strcmp(const char * , const char * );
extern void FreeExpContents(struct Expression * exp);
-extern char * PrintUInt(uint64 result);
+extern char * PrintInt64(long long result);
extern struct Type * ProcessTypeString(const char * string, unsigned int staticMethod);
-extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, int value);
+extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, long long value);
extern void PrintExpression(struct Expression * exp, char * string);
extern struct __ecereNameSpace__ecere__com__Instance * __thisModule;
-extern int __ecereNameSpace__ecere__com__eEnum_AddValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string);
+extern long long __ecereNameSpace__ecere__com__eEnum_AddValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string);
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Application;
{
if(e->exp)
{
-struct Type * destType = (destType = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type), destType->kind = 3, destType->refCount = 1, destType);
+struct Type * destType = (destType = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type), destType->kind = 4, destType->refCount = 1, destType);
e->exp->destType = destType;
-SetParsingType(0x1);
+SetParsingType(1);
ProcessExpressionType(e->exp);
-SetParsingType(0x0);
+SetParsingType(0);
if(!e->exp->expType)
{
destType->kind = 8;
{
if(e->exp->type == 0 && e->exp->expType && e->exp->__anon1.__anon1.identifier && e->exp->__anon1.__anon1.identifier->string && e->exp->expType->kind == 15)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * l;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * l;
char * string = e->exp->__anon1.__anon1.identifier->string;
for(l = e->exp->expType->__anon1.__anon1.members.first; l; l = l->next)
{
FreeExpContents(e->exp);
e->exp->type = 2;
-e->exp->__anon1.__anon1.constant = PrintUInt((unsigned int)l->data);
+e->exp->__anon1.__anon1.constant = PrintInt64(l->data);
FreeType(e->exp->expType);
-e->exp->expType = ProcessTypeString("uint", 0x0);
+e->exp->expType = ProcessTypeString("int64", 0);
}
break;
}
if(e->exp->isConstant && e->exp->type == 2)
{
struct Operand op = GetOperand(e->exp);
-int value;
+long long value;
switch(op.kind)
{
case 1:
-value = op.type->isSigned ? (int)op.__anon1.c : (int)op.__anon1.uc;
+value = op.type->isSigned ? (long long)op.__anon1.c : (long long)op.__anon1.uc;
break;
case 2:
-value = op.type->isSigned ? (int)op.__anon1.s : (int)op.__anon1.us;
+value = op.type->isSigned ? (long long)op.__anon1.s : (long long)op.__anon1.us;
+break;
+case 4:
+value = op.type->isSigned ? op.__anon1.i64 : (long long)op.__anon1.ui64;
break;
+case 3:
default:
-value = op.__anon1.i;
+value = op.type->isSigned ? (long long)op.__anon1.i : (int)op.__anon1.ui;
}
__ecereNameSpace__ecere__com__eEnum_AddFixedValue(regClass, e->id->string, value);
}
classType = 6;
else
classType = 1;
-ProcessClass(classType, specifier->__anon1.__anon2.definitions, symbol, specifier->__anon1.__anon2.baseSpecs, specifier->__anon1.__anon2.list, 0x0, external->__anon1.declaration->declMode);
+ProcessClass(classType, specifier->__anon1.__anon2.definitions, symbol, specifier->__anon1.__anon2.baseSpecs, specifier->__anon1.__anon2.list, 0, external->__anon1.declaration->declMode);
}
}
}
char typeString[1024];
typeString[0] = '\0';
-PrintType(symbol->type, typeString, 0x0, 0x1);
+PrintType(symbol->type, typeString, 0, 1);
dataDefine = __extension__ ({
struct DataDefine * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_DataDefine);
char typeString[1024];
typeString[0] = '\0';
-PrintType(symbol->type, typeString, 0x0, 0x1);
+PrintType(symbol->type, typeString, 0, 1);
dataDefine = __extension__ ({
struct DataDefine * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_DataDefine);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&precompDefines, dataDefine);
}
}
-globalInstance = 0x1;
+globalInstance = 1;
}
else if(declaration->type == 3)
{
char typeString[1024];
typeString[0] = '\0';
-PrintType(function->declarator->symbol->type, typeString, 0x1, 0x1);
+PrintType(function->declarator->symbol->type, typeString, 1, 1);
functionDefine = __extension__ ({
struct FunctionDefine * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_FunctionDefine);
struct __ecereNameSpace__ecere__com__EnumClassData
{
struct __ecereNameSpace__ecere__sys__OldList values;
-int largest;
+long long largest;
} __attribute__ ((gcc_struct));
+extern int __ecereNameSpace__ecere__com__GetRuntimePlatform(void);
+
extern void OutputExpression(struct Expression * exp, struct __ecereNameSpace__ecere__com__Instance * f);
int __ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts;
OutputDataMembers(classDefine, _class, f);
if(_class->type == 4)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * value;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * value;
struct __ecereNameSpace__ecere__com__Class * enumClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "enum");
struct __ecereNameSpace__ecere__com__EnumClassData * e = (_class ? ((void *)(((char *)_class->data) + enumClass->offsetClass)) : (((void *)0)));
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " [Enum Values]\n");
for(value = e->values.first; value; value = value->next)
{
-__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " %s = %d\n", value->name, value->data);
+__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " %s = ", value->name);
+if(!strcmp(_class->dataTypeString, "uint64") && *(uint64 *)&value->data > (((long long)0x7fffffffffffffffLL)))
+__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "0x%I64X" : "0x%llX"), *(uint64 *)&value->data);
+else
+__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "%I64d" : "%lld"), value->data);
+__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, "\n");
}
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " .\n");
}
static struct __ecereNameSpace__ecere__com__Class * __ecereClass_PrecompApp;
-extern int __ecereNameSpace__ecere__com__GetRuntimePlatform(void);
-
extern int GetHostBits(void);
extern size_t strlen(const char * );
void __ecereMethod_PrecompApp_Main(struct __ecereNameSpace__ecere__com__Instance * this)
{
int c;
-unsigned int valid = 0x1;
+unsigned int valid = 1;
char defaultSymFile[797];
char * cppCommand = (((void *)0));
char * cppOptions = (((void *)0));
if(++c < ((struct __ecereNameSpace__ecere__com__Application *)(((char *)this + structSize_Module)))->argc)
targetPlatform = __ecereProp___ecereNameSpace__ecere__com__Platform_Set_char__PTR_(((struct __ecereNameSpace__ecere__com__Application *)(((char *)this + structSize_Module)))->argv[c]);
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "cpp"))
{
if(++c < ((struct __ecereNameSpace__ecere__com__Application *)(((char *)this + structSize_Module)))->argc)
cppCommand = __ecereNameSpace__ecere__sys__CopyString(((struct __ecereNameSpace__ecere__com__Application *)(((char *)this + structSize_Module)))->argv[c]);
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "o"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "c"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "isystem") || !strcmp(arg + 1, "isysroot"))
{
cppOptionsLen = buf - cppOptions;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "fno-diagnostics-show-caret"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "defaultns"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg + 1, "strictns"))
{
-SetStrictNameSpaces(0x1);
+SetStrictNameSpaces(1);
}
else if(!strcmp(arg + 1, "module"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
}
else
-valid = 0x0;
+valid = 0;
}
if(valid)
{
if(!cppCommand)
cppCommand = __ecereNameSpace__ecere__sys__CopyString("gcc");
if(!GetSourceFile())
-valid = 0x0;
+valid = 0;
else if(!GetOutputFile())
{
strcpy(defaultSymFile, GetSymbolsDir());
SetTopContext(globalContext);
SetDefines(&defines);
SetImports(&imports);
-SetInPreCompiler(0x1);
+SetInPreCompiler(1);
SetPrecompDefines(&precompDefines);
SetTargetPlatform(targetPlatform);
SetTargetBits(targetBits);
-SetEchoOn(0x0);
-privateModule = (struct __ecereNameSpace__ecere__com__Instance *)__ecereNameSpace__ecere__com____ecere_COM_Initialize((unsigned int)(0x1 | (targetBits == sizeof(uintptr_t) * 8 ? (unsigned int)0 : targetBits == 64 ? 2 : targetBits == 32 ? 4 : (unsigned int)0) | 8), 1, (((void *)0)));
+SetEchoOn(0);
+privateModule = (struct __ecereNameSpace__ecere__com__Instance *)__ecereNameSpace__ecere__com____ecere_COM_Initialize((unsigned int)(1 | (targetBits == sizeof(uintptr_t) * 8 ? (unsigned int)0 : targetBits == 64 ? 2 : targetBits == 32 ? 4 : (unsigned int)0) | 8), 1, (((void *)0)));
SetPrivateModule(privateModule);
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint"), __ecereInstance1->type = ProcessTypeString("unsigned int", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint"), __ecereInstance1->type = ProcessTypeString("unsigned int", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint64"), __ecereInstance1->type = ProcessTypeString("unsigned int64", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint64"), __ecereInstance1->type = ProcessTypeString("unsigned int64", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint32"), __ecereInstance1->type = ProcessTypeString("unsigned int", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint32"), __ecereInstance1->type = ProcessTypeString("unsigned int", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint16"), __ecereInstance1->type = ProcessTypeString("unsigned short", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uint16"), __ecereInstance1->type = ProcessTypeString("unsigned short", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("byte"), __ecereInstance1->type = ProcessTypeString("unsigned char", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("byte"), __ecereInstance1->type = ProcessTypeString("unsigned char", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("intptr_t"), __ecereInstance1->type = ProcessTypeString("intptr", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("intptr_t"), __ecereInstance1->type = ProcessTypeString("intptr", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uintptr_t"), __ecereInstance1->type = ProcessTypeString("uintptr", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("uintptr_t"), __ecereInstance1->type = ProcessTypeString("uintptr", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("ssize_t"), __ecereInstance1->type = ProcessTypeString("intsize", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("ssize_t"), __ecereInstance1->type = ProcessTypeString("intsize", 0), __ecereInstance1;
}));
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->types, (struct __ecereNameSpace__ecere__sys__BTNode *)__extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("size_t"), __ecereInstance1->type = ProcessTypeString("uintsize", 0x0), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString("size_t"), __ecereInstance1->type = ProcessTypeString("uintsize", 0), __ecereInstance1;
}));
{
const char * outputFilePath = GetOutputFile();
}
snprintf(command, sizeof (command), "%s%s -x c -E \"%s\"", cppCommand, cppOptions ? cppOptions : "", GetSourceFile());
command[sizeof (command) - 1] = (char)0;
-if((cppOutput = __ecereNameSpace__ecere__sys__DualPipeOpen((((unsigned int)(0x1))), command)))
+if((cppOutput = __ecereNameSpace__ecere__sys__DualPipeOpen((((unsigned int)(1))), command)))
{
int exitCode;
struct __ecereNameSpace__ecere__sys__OldList * ast;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Seek])(fileInput, 0, 0);
ParseEc();
SetCurrentNameSpace((((void *)0)));
-SetYydebug(0x0);
+SetYydebug(0);
(__ecereNameSpace__ecere__com__eInstance_DecRef(fileInput), fileInput = 0);
SetFileInput((((void *)0)));
ast = GetAST();
int __ecereVMethodID___ecereNameSpace__ecere__sys__File_Write;
-struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink;
+struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__OldList;
method = __ecereNameSpace__ecere__com__eClass_FindMethod(__ecereClass___ecereNameSpace__ecere__sys__File, "Write", module);
if(method)
__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write = method->vid;
-__ecereClass___ecereNameSpace__ecere__sys__NamedLink = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::NamedLink");
+__ecereClass___ecereNameSpace__ecere__sys__NamedLink64 = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::NamedLink64");
__ecereClass___ecereNameSpace__ecere__sys__OldList = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::OldList");
__ecereClass___ecereNameSpace__ecere__sys__TempFile = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::TempFile");
__ecereNameSpace__ecere__LoadTranslatedStrings((((void *)0)), "ecp");
{
if(!strcmp(line, "[Instantiated]"))
{
-_class->itself = 0x1;
+_class->itself = 1;
}
else if(!strcmp(line, "[Remote]"))
{
break;
if(line[0] != '[')
{
-if(!(method = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&_class->methods, line, 0x0)))
+if(!(method = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&_class->methods, line, 0)))
{
method = __extension__ ({
struct MethodImport * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_MethodImport);
}
}
else if(!strcmp(line, "[Virtual]"))
-method->isVirtual = 0x1;
+method->isVirtual = 1;
}
}
else if(!strcmp(line, "[Imported Properties]"))
break;
if(line[0] != '[')
{
-if(!(prop = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&_class->properties, line, 0x0)))
+if(!(prop = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&_class->properties, line, 0)))
{
prop = __extension__ ({
struct PropertyImport * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_PropertyImport);
}
}
else if(!strcmp(line, "[Set]"))
-prop->hasSet = 0x1;
+prop->hasSet = 1;
else if(!strcmp(line, "[Get]"))
-prop->hasGet = 0x1;
+prop->hasGet = 1;
else if(!strcmp(line, "[Virtual]"))
-prop->isVirtual = 0x1;
+prop->isVirtual = 1;
}
}
}
else
{
-if(!(_class = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&module->classes, line, 0x0)))
+if(!(_class = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&module->classes, line, 0)))
{
_class = __extension__ ({
struct ClassImport * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_ClassImport);
}
else
{
-if(!(function = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&module->functions, line, 0x0)))
+if(!(function = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&module->functions, line, 0)))
{
function = __extension__ ({
struct FunctionImport * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_FunctionImport);
}
else
{
-if(!(module = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&_imports, line, 0x0)))
+if(!(module = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&_imports, line, 0)))
{
if(!strcmp(line, "ecereCOM"))
{
-module = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&_imports, "ecere", 0x0);
+module = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&_imports, "ecere", 0);
}
else if(!strcmp(line, "ecere"))
{
-module = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&_imports, "ecereCOM", 0x0);
+module = __ecereMethod___ecereNameSpace__ecere__sys__OldList_FindName(&_imports, "ecereCOM", 0);
if(module)
{
(__ecereNameSpace__ecere__com__eSystem_Delete(module->name), module->name = 0);
{
struct ModuleImport * module;
struct ModuleInfo * defModule;
-unsigned int anyMethod = 0x0, anyProp = 0x0, anyFunction = 0x0;
+unsigned int anyMethod = 0, anyProp = 0, anyFunction = 0;
struct ImportedModule * importedModule;
__ecereNameSpace__ecere__sys__GetLastDirectory(fileName, mainModuleName);
char className[1024] = "";
struct __ecereNameSpace__ecere__com__Class * regClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, _class->name);
-FullClassNameCat(className, _class->name, 0x1);
+FullClassNameCat(className, _class->name, 1);
if(_class->itself)
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, "Class __ecereClass_%s;\n", className);
{
{
struct Context * context = SetupTemplatesContext(regClass);
-meth->dataType = ProcessTypeString(meth->dataTypeString, 0x0);
+meth->dataType = ProcessTypeString(meth->dataTypeString, 0);
FinishTemplatesContext(context);
}
if(method->isVirtual)
{
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, "int (*__ecereMethod_%s_%s)();\n", className, method->name);
}
-anyMethod = 0x1;
+anyMethod = 1;
}
}
for(prop = _class->properties.first; prop; prop = prop->next)
char propName[1024];
propName[0] = (char)0;
-FullClassNameCat(propName, prop->name, 0x1);
+FullClassNameCat(propName, prop->name, 1);
if((!strcmp(_class->name, "float") || !strcmp(_class->name, "double") || module->name) && module->importType != 1)
{
if(prop->hasSet)
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, "void * __ecereProp_%s_Get_%s;\n", className, propName);
}
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, "Property __ecereProp_%s_%s;\n", className, propName);
-anyProp = 0x1;
+anyProp = 1;
}
}
}
struct __ecereNameSpace__ecere__com__GlobalFunction * func = __ecereNameSpace__ecere__com__eSystem_FindFunction(privateModule, function->name);
if(func && !func->dataType)
-func->dataType = ProcessTypeString(func->dataTypeString, 0x0);
+func->dataType = ProcessTypeString(func->dataTypeString, 0);
if(module->name && module->importType != 1 && (!func || !func->dataType || !func->dataType->dllExport))
{
char functionName[1024];
functionName[0] = (char)0;
-FullClassNameCat(functionName, function->name, 0x0);
+FullClassNameCat(functionName, function->name, 0);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, "void * __ecereFunction_%s;\n", functionName);
-anyFunction = 0x1;
+anyFunction = 1;
}
}
}
char classID[1024];
char className[1024] = "";
-FullClassNameCat(className, _class->name, 0x1);
+FullClassNameCat(className, _class->name, 1);
if(_class->itself)
sprintf(classID, "__ecereClass_%s", className);
else
char propName[1024];
propName[0] = (char)0;
-FullClassNameCat(propName, prop->name, 0x1);
+FullClassNameCat(propName, prop->name, 1);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " __ecereProp_%s_%s = _property = eClass_FindProperty(%s, \"%s\", module);\n", className, propName, classID, prop->name);
if((!strcmp(_class->name, "float") || !strcmp(_class->name, "double") || module->name) && module->importType != 1)
{
char functionName[1024];
functionName[0] = (char)0;
-FullClassNameCat(functionName, function->name, 0x0);
+FullClassNameCat(functionName, function->name, 0);
if(isDynamicLibrary && !isStaticLibrary)
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " function = eSystem_FindFunction(__currentModule, \"%s\");\n", function->name);
else
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, " {\n");
}
{
-unsigned int destroyI18n = 0x0;
+unsigned int destroyI18n = 0;
if(modules.count)
{
if(!strcmp(defModule->name, "i18n"))
{
-destroyI18n = 0x1;
+destroyI18n = 1;
continue;
}
strcpy(moduleName, defModule->name);
{
struct Type * param;
-method->dataType = ProcessTypeString(method->dataTypeString, 0x0);
+method->dataType = ProcessTypeString(method->dataTypeString, 0);
if(method->dataType && method->dataType->name)
{
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " case %d:\n", vid - _class->base->vTblSize);
classSym = method->dataType->__anon1.__anon2.returnType->__anon1._class;
else
{
-PrintTypeNoConst(method->dataType->__anon1.__anon2.returnType, type, 0x0, 0x1);
+PrintTypeNoConst(method->dataType->__anon1.__anon2.returnType, type, 0, 1);
classSym = FindClass(type);
type[0] = (char)0;
}
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
-PrintType(method->dataType->__anon1.__anon2.returnType, type, 0x1, 0x1);
+PrintType(method->dataType->__anon1.__anon2.returnType, type, 1, 1);
decl = SpecDeclFromString(type, specs, MkDeclaratorIdentifier(MkIdentifier("__ecereResult")));
resultType = MkTypeName(specs, decl);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " ");
-OutputTypeName(resultType, f, 0x0);
+OutputTypeName(resultType, f, 0);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, ";\n");
}
for(param = method->dataType->__anon1.__anon2.params.first; param; param = param->next)
classSym = param->__anon1._class;
else
{
-PrintTypeNoConst(param, type, 0x0, 0x1);
+PrintTypeNoConst(param, type, 0, 1);
classSym = FindClass(type);
type[0] = (char)0;
}
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
-PrintType(param, type, 0x1, 0x1);
+PrintType(param, type, 1, 1);
decl = SpecDeclFromString(type, specs, MkDeclaratorIdentifier(MkIdentifier(param->name)));
paramTypeName = MkTypeName(specs, decl);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " ");
-OutputTypeName(paramTypeName, f, 0x0);
+OutputTypeName(paramTypeName, f, 0);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, ";\n");
}
}
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " }\n");
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, "\n");
}
-doVirtual = 0x1;
+doVirtual = 1;
id = 0;
vid = _class->base->vTblSize;
next = (struct __ecereNameSpace__ecere__com__Method *)__ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_first(&_class->methods);
if(!next && doVirtual)
{
if(vid == _class->vTblSize)
-doVirtual = 0x0;
+doVirtual = 0;
else
vid++;
id = 0;
struct Type * param;
if(!method->dataType)
-method->dataType = ProcessTypeString(method->dataTypeString, 0x0);
+method->dataType = ProcessTypeString(method->dataTypeString, 0);
if(method->dataType->name)
{
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " ");
char name[1024];
strcpy(name, "__ecereVMethodID_");
-FullClassNameCat(name, method->_class->fullName, 0x1);
+FullClassNameCat(name, method->_class->fullName, 1);
strcat(name, "_");
strcat(name, method->name);
DeclareMethod(method, name);
classSym = method->dataType->__anon1.__anon2.returnType->__anon1._class;
else
{
-PrintTypeNoConst(method->dataType->__anon1.__anon2.returnType, type, 0x0, 0x1);
+PrintTypeNoConst(method->dataType->__anon1.__anon2.returnType, type, 0, 1);
classSym = FindClass(type);
type[0] = (char)0;
}
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
-PrintType(method->dataType->__anon1.__anon2.returnType, type, 0x1, 0x1);
+PrintType(method->dataType->__anon1.__anon2.returnType, type, 1, 1);
decl = SpecDeclFromString(type, specs, MkDeclaratorIdentifier(MkIdentifier("__ecereResult")));
resultType = MkTypeName(specs, decl);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " ");
-OutputTypeName(resultType, f, 0x0);
+OutputTypeName(resultType, f, 0);
if(method->dataType->__anon1.__anon2.returnType->kind == 9)
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " = { 0 }");
else if(method->dataType->__anon1.__anon2.returnType->kind == 8 && method->dataType->__anon1.__anon2.returnType->__anon1._class->__anon1.registered && method->dataType->__anon1.__anon2.returnType->__anon1._class->__anon1.registered->type == 1)
classSym = param->__anon1._class;
else
{
-PrintTypeNoConst(param, type, 0x0, 0x1);
+PrintTypeNoConst(param, type, 0, 1);
classSym = FindClass(type);
type[0] = (char)0;
}
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
if(param->kind == 8 && !strcmp(param->__anon1._class->string, "String"))
{
if(!next && doVirtual)
{
if(vid == _class->vTblSize)
-doVirtual = 0x0;
+doVirtual = 0;
else
vid++;
id = 0;
static void BindDCOMServer()
{
-unsigned int mutexDeclared = 0x0;
+unsigned int mutexDeclared = 0;
struct __ecereNameSpace__ecere__com__Class * _class;
for(_class = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)privateModule + 24)))->classes.first; _class; _class = _class->next)
{
struct Type * param;
-method->dataType = ProcessTypeString(method->dataTypeString, 0x0);
+method->dataType = ProcessTypeString(method->dataTypeString, 0);
if(method->dataType && method->dataType->name)
{
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " case %d:\n", id++);
classSym = method->dataType->__anon1.__anon2.returnType->__anon1._class;
else
{
-PrintTypeNoConst(method->dataType->__anon1.__anon2.returnType, type, 0x0, 0x1);
+PrintTypeNoConst(method->dataType->__anon1.__anon2.returnType, type, 0, 1);
classSym = FindClass(type);
type[0] = (char)0;
}
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
-PrintType(method->dataType->__anon1.__anon2.returnType, type, 0x1, 0x1);
+PrintType(method->dataType->__anon1.__anon2.returnType, type, 1, 1);
decl = SpecDeclFromString(type, specs, MkDeclaratorIdentifier(MkIdentifier("__ecereResult")));
resultType = MkTypeName(specs, decl);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " ");
-OutputTypeName(resultType, f, 0x0);
+OutputTypeName(resultType, f, 0);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, ";\n");
}
for(param = method->dataType->__anon1.__anon2.params.first; param; param = param->next)
classSym = param->__anon1._class;
else
{
-PrintTypeNoConst(param, type, 0x0, 0x1);
+PrintTypeNoConst(param, type, 0, 1);
classSym = FindClass(type);
type[0] = (char)0;
}
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
-PrintType(param, type, 0x1, 0x1);
+PrintType(param, type, 1, 1);
decl = SpecDeclFromString(type, specs, MkDeclaratorIdentifier(MkIdentifier(param->name)));
paramTypeName = MkTypeName(specs, decl);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " ");
-OutputTypeName(paramTypeName, f, 0x0);
+OutputTypeName(paramTypeName, f, 0);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, ";\n");
}
}
DeclareClass(FindClass("ecere::sys::Mutex"), "__ecereClass___ecereNameSpace__ecere__sys__Mutex");
DeclareMethod(__ecereNameSpace__ecere__com__eClass_FindMethod(__ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "ecere::sys::Mutex"), "Wait", privateModule), "__ecereMethod___ecereNameSpace__ecere__sys__Mutex_Wait");
DeclareMethod(__ecereNameSpace__ecere__com__eClass_FindMethod(__ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "ecere::sys::Mutex"), "Release", privateModule), "__ecereMethod___ecereNameSpace__ecere__sys__Mutex_Release");
-mutexDeclared = 0x1;
+mutexDeclared = 1;
}
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, "\n");
if(!method->dataType)
-method->dataType = ProcessTypeString(method->dataTypeString, 0x0);
+method->dataType = ProcessTypeString(method->dataTypeString, 0);
if(method->dataType->name)
{
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " virtual %s\n", method->dataTypeString);
classSym = method->dataType->__anon1.__anon2.returnType->__anon1._class;
else
{
-PrintTypeNoConst(method->dataType->__anon1.__anon2.returnType, type, 0x0, 0x1);
+PrintTypeNoConst(method->dataType->__anon1.__anon2.returnType, type, 0, 1);
classSym = FindClass(type);
type[0] = (char)0;
}
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
-PrintType(method->dataType->__anon1.__anon2.returnType, type, 0x1, 0x1);
+PrintType(method->dataType->__anon1.__anon2.returnType, type, 1, 1);
decl = SpecDeclFromString(type, specs, MkDeclaratorIdentifier(MkIdentifier("__ecereResult")));
resultType = MkTypeName(specs, decl);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " ");
-OutputTypeName(resultType, f, 0x0);
+OutputTypeName(resultType, f, 0);
if(method->dataType->__anon1.__anon2.returnType->kind == 9)
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, " = { 0 }");
else if(method->dataType->__anon1.__anon2.returnType->kind == 8 && method->dataType->__anon1.__anon2.returnType->__anon1._class->__anon1.registered && method->dataType->__anon1.__anon2.returnType->__anon1._class->__anon1.registered->type == 1)
classSym = param->__anon1._class;
else
{
-PrintTypeNoConst(param, type, 0x0, 0x1);
+PrintTypeNoConst(param, type, 0, 1);
classSym = FindClass(type);
type[0] = (char)0;
}
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
if(param->kind == 8 && !strcmp(param->__anon1._class->string, "String"))
{
{
if(param->kind == 8 && ((param->__anon1._class && param->__anon1._class->__anon1.registered && param->__anon1._class->__anon1.registered->type == 1) || !strcmp(param->__anon1._class->string, "String")) && !param->constant)
{
-hasReturnValue = 0x1;
+hasReturnValue = 1;
break;
}
}
void __ecereMethod_SymbolgenApp_Main(struct __ecereNameSpace__ecere__com__Instance * this)
{
int c;
-unsigned int valid = 0x1;
+unsigned int valid = 1;
const char * output = (((void *)0));
-outputPot = 0x0;
-disabledPooling = 0x0;
+outputPot = 0;
+disabledPooling = 0;
targetPlatform = __ecereNameSpace__ecere__com__GetRuntimePlatform();
targetBits = GetHostBits();
for(c = 1; c < ((struct __ecereNameSpace__ecere__com__Application *)(((char *)this + structSize_Module)))->argc; c++)
c++;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg, "-name"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg, "-t"))
{
if(++c < ((struct __ecereNameSpace__ecere__com__Application *)(((char *)this + structSize_Module)))->argc)
targetPlatform = __ecereProp___ecereNameSpace__ecere__com__Platform_Set_char__PTR_(((struct __ecereNameSpace__ecere__com__Application *)(((char *)this + structSize_Module)))->argv[c]);
else
-valid = 0x0;
+valid = 0;
}
else if(!strcmp(arg, "-outputpot"))
-outputPot = 0x1;
+outputPot = 1;
else if(!strcmp(arg, "-disabled-pooling"))
-disabledPooling = 0x1;
+disabledPooling = 1;
else if(!strcmp(arg, "-console"))
-isConsole = 0x1;
+isConsole = 1;
else if(!strcmp(arg, "-dynamiclib"))
-isDynamicLibrary = 0x1;
+isDynamicLibrary = 1;
else if(!strcmp(arg, "-staticlib"))
{
-isDynamicLibrary = 0x1;
-isStaticLibrary = 0x1;
+isDynamicLibrary = 1;
+isStaticLibrary = 1;
}
else if(!strcmp(arg, "-symbols"))
{
c++;
}
else
-valid = 0x0;
+valid = 0;
}
}
}
if(!output)
-valid = 0x0;
+valid = 0;
if(!valid)
{
printf(__ecereNameSpace__ecere__GetTranslatedString("ecs", "Syntax:\n ecs [-t <target platform>] <input>[, <input>]* -o <output>\n", (((void *)0))));
SetCurrentContext(theGlobalContext);
SetTargetPlatform(targetPlatform);
SetTargetBits(targetBits);
-SetInSymbolGen(0x1);
-privateModule = (struct __ecereNameSpace__ecere__com__Instance *)__ecereNameSpace__ecere__com____ecere_COM_Initialize((unsigned int)(0x1 | (targetBits == sizeof(uintptr_t) * 8 ? (unsigned int)0 : targetBits == 64 ? 2 : targetBits == 32 ? 4 : (unsigned int)0) | 8), 1, (((void *)0)));
+SetInSymbolGen(1);
+privateModule = (struct __ecereNameSpace__ecere__com__Instance *)__ecereNameSpace__ecere__com____ecere_COM_Initialize((unsigned int)(1 | (targetBits == sizeof(uintptr_t) * 8 ? (unsigned int)0 : targetBits == 64 ? 2 : targetBits == 32 ? 4 : (unsigned int)0) | 8), 1, (((void *)0)));
SetPrivateModule(privateModule);
mainModule = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_ModuleImport);
SetMainModule(mainModule);
if(f)
{
while(!count && __ecereMethod___ecereNameSpace__ecere__sys__File_GetLine(f, line, sizeof (line)))
-count = __ecereNameSpace__ecere__sys__Tokenize(line, sizeof (tokens) / sizeof (tokens[0]), tokens, 0x2);
+count = __ecereNameSpace__ecere__sys__Tokenize(line, sizeof (tokens) / sizeof (tokens[0]), tokens, 2);
if(!count)
(__ecereNameSpace__ecere__com__eInstance_DecRef(f), f = 0);
}
if(f)
{
while(!count && __ecereMethod___ecereNameSpace__ecere__sys__File_GetLine(f, line, sizeof (line)))
-count = __ecereNameSpace__ecere__sys__Tokenize(line, sizeof (tokens) / sizeof (tokens[0]), tokens, 0x2);
+count = __ecereNameSpace__ecere__sys__Tokenize(line, sizeof (tokens) / sizeof (tokens[0]), tokens, 2);
if(!count)
(__ecereNameSpace__ecere__com__eInstance_DecRef(f), f = 0);
}
__ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(module->name), __ecereInstance1->type = 0, __ecereInstance1->importType = 0, __ecereInstance1;
});
__ecereMethod___ecereNameSpace__ecere__sys__OldList_AddName(&_defines, importedModule);
-module->globalInstance = LoadSymbols(file, 0, 0x0);
+module->globalInstance = LoadSymbols(file, 0, 0);
CheckDataRedefinitions();
}
{
msgid, msgctxt
};
-i18n = 0x1;
-if(!__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index((void *)&it, (uint64)(&pair), 0x0))
+i18n = 1;
+if(!__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index((void *)&it, (uint64)(&pair), 0))
{
msgid = (((void *)0));
msgctxt = (((void *)0));
intlStrings, 0
};
-__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(&pair)), 0x1);
+__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(&pair)), 1);
__ecereProp___ecereNameSpace__ecere__com__Iterator_Set_data(&__internalIterator, ((uint64)(comments)));
});
comments = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass___ecereNameSpace__ecere__com__List_TPL_String_);
#define arch_PointerSize sizeof(void *)
#define structSize_Instance (_64BIT ? 24 : 12)
#define structSize_OldLink (_64BIT ? 24 : 12)
-#define structSize_NamedLink (_64BIT ? 32 : 16)
+#define structSize_NamedLink64 (_64BIT ? 32 : 24)
struct __ecereNameSpace__ecere__com__Instance;
if(string)
{
const char * namePart;
-unsigned int gotColon = 0x0;
+unsigned int gotColon = 0;
for(c = strlen(string) - 1; c >= 0; c--)
if(string[c] == ':')
{
-gotColon = 0x1;
+gotColon = 1;
break;
}
namePart = string + c + 1;
intlStrings, 0
};
-__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(&pair)), 0x0);
+__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(&pair)), 0);
((struct __ecereNameSpace__ecere__com__Instance *)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data(&__internalIterator));
}))));
if(!list)
intlStrings, 0
};
-__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(&pair)), 0x1);
+__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(&pair)), 1);
__ecereProp___ecereNameSpace__ecere__com__Iterator_Set_data(&__internalIterator, ((uint64)(list)));
});
}
{
struct Expression * e = MkExpString(string);
-e->__anon1.__anon2.intlString = 0x1;
+e->__anon1.__anon2.intlString = 1;
return e;
}
}
type = ProcessType(&specs, (((void *)0)));
if(id)
{
-struct Symbol * symbol = (symbol = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol), symbol->string = __ecereNameSpace__ecere__sys__CopyString(id->string), symbol->isStruct = 0x1, symbol->type = type, symbol);
+struct Symbol * symbol = (symbol = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol), symbol->string = __ecereNameSpace__ecere__sys__CopyString(id->string), symbol->isStruct = 1, symbol->type = type, symbol);
type->refCount++;
if(strstr(symbol->string, "::"))
-curContext->hasNameSpace = 0x1;
+curContext->hasNameSpace = 1;
if(!__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&curContext->structSymbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol))
FreeSymbol(symbol);
}
type->refCount++;
if(strstr(symbol->string, "::"))
-curContext->hasNameSpace = 0x1;
+curContext->hasNameSpace = 1;
if(!__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&(curContext->templateTypesOnly ? curContext->parent : curContext)->symbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol))
FreeSymbol(symbol);
}
symbol = __extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(id->string), __ecereInstance1->type = ProcessType(&specs, (((void *)0))), __ecereInstance1->isStruct = 0x1, __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(id->string), __ecereInstance1->type = ProcessType(&specs, (((void *)0))), __ecereInstance1->isStruct = 1, __ecereInstance1;
});
if(!__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&curContext->structSymbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol))
FreeSymbol(symbol);
symbol = __extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(spec->__anon1.__anon2.id->string), __ecereInstance1->type = ProcessType(&specs, (((void *)0))), __ecereInstance1->isStruct = 0x1, __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(spec->__anon1.__anon2.id->string), __ecereInstance1->type = ProcessType(&specs, (((void *)0))), __ecereInstance1->isStruct = 1, __ecereInstance1;
});
if(!__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&curContext->parent->structSymbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol))
FreeSymbol(symbol);
{
if(qualifiers != (((void *)0)))
{
-unsigned int gotType = 0x0;
-unsigned int gotFullType = 0x0;
+unsigned int gotType = 0;
+unsigned int gotFullType = 0;
struct Specifier * spec, * next;
for(spec = qualifiers->first; spec; spec = next)
if(spec->type == 1)
{
-char * colon = __ecereNameSpace__ecere__sys__RSearchString(spec->__anon1.__anon1.name, "::", strlen(spec->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereNameSpace__ecere__sys__RSearchString(spec->__anon1.__anon1.name, "::", strlen(spec->__anon1.__anon1.name), 1, 0);
s = colon ? colon + 2 : spec->__anon1.__anon1.name;
}
if(spec->__anon1.specifier == CONST || spec->__anon1.specifier == VOLATILE || spec->__anon1.specifier == EXTERN || spec->__anon1.specifier == STATIC || spec->__anon1.specifier == AUTO || spec->__anon1.specifier == REGISTER)
continue;
else if(spec->__anon1.specifier != UNSIGNED && spec->__anon1.specifier != SIGNED && spec->__anon1.specifier != LONG)
-gotFullType = 0x1;
-gotType = 0x1;
+gotFullType = 1;
+gotType = 1;
}
else
{
-gotFullType = 0x1;
-gotType = 0x1;
+gotFullType = 1;
+gotType = 1;
}
}
}
});
symbol->idCode = symbol->id = curContext->nextID++;
if(strstr(symbol->string, "::"))
-curContext->hasNameSpace = 0x1;
+curContext->hasNameSpace = 1;
if(!__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&(curContext->templateTypesOnly ? curContext->parent : curContext)->symbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol))
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*excludedSymbols), symbol);
decl->symbol = inst->symbol = symbol;
struct Declaration * MkDeclaration(struct __ecereNameSpace__ecere__sys__OldList * specifiers, struct __ecereNameSpace__ecere__sys__OldList * initDeclarators)
{
struct Declaration * decl = (decl = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Declaration), decl->type = 1, decl->__anon1.__anon1.declarators = initDeclarators, decl->__anon1.__anon1.specifiers = specifiers, decl->loc = yylloc, decl);
-unsigned int variable = 0x1;
+unsigned int variable = 1;
if(specifiers != (((void *)0)))
{
-unsigned int gotType = 0x0;
+unsigned int gotType = 0;
struct Specifier * spec, * next;
for(spec = specifiers->first; spec; spec = next)
if(spec->type == 1)
{
-const char * colon = __ecereNameSpace__ecere__sys__RSearchString(spec->__anon1.__anon1.name, "::", strlen(spec->__anon1.__anon1.name), 0x1, 0x0);
+const char * colon = __ecereNameSpace__ecere__sys__RSearchString(spec->__anon1.__anon1.name, "::", strlen(spec->__anon1.__anon1.name), 1, 0);
s = colon ? colon + 2 : spec->__anon1.__anon1.name;
}
}
}
}
-variable = 0x0;
+variable = 0;
break;
}
else if(spec->type == 0 && (spec->__anon1.specifier == STRUCT || spec->__anon1.specifier == UNION))
-variable = 0x0;
+variable = 0;
else
{
if(gotType && initDeclarators == (((void *)0)) && !spec->next && ((spec->type == 1 && spec->__anon1.__anon1.name) || spec->type == 0))
if(spec->type == 1)
{
-char * colon = __ecereNameSpace__ecere__sys__RSearchString(spec->__anon1.__anon1.name, "::", strlen(spec->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereNameSpace__ecere__sys__RSearchString(spec->__anon1.__anon1.name, "::", strlen(spec->__anon1.__anon1.name), 1, 0);
s = colon ? colon + 2 : spec->__anon1.__anon1.name;
}
}
}
if(spec && spec->type != 5)
-gotType = 0x1;
+gotType = 1;
}
}
if(variable && initDeclarators)
__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(id->string), __ecereInstance1->type = ProcessType(specifiers, d->declarator), __ecereInstance1;
});
if(strstr(symbol->string, "::"))
-curContext->hasNameSpace = 0x1;
+curContext->hasNameSpace = 1;
if(!__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&(curContext->templateTypesOnly ? curContext->parent : curContext)->symbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol))
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*excludedSymbols), symbol);
if(symbol->type && symbol->type->kind == 12 && !symbol->type->__anon1.__anon4.arraySizeExp && d->initializer)
sprintf(string, "%d", (*d->initializer->__anon1.list).count);
symbol->type->__anon1.__anon4.arraySizeExp = MkExpConstant(string);
-symbol->type->__anon1.__anon4.freeExp = 0x1;
+symbol->type->__anon1.__anon4.freeExp = 1;
}
else if(d->initializer->type == 0 && d->initializer->__anon1.exp->type == 3 && d->initializer->__anon1.exp->__anon1.__anon2.string)
{
char string[256];
int c, count = 0;
char ch;
-unsigned int escaped = 0x0;
+unsigned int escaped = 0;
char * s = d->initializer->__anon1.exp->__anon1.__anon2.string;
for(c = 1; (ch = s[c]); c++)
{
if(ch == '\\' && !escaped)
-escaped = 0x1;
+escaped = 1;
else
{
count++;
-escaped = 0x0;
+escaped = 0;
}
}
sprintf(string, "%d", count);
symbol->type->__anon1.__anon4.arraySizeExp = MkExpConstant(string);
-symbol->type->__anon1.__anon4.freeExp = 0x1;
+symbol->type->__anon1.__anon4.freeExp = 1;
}
}
symbol->id = symbol->idCode = curContext->nextID++;
if(specifiers != (((void *)0)))
{
-unsigned int gotType = 0x0;
+unsigned int gotType = 0;
struct Specifier * spec, * next;
for(spec = specifiers->first; spec; spec = next)
if(spec->type == 1)
{
-const char * colon = __ecereNameSpace__ecere__sys__RSearchString(spec->__anon1.__anon1.name, "::", strlen(spec->__anon1.__anon1.name), 0x1, 0x0);
+const char * colon = __ecereNameSpace__ecere__sys__RSearchString(spec->__anon1.__anon1.name, "::", strlen(spec->__anon1.__anon1.name), 1, 0);
s = colon ? colon + 2 : spec->__anon1.__anon1.name;
}
}
}
if(spec && spec->type != 5)
-gotType = 0x1;
+gotType = 1;
}
}
return decl;
struct Statement * MkSwitchStmt(struct __ecereNameSpace__ecere__sys__OldList * exp, struct Statement * statement)
{
if(statement)
-statement->__anon1.compound.isSwitch = 0x1;
+statement->__anon1.compound.isSwitch = 1;
return __extension__ ({
struct Statement * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Statement);
struct FunctionDefinition * MkFunction(struct __ecereNameSpace__ecere__sys__OldList * specifiers, struct Declarator * declarator, struct __ecereNameSpace__ecere__sys__OldList * declarationList)
{
-return _MkFunction(specifiers, declarator, declarationList, 0x1);
+return _MkFunction(specifiers, declarator, declarationList, 1);
}
extern struct Declarator * GetFuncDecl(struct Declarator * decl);
symbol = __extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(id->string), __ecereInstance1->type = ProcessType(param->qualifiers, param->declarator), __ecereInstance1->isParam = 0x1, __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(id->string), __ecereInstance1->type = ProcessType(param->qualifiers, param->declarator), __ecereInstance1->isParam = 1, __ecereInstance1;
});
if(!__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&context->symbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol))
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*excludedSymbols), symbol);
});
symbol->idCode = symbol->id = globalContext->nextID++;
if(strstr(symbol->string, "::"))
-globalContext->hasNameSpace = 0x1;
+globalContext->hasNameSpace = 1;
if(!__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->symbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol))
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*excludedSymbols), symbol);
declarator->symbol = symbol;
(__ecereNameSpace__ecere__com__eSystem_Delete(symbol->string), symbol->string = 0);
symbol->string = __ecereNameSpace__ecere__sys__CopyString(GetDeclId(declarator)->string);
if(strstr(symbol->string, "::"))
-globalContext->hasNameSpace = 0x1;
+globalContext->hasNameSpace = 1;
if(!__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->symbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol))
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*excludedSymbols), symbol);
if(!symbol->type)
external->__anon1.importString[len] = '\0';
(__ecereNameSpace__ecere__com__eSystem_Delete(name), name = 0);
{
-ImportModule(external->__anon1.importString, importType, importAccess, 0x1);
-ImportModule(external->__anon1.importString, importType, importAccess, 0x0);
+ImportModule(external->__anon1.importString, importType, importAccess, 1);
+ImportModule(external->__anon1.importString, importType, importAccess, 0);
}
return external;
}
symbol = __extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(id->string), __ecereInstance1->type = ProcessType(param->qualifiers, param->declarator), __ecereInstance1->isParam = 0x1, __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(id->string), __ecereInstance1->type = ProcessType(param->qualifiers, param->declarator), __ecereInstance1->isParam = 1, __ecereInstance1;
});
symbol->idCode = symbol->id = context->nextID++;
if(!__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&context->symbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol))
char typeString[1024];
typeString[0] = '\0';
-PrintTypeNoConst(type, typeString, 0x0, 0x1);
+PrintTypeNoConst(type, typeString, 0, 1);
id = MkIdentifier(typeString);
-prop->__anon1.conversion = 0x1;
+prop->__anon1.conversion = 1;
}
prop->id = id;
symbol = __extension__ ({
struct __ecereNameSpace__ecere__com__SubModule * subModule;
if(searchFor == searchIn)
-return 0x1;
+return 1;
for(subModule = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)searchIn + structSize_Instance)))->modules.first; subModule; subModule = subModule->next)
{
if(subModule->importMode == 1)
{
if(ModuleAccess(subModule->module, searchFor))
-return 0x1;
+return 1;
}
}
-return 0x0;
+return 0;
}
extern struct ModuleImport * mainModule;
{
struct Symbol * cl = (((void *)0));
struct __ecereNameSpace__ecere__com__Class * _class;
-unsigned int global = 0x0;
+unsigned int global = 0;
char fullName[1024];
if(name[0] == ':' && name[1] == ':')
{
-global = 0x1;
+global = 1;
name += 2;
}
if(!global && (currentNameSpace || defaultNameSpace) && declMode != 0 && defaultDeclMode != 0)
cl = __extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(name), __ecereInstance1->__anon1.registered = _class, __ecereInstance1->id = (((int)0x7fffffff)), __ecereInstance1->idCode = (((int)0x7fffffff)), __ecereInstance1->imported = 0x1, __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(name), __ecereInstance1->__anon1.registered = _class, __ecereInstance1->id = (((int)0x7fffffff)), __ecereInstance1->idCode = (((int)0x7fffffff)), __ecereInstance1->imported = 1, __ecereInstance1;
});
_class->symbol = cl;
if(_class->module)
return cl;
}
-extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink;
+extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
-struct __ecereNameSpace__ecere__sys__NamedLink
+struct __ecereNameSpace__ecere__sys__NamedLink64
{
-struct __ecereNameSpace__ecere__sys__NamedLink * prev;
-struct __ecereNameSpace__ecere__sys__NamedLink * next;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * prev;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * next;
char * name;
-void * data;
+long long data;
} __attribute__ ((gcc_struct));
extern struct Expression * CopyExpression(struct Expression * exp);
type->refCount = 1;
if(src->kind == 15)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * member;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * member;
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Clear(&type->__anon1.__anon1.members);
for(member = src->__anon1.__anon1.members.first; member; member = member->next)
{
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&type->__anon1.__anon1.members, __extension__ ({
-struct __ecereNameSpace__ecere__sys__NamedLink * __ecereInstance1 = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink);
+struct __ecereNameSpace__ecere__sys__NamedLink64 * __ecereInstance1 = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink64);
__ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(member->name), __ecereInstance1->data = member->data, __ecereInstance1;
}));
extern int targetPlatform;
-extern int strtol(const char * , char * * , int base);
+extern long long strtoll(const char * nptr, char * * endptr, int base);
extern struct Symbol * FindSymbol(const char * name, struct Context * startContext, struct Context * endContext, unsigned int isStruct, unsigned int globalNameSpace);
static struct Type * ProcessTypeSpecs(struct __ecereNameSpace__ecere__sys__OldList * specs, unsigned int assumeEllipsis, unsigned int keepTypeName)
{
-struct Type * specType = (specType = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type), specType->refCount = 1, specType->kind = 3, specType->isSigned = 0x1, specType);
+struct Type * specType = (specType = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type), specType->refCount = 1, specType->kind = 3, specType->isSigned = 1, specType);
if(specs != (((void *)0)))
{
-unsigned int isTypedef = 0x0;
+unsigned int isTypedef = 0;
struct Specifier * spec;
-unsigned int isLong = 0x0;
+unsigned int isLong = 0;
for(spec = specs->first; spec; spec = spec->next)
{
if(extDecl->type == 0)
{
if(!strcmp(spec->__anon1.__anon1.extDecl->__anon1.s, "__declspec(dllexport)") || !strcmp(spec->__anon1.__anon1.extDecl->__anon1.s, "dllexport"))
-specType->dllExport = 0x1;
+specType->dllExport = 1;
else if(!strcmp(spec->__anon1.__anon1.extDecl->__anon1.s, "__declspec(stdcall)") || !strcmp(spec->__anon1.__anon1.extDecl->__anon1.s, "stdcall"))
-specType->attrStdcall = 0x1;
+specType->attrStdcall = 1;
}
else if(extDecl->type == 1)
{
if(s)
{
if(!strcmp(s, "dllexport"))
-specType->dllExport = 0x1;
+specType->dllExport = 1;
else if(!strcmp(s, "stdcall"))
-specType->attrStdcall = 0x1;
+specType->attrStdcall = 1;
}
}
}
-specType->keepCast = 0x1;
+specType->keepCast = 1;
}
}
if(spec->__anon1.specifier != CONST && (specType->kind == 9 || specType->kind == 10))
specType = __extension__ ({
struct Type * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
-__ecereInstance1->kind = 3, __ecereInstance1->isSigned = 0x1, __ecereInstance1->refCount = 1, __ecereInstance1;
+__ecereInstance1->kind = 3, __ecereInstance1->isSigned = 1, __ecereInstance1->refCount = 1, __ecereInstance1;
});
}
if(isTypedef && keepTypeName)
else if(spec->type == 0)
{
if(spec->__anon1.specifier == TYPEDEF)
-isTypedef = 0x1;
+isTypedef = 1;
else if(spec->__anon1.specifier == VOID)
specType->kind = 0;
else if(spec->__anon1.specifier == CHAR)
{
if(specType->kind != 2 && specType->kind != 5)
specType->kind = 3;
-specType->isSigned = 0x0;
+specType->isSigned = 0;
}
else if(spec->__anon1.specifier == INT64)
specType->kind = 4;
specType->kind = 4;
else
specType->kind = 3;
-isLong = 0x1;
+isLong = 1;
}
else if(spec->__anon1.specifier == FLOAT)
specType->kind = 6;
else if(spec->__anon1.specifier == DOUBLE)
specType->kind = 7;
else if(spec->__anon1.specifier == SIGNED)
-specType->isSigned = 0x1;
+specType->isSigned = 1;
else if(spec->__anon1.specifier == UNSIGNED)
-specType->isSigned = 0x0;
+specType->isSigned = 0;
else if(spec->__anon1.specifier == CONST)
-specType->constant = 0x1;
+specType->constant = 1;
else if(spec->__anon1.specifier == TYPED_OBJECT || spec->__anon1.specifier == ANY_OBJECT || spec->__anon1.specifier == CLASS)
{
switch(spec->__anon1.specifier)
{
specType->kind = 22;
if(!strcmp(spec->__anon1.__anon1.name, "uintptr"))
-specType->isSigned = 0x0;
+specType->isSigned = 0;
}
else if(spec->__anon1.__anon1.name && (!strcmp(spec->__anon1.__anon1.name, "uintsize") || !strcmp(spec->__anon1.__anon1.name, "intsize")))
{
specType->kind = 23;
if(!strcmp(spec->__anon1.__anon1.name, "uintsize"))
-specType->isSigned = 0x0;
+specType->isSigned = 0;
}
else
{
for(e = (*spec->__anon1.__anon2.list).first; e; e = e->next)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * i = (i = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink), i->name = __ecereNameSpace__ecere__sys__CopyString(e->id->string), i);
+struct __ecereNameSpace__ecere__sys__NamedLink64 * i = (i = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink64), i->name = __ecereNameSpace__ecere__sys__CopyString(e->id->string), i);
if(e->exp && e->exp->type == 2 && e->exp->__anon1.__anon1.constant)
-i->data = (void *)strtol(e->exp->__anon1.__anon1.constant, (((void *)0)), 0);
+i->data = strtoll(e->exp->__anon1.__anon1.constant, (((void *)0)), 0);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&specType->__anon1.__anon1.members, i);
}
}
if(_class)
{
-specType->declaredWithStruct = 0x1;
+specType->declaredWithStruct = 1;
if(!_class->__anon1.registered || _class->__anon1.registered->type != 1)
-specType->directClassAccess = 0x1;
+specType->directClassAccess = 1;
specType->__anon1._class = _class;
specType->kind = 8;
break;
{
if(!spec->__anon1.__anon2.definitions && !isTypedef)
{
-struct Symbol * symbol = spec->__anon1.__anon2.id->string ? FindSymbol(spec->__anon1.__anon2.id->string, curContext, globalContext, 0x1, 0x0) : (((void *)0));
+struct Symbol * symbol = spec->__anon1.__anon2.id->string ? FindSymbol(spec->__anon1.__anon2.id->string, curContext, globalContext, 1, 0) : (((void *)0));
if(symbol && symbol->type)
{
specType->refCount = 1;
if(symbol->type->kind == 15)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * member;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * member;
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Clear(&specType->__anon1.__anon1.members);
for(member = symbol->type->__anon1.__anon1.members.first; member; member = member->next)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * item = (item = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink), item->name = __ecereNameSpace__ecere__sys__CopyString(member->name), item->data = member->data, item);
+struct __ecereNameSpace__ecere__sys__NamedLink64 * item = (item = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink64), item->name = __ecereNameSpace__ecere__sys__CopyString(member->name), item->data = member->data, item);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&specType->__anon1.__anon1.members, item);
}
struct Declarator * subDecl = decl ? decl->declarator : (((void *)0));
if(!parentType)
-type = ProcessTypeSpecs(specs, decl == (((void *)0)), (decl && decl->type == 7) ? 0x1 : 0x0);
+type = ProcessTypeSpecs(specs, decl == (((void *)0)), (decl && decl->type == 7) ? 1 : 0);
if(decl)
{
switch(decl->type)
if(s)
{
if(!strcmp(s, "__declspec(dllexport)") || !strcmp(s, "dllexport"))
-type->dllExport = 0x1;
+type->dllExport = 1;
else if(!strcmp(s, "__declspec(stdcall)") || !strcmp(s, "stdcall"))
-type->attrStdcall = 0x1;
+type->attrStdcall = 1;
}
break;
}
if(s)
{
if(!strcmp(s, "dllexport"))
-type->dllExport = 0x1;
+type->dllExport = 1;
else if(!strcmp(s, "stdcall"))
-type->attrStdcall = 0x1;
+type->attrStdcall = 1;
}
}
}
-type->keepCast = 0x1;
+type->keepCast = 1;
break;
}
}
type = __extension__ ({
struct Type * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
-__ecereInstance1->refCount = 1, __ecereInstance1->kind = 12, __ecereInstance1->__anon1.__anon4.arraySizeExp = CopyExpression(decl->__anon1.array.exp), __ecereInstance1->__anon1.__anon4.freeExp = 0x1, __ecereInstance1->__anon1.type = type, __ecereInstance1->dllExport = type->dllExport, __ecereInstance1->attrStdcall = type->attrStdcall, __ecereInstance1;
+__ecereInstance1->refCount = 1, __ecereInstance1->kind = 12, __ecereInstance1->__anon1.__anon4.arraySizeExp = CopyExpression(decl->__anon1.array.exp), __ecereInstance1->__anon1.__anon4.freeExp = 1, __ecereInstance1->__anon1.type = type, __ecereInstance1->dllExport = type->dllExport, __ecereInstance1->attrStdcall = type->attrStdcall, __ecereInstance1;
});
if(decl->__anon1.array.enumClass)
type->__anon1.__anon4.enumClass = decl->__anon1.array.enumClass->__anon1.__anon1.symbol;
struct __ecereNameSpace__ecere__sys__OldList * qualifiers = pointer->qualifiers;
if(type->classObjectType)
-type->byReference = 0x1;
+type->byReference = 1;
else
type = __extension__ ({
struct Type * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
for(spec = (*qualifiers).first; spec; spec = spec->next)
{
if(spec->type == 0 && spec->__anon1.specifier == CONST)
-type->constant = 0x1;
+type->constant = 1;
}
}
pointer = pointer->pointer;
if(_class->type == 8)
{
type->__anon1.__anon2.thisClassTemplate = _class->__anon1.templateParameter;
-type->extraParam = 0x1;
+type->extraParam = 1;
}
else
{
char * name = _class->__anon1.__anon1.name;
if(!name)
-type->__anon1.__anon2.staticMethod = 0x1;
+type->__anon1.__anon2.staticMethod = 1;
else
{
if(!id->classSym)
if(name[strlen(name) - 1] == '&')
{
type->__anon1.__anon2.thisClass = FindClass("class");
-type->byReference = 0x1;
+type->byReference = 1;
}
else
type->__anon1.__anon2.thisClass = _class->__anon1.__anon1.symbol;
if(type->__anon1.__anon2.thisClass && strcmp(type->__anon1.__anon2.thisClass->string, "class"))
-type->extraParam = 0x1;
+type->extraParam = 1;
else if(!strcmp(name, "any_object"))
{
-type->extraParam = 0x1;
+type->extraParam = 1;
type->__anon1.__anon2.thisClass = FindClass("class");
}
else if(!strcmp(name, "class"))
struct Type * type = ProcessType(specs, decl);
if(type && !type->__anon1.__anon2.thisClass && staticMethod)
-type->__anon1.__anon2.staticMethod = 0x1;
+type->__anon1.__anon2.staticMethod = 1;
FreeList(specs, FreeSpecifier);
if(decl)
FreeDeclarator(decl);
return __extension__ ({
struct PropertyWatch * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_PropertyWatch);
-__ecereInstance1->compound = compound, __ecereInstance1->deleteWatch = 0x1, __ecereInstance1;
+__ecereInstance1->compound = compound, __ecereInstance1->deleteWatch = 1, __ecereInstance1;
});
}
sprintf(idString, "%d", id);
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, _class->fullName, 0x1);
+FullClassNameCat(className, _class->fullName, 1);
DeclareClass(FindClass(_class->fullName), className);
argExp = MkExpIndex((MkExpMember)(MkExpMember(MkExpIdentifier(MkIdentifier("this")), MkIdentifier("_class")), MkIdentifier("templateArgs")), MkListOne(MkExpConstant(idString)));
}
char tableName[1024];
char rowClassName[1024];
int len = strlen(table->name);
-unsigned int indexed = 0x0;
+unsigned int indexed = 0;
char tableID[1024];
char nameField[1024];
struct __ecereNameSpace__ecere__sys__OldList * args;
{
case 0:
{
-unsigned int isIndex = 0x0;
+unsigned int isIndex = 0;
char fieldID[1024];
struct __ecereNameSpace__ecere__sys__OldList * args;
struct Specifier * spec = entry->__anon1.__anon1.dataType->qualifiers ? (struct Specifier *)(*entry->__anon1.__anon1.dataType->qualifiers).first : (((void *)0));
struct ClassDef * def;
numIndexes = ((numIndexes > 1) ? numIndexes : 1);
-isIndex = 0x1;
-indexed = 0x1;
+isIndex = 1;
+indexed = 1;
sprintf(name, "_%s", entry->id->string);
curContext = rowSet->__anon1.compound.context = __extension__ ({
struct Context * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Context);
curContext = globalContext;
def = MkClassDefProperty(MkProperty(CopyList(entry->__anon1.__anon1.dataType->qualifiers, CopySpecifier), CopyDeclarator(entry->__anon1.__anon1.dataType->declarator), MkIdentifier(name), rowSet, (((void *)0))));
def->__anon1.propertyDef->symbol->id = def->__anon1.propertyDef->symbol->idCode = symbolID;
-def->__anon1.propertyDef->__anon1.isDBProp = 0x1;
+def->__anon1.propertyDef->__anon1.isDBProp = 1;
def->memberAccess = 1;
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*rowClassDefs), def);
}
curContext = globalContext;
def = MkClassDefProperty(MkProperty(CopyList(entry->__anon1.__anon1.dataType->qualifiers, CopySpecifier), entry->__anon1.__anon1.dataType->declarator, CopyIdentifier(entry->id), rowSet, rowGet));
def->__anon1.propertyDef->symbol->id = def->__anon1.propertyDef->symbol->idCode = symbolID;
-def->__anon1.propertyDef->__anon1.isDBProp = 0x1;
+def->__anon1.propertyDef->__anon1.isDBProp = 1;
def->memberAccess = 1;
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*rowClassDefs), def);
}
curContext = globalContext;
def = MkClassDefProperty(MkProperty(CopyList(entry->__anon1.__anon1.dataType->qualifiers, CopySpecifier), CopyDeclarator(entry->__anon1.__anon1.dataType->declarator), CopyIdentifier(entry->id), idSet, idGet));
def->__anon1.propertyDef->symbol->id = def->__anon1.propertyDef->symbol->idCode = symbolID;
-def->__anon1.propertyDef->__anon1.isDBProp = 0x1;
+def->__anon1.propertyDef->__anon1.isDBProp = 1;
def->memberAccess = 1;
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*idClassDefs), def);
}
char indexID[1024];
struct DBIndexItem * item;
int c;
-unsigned int needTable = 0x0;
+unsigned int needTable = 0;
char num[16];
if(entry->id || indexed)
external = MkExternalDeclaration(MkDeclaration(MkListOne(MkSpecifierName("Table")), MkListOne(MkInitDeclarator(MkDeclaratorIdentifier(MkIdentifier(indexID)), (((void *)0))))));
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*ast), external);
external->__anon1.declaration->declMode = table->declMode;
-needTable = 0x1;
+needTable = 1;
}
else
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "Multiple field index requires a name\n", (((void *)0))));
}
else
{
-indexed = 0x1;
+indexed = 1;
strcpy(indexID, tableID);
}
for(c = 0, item = (*entry->__anon1.items).first; item; item = item->next, c++)
struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedItem;
-struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink;
+struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__OldLink;
__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write = method->vid;
__ecereClass___ecereNameSpace__ecere__sys__Item = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::Item");
__ecereClass___ecereNameSpace__ecere__sys__NamedItem = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::NamedItem");
-__ecereClass___ecereNameSpace__ecere__sys__NamedLink = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::NamedLink");
+__ecereClass___ecereNameSpace__ecere__sys__NamedLink64 = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::NamedLink64");
__ecereClass___ecereNameSpace__ecere__sys__OldLink = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::OldLink");
__ecereClass___ecereNameSpace__ecere__sys__OldList = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::OldList");
__ecereClass___ecereNameSpace__ecere__sys__TempFile = __ecereNameSpace__ecere__com__eSystem_FindClass(module, "ecere::sys::TempFile");
__ecereCreateModuleInstances_loadSymbols();
__ecereCreateModuleInstances_pass1();
}
-return 0x1;
+return 1;
}
extern void __ecereNameSpace__ecere__UnloadTranslatedStrings(const char * name);
__ecereUnregisterModule_type(module);
if(__currentModule == module)
__currentModule = (void *)0;
-return 0x1;
+return 1;
}
void __ecereRegisterModule_ec_main(struct __ecereNameSpace__ecere__com__Instance * module)
static struct __ecereNameSpace__ecere__com__Class * __ecereClass_DBTableEntryType;
-unsigned int inCompiler = 0x0;
+unsigned int inCompiler = 0;
void SetInCompiler(unsigned int b)
{
defines = list;
}
-unsigned int outputLineNumbers = 0x1;
+unsigned int outputLineNumbers = 1;
void SetOutputLineNumbers(unsigned int value)
{
const char * escChars = " !\"$&'()*:;<=>?[\\`{|";
const char * escCharsQuoted = "\"()$";
#endif
-unsigned int quoting = 0x0;
+unsigned int quoting = 0;
char * o = output;
const char * i = input, * l = input;
while(*l && !strchr(escChars, *l))
l++;
if(*l)
-quoting = 0x1;
+quoting = 1;
#else
if(*i == '-')
{
}
};
-this->debugValue = 0x0;
+this->debugValue = 0;
this->val = __simpleStruct0;
this->address = 0;
-this->hasAddress = 0x0;
+this->hasAddress = 0;
this->expType = (((void *)0));
this->destType = (((void *)0));
this->usage = 0;
this->tempCount = 0;
-this->byReference = 0x0;
-this->isConstant = 0x0;
-this->addedThis = 0x0;
-this->needCast = 0x0;
-this->thisPtr = 0x0;
-this->opDestType = 0x0;
+this->byReference = 0;
+this->isConstant = 0;
+this->addedThis = 0;
+this->needCast = 0;
+this->thisPtr = 0;
+this->opDestType = 0;
this->needTemplateCast = 0;
}
(this->symbols.CompareKey = (void *)__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_CompareString);
(this->structSymbols.CompareKey = (void *)__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_CompareString);
(this->templateTypes.CompareKey = (void *)__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_CompareString);
-return 0x1;
+return 1;
}
struct FunctionImport
tempString[0] = '\0';
if(type)
-PrintType(type, tempString, 0x0, 0x1);
+PrintType(type, tempString, 0, 1);
return tempString;
}
}
else
{
-parseTypeError = 0x1;
+parseTypeError = 1;
}
}
}
{
if(!skipErrors)
{
-parseError = 0x1;
+parseError = 1;
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "syntax error\n", (((void *)0))));
}
return 0;
if(!hostType)
{
-struct __ecereNameSpace__ecere__com__Instance * f = __ecereNameSpace__ecere__sys__DualPipeOpen((((unsigned int)(0x1))), "uname -m");
+struct __ecereNameSpace__ecere__com__Instance * f = __ecereNameSpace__ecere__sys__DualPipeOpen((((unsigned int)(1))), "uname -m");
if(f)
{
extern struct __ecereNameSpace__ecere__com__Class * __ecereNameSpace__ecere__com__eSystem_RegisterClass(int type, const char * name, const char * baseName, int size, int sizeClass, unsigned int (* Constructor)(void * ), void (* Destructor)(void * ), struct __ecereNameSpace__ecere__com__Instance * module, int declMode, int inheritanceAccess);
-extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, int value);
+extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, long long value);
extern struct __ecereNameSpace__ecere__com__DataMember * __ecereNameSpace__ecere__com__eClass_AddDataMember(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, const char * type, unsigned int size, unsigned int alignment, int declMode);
case 401:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isConstructor = 0x1;
+yyval.classFunction->isConstructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
FreeList(yyvsp[(1) - (3)].list, FreeSpecifier);
case 402:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isDestructor = 0x1;
+yyval.classFunction->isDestructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
FreeList(yyvsp[(2) - (4)].list, FreeSpecifier);
case 403:
{
yyval.classFunction = MkClassFunction(yyvsp[(2) - (3)].list, (((void *)0)), yyvsp[(3) - (3)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 404:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), yyvsp[(2) - (2)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
d->__anon1.structDecl.exp = (((void *)0));
}
dataType = ProcessType(decl->__anon1.__anon1.specifiers, d);
-PrintType(dataType, dataTypeString, 0x0, 0x1);
+PrintType(dataType, dataTypeString, 0, 1);
{
struct __ecereNameSpace__ecere__com__BitMember * member = __ecereNameSpace__ecere__com__eClass_AddBitMember(regClass, declId->string, dataTypeString, 0, 0, def->memberAccess);
typeString[0] = (char)0;
dataType = ProcessType(decl->__anon1.__anon1.specifiers, d);
-PrintType(dataType, typeString, 0x0, 0x1);
+PrintType(dataType, typeString, 0, 1);
if(member)
{
dataMember = __ecereNameSpace__ecere__com__eMember_AddDataMember(member, declId->string, typeString, 0, 0, def->memberAccess);
spec->__anon1.__anon2.id = (((void *)0));
decl->__anon1.__anon1.declarators = MkListOne(MkDeclaratorIdentifier(id));
dataType = ProcessType(decl->__anon1.__anon1.specifiers, (((void *)0)));
-PrintType(dataType, typeString, 0x0, 0x1);
+PrintType(dataType, typeString, 0, 1);
if(member)
{
dataMember = __ecereNameSpace__ecere__com__eMember_AddDataMember(member, id->string, typeString, 0, 0, def->memberAccess);
{
if(inCompiler)
prop->IsSet = (void *)propertyDef->issetStmt;
-prop->compiled = 0x0;
+prop->compiled = 0;
prop->symbol = __extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
{
struct __ecereNameSpace__ecere__com__Class * regClass;
struct ClassDef * def;
-unsigned int redefinition = 0x0;
+unsigned int redefinition = 0;
regClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, symbol->string);
if(regClass && !regClass->internalDecl)
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(&globalContext->classes, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*excludedSymbols), symbol);
}
-redefinition = 0x1;
+redefinition = 1;
if(inCompiler)
{
yylloc = *loc;
else
{
char baseName[1024] = "";
-unsigned int unitType = 0x0;
-unsigned int wouldBeEnum = 0x0;
+unsigned int unitType = 0;
+unsigned int wouldBeEnum = 0;
int inheritanceAccess = 1;
if(baseSpecs != (((void *)0)))
{
struct Type * baseType = ProcessType(baseSpecs, (((void *)0)));
-PrintType(baseType, baseName, 0x0, 0x1);
+PrintType(baseType, baseName, 0, 1);
if(baseType->kind == 8)
{
if(baseType->__anon1._class->__anon1.registered && classType == 0)
classType = 5;
else if(baseType->__anon1._class->__anon1.registered->type == 4)
{
-wouldBeEnum = 0x1;
+wouldBeEnum = 1;
}
}
}
baseName[0] = '\0';
}
else
-unitType = 0x1;
+unitType = 1;
FreeType(baseType);
if(((struct Specifier *)baseSpecs->first)->type == 0 && ((struct Specifier *)baseSpecs->first)->__anon1.specifier == PRIVATE)
inheritanceAccess = 2;
}
}
-extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink;
+extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
-struct __ecereNameSpace__ecere__sys__NamedLink
+struct __ecereNameSpace__ecere__sys__NamedLink64
{
-struct __ecereNameSpace__ecere__sys__NamedLink * prev;
-struct __ecereNameSpace__ecere__sys__NamedLink * next;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * prev;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * next;
char * name;
-void * data;
+long long data;
} __attribute__ ((gcc_struct));
void FreeExpression(struct Expression * exp);
{
case 15:
{
-struct __ecereNameSpace__ecere__sys__NamedLink * member, * next;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * member, * next;
if(type->__anon1.__anon1.enumName)
(__ecereNameSpace__ecere__com__eSystem_Delete(type->__anon1.__anon1.enumName), type->__anon1.__anon1.enumName = 0);
next = member->next;
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove(&type->__anon1.__anon1.members, member);
(__ecereNameSpace__ecere__com__eSystem_Delete(member->name), member->name = 0);
-((member ? (__ecereClass___ecereNameSpace__ecere__sys__NamedLink->Destructor ? __ecereClass___ecereNameSpace__ecere__sys__NamedLink->Destructor((void *)member) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(member)) : 0), member = 0);
+((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);
}
break;
}
void FreeExpContents(struct Expression * exp)
{
-_FreeExpression(exp, 0x0);
+_FreeExpression(exp, 0);
}
void FreeExpression(struct Expression * exp)
{
-_FreeExpression(exp, 0x1);
+_FreeExpression(exp, 1);
}
void FreeInstance(struct Instantiation * inst);
{
list, 0
};
-unsigned int found = 0x0;
+unsigned int found = 0;
while(__ecereMethod___ecereNameSpace__ecere__com__Iterator_Next(&it))
{
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__com__List->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__com__Container_Remove])(list, it.pointer);
-found = 0x1;
+found = 1;
break;
}
}
list, 0
};
-__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(0)), 0x0);
+__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(0)), 0);
((struct __ecereNameSpace__ecere__com__Instance *)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data(&__internalIterator));
}))));
unsigned int guess;
-unsigned int deleteWatchable = 0x0;
+unsigned int deleteWatchable = 0;
int memberAccessStack[256];
case 13:
{
yyval.classFunction = MkClassFunction(yyvsp[(1) - (3)].list, (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isConstructor = 0x1;
+yyval.classFunction->isConstructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 14:
{
yyval.classFunction = MkClassFunction(yyvsp[(2) - (4)].list, (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isDestructor = 0x1;
+yyval.classFunction->isDestructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 15:
{
yyval.classFunction = MkClassFunction(yyvsp[(2) - (3)].list, (((void *)0)), yyvsp[(3) - (3)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 16:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), yyvsp[(2) - (2)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 19:
{
yyval.classFunction = MkClassFunction(yyvsp[(2) - (3)].list, (((void *)0)), yyvsp[(3) - (3)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 20:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), yyvsp[(2) - (2)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
break;
case 132:
{
-yyvsp[(1) - (2)].prop->__anon1.isWatchable = 0x1;
+yyvsp[(1) - (2)].prop->__anon1.isWatchable = 1;
;
}
break;
case 168:
{
yyval.classDef = (((void *)0));
-deleteWatchable = 0x1;
+deleteWatchable = 1;
;
}
break;
FreeIdentifier(yyvsp[(1) - (3)].id);
FreeIdentifier(yyvsp[(3) - (3)].id);
yyval.symbol->nameLoc = (yylsp[(3) - (3)]);
-yyval.symbol->isRemote = 0x1;
+yyval.symbol->isRemote = 1;
memberAccessStack[++defaultMemberAccess] = 2;
;
}
yyval.symbol = DeclClass(globalContext->nextID++, yyvsp[(3) - (3)].specifier->__anon1.__anon1.name);
FreeIdentifier(yyvsp[(1) - (3)].id);
yyval.symbol->nameLoc = (yylsp[(3) - (3)]);
-yyval.symbol->isRemote = 0x1;
+yyval.symbol->isRemote = 1;
FreeSpecifier(yyvsp[(3) - (3)].specifier);
memberAccessStack[++defaultMemberAccess] = 2;
;
FreeIdentifier(yyvsp[(1) - (6)].id);
FreeIdentifier(yyvsp[(3) - (6)].id);
yyval.symbol->nameLoc = (yylsp[(3) - (6)]);
-yyval.symbol->isRemote = 0x1;
+yyval.symbol->isRemote = 1;
memberAccessStack[++defaultMemberAccess] = 2;
;
}
yyval.symbol->templateParams = yyvsp[(5) - (6)].list;
FreeIdentifier(yyvsp[(1) - (6)].id);
yyval.symbol->nameLoc = (yylsp[(3) - (6)]);
-yyval.symbol->isRemote = 0x1;
+yyval.symbol->isRemote = 1;
FreeSpecifier(yyvsp[(3) - (6)].specifier);
memberAccessStack[++defaultMemberAccess] = 2;
;
{
yyval._class = MkClass(yyvsp[(1) - (3)].symbol, (((void *)0)), yyvsp[(3) - (3)].list);
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
yyval._class = yyvsp[(1) - (3)]._class;
yyval._class->definitions = yyvsp[(3) - (3)].list;
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
{
yyval._class = MkClass(yyvsp[(1) - (3)].symbol, (((void *)0)), yyvsp[(3) - (3)].list);
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
yyval._class = yyvsp[(1) - (3)]._class;
yyval._class->definitions = yyvsp[(3) - (3)].list;
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
{
yyval._class = MkClass(yyvsp[(1) - (3)].symbol, (((void *)0)), MkList());
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
yyval._class = yyvsp[(1) - (3)]._class;
yyval._class->definitions = MkList();
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
case 371:
{
yyval.exp = yyvsp[(1) - (2)].exp;
-skipErrors = 0x1;
+skipErrors = 1;
;
}
break;
case 373:
{
-skipErrors = 0x0;
+skipErrors = 0;
yyval.exp = MkExpOp(yyvsp[(1) - (2)].exp, '<', yyvsp[(2) - (2)].exp);
yyval.exp->loc = (yyloc);
;
}
else
_DeclClass(0, yyvsp[(1) - (2)].exp->__anon1.__anon1.identifier->string);
-skipErrors = 0x0;
+skipErrors = 0;
FreeExpression(yyvsp[(1) - (2)].exp);
FreeExpression(yyvsp[(2) - (2)].exp);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, int pos, int mode))__extension__ ({
yyval.exp = MkExpOp(yyvsp[(1) - (2)].exp, '<', yyvsp[(2) - (2)].exp);
yyval.exp->loc = (yyloc);
}
-skipErrors = 0x0;
+skipErrors = 0;
;
}
break;
case 720:
{
yyval.specifier = MkStructOrUnion(yyvsp[(1) - (2)].specifierType, yyvsp[(2) - (2)].id, (((void *)0)));
-yyval.specifier->__anon1.__anon2.addNameSpace = 0x1;
+yyval.specifier->__anon1.__anon2.addNameSpace = 1;
yyval.specifier->__anon1.__anon2.ctx = PushContext();
;
}
{
yyval.specifier = MkStructOrUnion(yyvsp[(1) - (3)].specifierType, yyvsp[(3) - (3)].id, (((void *)0)));
yyval.specifier->__anon1.__anon2.extDeclStruct = yyvsp[(2) - (3)].extDecl;
-yyval.specifier->__anon1.__anon2.addNameSpace = 0x1;
+yyval.specifier->__anon1.__anon2.addNameSpace = 1;
yyval.specifier->__anon1.__anon2.ctx = PushContext();
;
}
break;
case 868:
{
-char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (1)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (1)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (1)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (1)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (1)].specifier->__anon1.__anon1.name;
yyval.declarator = MkDeclaratorIdentifier(MkIdentifier(s));
case 870:
{
struct Declarator * decl;
-char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (4)].specifier->__anon1.__anon1.name;
decl = MkDeclaratorIdentifier(MkIdentifier(s));
case 871:
{
struct Declarator * decl;
-char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (4)].specifier->__anon1.__anon1.name;
decl = MkDeclaratorIdentifier(MkIdentifier(s));
case 872:
{
struct Declarator * decl;
-char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (4)].specifier->__anon1.__anon1.name;
decl = MkDeclaratorIdentifier(MkIdentifier(s));
case 873:
{
struct Declarator * decl;
-char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (3)].specifier->__anon1.__anon1.name;
decl = MkDeclaratorIdentifier(MkIdentifier(s));
break;
case 1024:
{
-char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (3)].specifier->__anon1.__anon1.name;
yyval.list = MkList();
extern struct Location yylloc;
-unsigned int echoOn = 0x1;
+unsigned int echoOn = 1;
void SetEchoOn(unsigned int b)
{
static char ** includes;
-unsigned int inIDE = 0x0;
+unsigned int inIDE = 0;
void SetInIDE(unsigned int b)
{
return ecereImported;
}
-unsigned int inPreCompiler = 0x0;
+unsigned int inPreCompiler = 0;
void SetInPreCompiler(unsigned int b)
{
inPreCompiler = b;
}
-unsigned int inSymbolGen = 0x0;
+unsigned int inSymbolGen = 0;
void SetInSymbolGen(unsigned int b)
{
unsigned int DummyMethod()
{
-return 0x1;
+return 1;
}
extern char * __ecereNameSpace__ecere__sys__TrimLSpaces(const char * string, char * output);
extern char * __ecereNameSpace__ecere__sys__TrimRSpaces(const char * string, char * output);
-extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, int value);
+extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, long long value);
-extern int atoi(const char * );
+extern long long strtoll(const char * nptr, char * * endptr, int base);
-extern int __ecereNameSpace__ecere__com__eEnum_AddValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string);
+extern long long __ecereNameSpace__ecere__com__eEnum_AddValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string);
extern struct __ecereNameSpace__ecere__com__Method * __ecereNameSpace__ecere__com__eClass_AddVirtualMethod(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, const char * type, void * function, int declMode);
unsigned int LoadSymbols(const char * fileName, int importType, unsigned int loadDllOnly)
{
struct __ecereNameSpace__ecere__com__Instance * f = __ecereNameSpace__ecere__sys__FileOpenBuffered(fileName, 1);
-unsigned int globalInstance = 0x0;
+unsigned int globalInstance = 0;
if(f)
{
-unsigned int ecereCOMModule = 0x0;
+unsigned int ecereCOMModule = 0;
char moduleName[797];
__ecereNameSpace__ecere__sys__GetLastDirectory(fileName, moduleName);
if(!((strcasecmp)(moduleName, "instance.sym") && (strcasecmp)(moduleName, "BinaryTree.sym") && (strcasecmp)(moduleName, "dataTypes.sym") && (strcasecmp)(moduleName, "OldList.sym") && (strcasecmp)(moduleName, "String.sym") && (strcasecmp)(moduleName, "BTNode.sym") && (strcasecmp)(moduleName, "Array.sym") && (strcasecmp)(moduleName, "AVLTree.sym") && (strcasecmp)(moduleName, "BuiltInContainer.sym") && (strcasecmp)(moduleName, "Container.sym") && (strcasecmp)(moduleName, "CustomAVLTree.sym") && (strcasecmp)(moduleName, "LinkList.sym") && (strcasecmp)(moduleName, "List.sym") && (strcasecmp)(moduleName, "Map.sym") && (strcasecmp)(moduleName, "Mutex.sym")))
-ecereCOMModule = 0x1;
+ecereCOMModule = 1;
for(; ; )
{
char line[1024];
if(line[0] == '[')
{
if(!strcmp(line, "[Global Instance]"))
-globalInstance = 0x1;
+globalInstance = 1;
else if(!strcmp(line, "[Defined Classes]"))
{
struct __ecereNameSpace__ecere__com__Class * regClass = (((void *)0));
char name[1024];
-unsigned int isRemote = 0x0;
-unsigned int isStatic = 0x0;
-unsigned int isWatchable = 0x0;
+unsigned int isRemote = 0;
+unsigned int isStatic = 0;
+unsigned int isWatchable = 0;
int classType = 0;
-unsigned int fixed = 0x0;
-unsigned int noExpansion = 0x0;
+unsigned int fixed = 0;
+unsigned int noExpansion = 0;
int inheritanceAccess = 1;
for(; ; )
if(line[0] == '[')
{
if(!strcmp(line, "[Remote]"))
-isRemote = 0x1;
+isRemote = 1;
else if(!strcmp(line, "[Static]"))
-isStatic = 0x1;
+isStatic = 1;
else if(!strcmp(line, "[Fixed]"))
-fixed = 0x1;
+fixed = 1;
else if(!strcmp(line, "[No Expansion]"))
-noExpansion = 0x1;
+noExpansion = 1;
else if(!strcmp(line, "[Watchable]"))
-isWatchable = 0x1;
+isWatchable = 1;
else if(!strcmp(line, "[Enum]"))
classType = 4;
else if(!strcmp(line, "[Bit]"))
}
}
if(fixed)
-regClass->fixed = 0x1;
+regClass->fixed = 1;
if(noExpansion)
-regClass->noExpansion = 0x1;
+regClass->noExpansion = 1;
if(isWatchable)
{
__ecereNameSpace__ecere__com__eClass_DestructionWatchable(regClass);
regClass->symbol = existingClass;
existingClass->id = (((int)0x7fffffff));
existingClass->idCode = (((int)0x7fffffff));
-existingClass->imported = 0x1;
+existingClass->imported = 1;
if(regClass->module)
existingClass->module = FindModule(regClass->module);
else
}
else
regClass = (((void *)0));
-isRemote = 0x0;
-isWatchable = 0x0;
-fixed = 0x0;
-isStatic = 0x0;
+isRemote = 0;
+isWatchable = 0;
+fixed = 0;
+isStatic = 0;
}
else if(!strcmp(line, "[Enum Values]"))
{
name[equal - line] = '\0';
__ecereNameSpace__ecere__sys__TrimLSpaces(name, name);
__ecereNameSpace__ecere__sys__TrimRSpaces(name, name);
-__ecereNameSpace__ecere__com__eEnum_AddFixedValue(regClass, name, atoi(equal + 1));
+__ecereNameSpace__ecere__com__eEnum_AddFixedValue(regClass, name, strtoll(equal + 1, (((void *)0)), 0));
}
else
{
else if(!strcmp(line, "[Defined Methods]"))
{
char name[1024];
-unsigned int isVirtual = 0x0;
+unsigned int isVirtual = 0;
int memberAccess = 1;
for(; ; )
}
}
else if(!strcmp(line, "[Virtual]"))
-isVirtual = 0x1;
+isVirtual = 1;
else if(!strcmp(line, "[Public]"))
memberAccess = 1;
else if(!strcmp(line, "[Private]"))
else
{
strcpy(name, line);
-isVirtual = 0x0;
+isVirtual = 0;
memberAccess = 1;
}
}
else if(!strcmp(line, "[Defined Properties]"))
{
char name[1024];
-unsigned int setStmt = 0x0, getStmt = 0x0, isVirtual = 0x0, conversion = 0x0;
-unsigned int isWatchable = 0x0;
+unsigned int setStmt = 0, getStmt = 0, isVirtual = 0, conversion = 0;
+unsigned int isWatchable = 0;
int memberAccess = 1;
for(; ; )
if(prop)
{
-prop->compiled = 0x0;
+prop->compiled = 0;
if(isWatchable)
{
__ecereNameSpace__ecere__com__eProperty_Watchable(prop);
}
}
else if(!strcmp(line, "[Set]"))
-setStmt = 0x1;
+setStmt = 1;
else if(!strcmp(line, "[Get]"))
-getStmt = 0x1;
+getStmt = 1;
else if(!strcmp(line, "[Watchable]"))
-isWatchable = 0x1;
+isWatchable = 1;
else if(!strcmp(line, "[Public]"))
memberAccess = 1;
else if(!strcmp(line, "[Private]"))
memberAccess = 2;
else if(!strcmp(line, "[Conversion]"))
{
-conversion = 0x1;
-setStmt = getStmt = isVirtual = isWatchable = 0x0;
+conversion = 1;
+setStmt = getStmt = isVirtual = isWatchable = 0;
}
}
else
{
strcpy(name, line);
-setStmt = getStmt = isVirtual = conversion = isWatchable = 0x0;
+setStmt = getStmt = isVirtual = conversion = isWatchable = 0;
memberAccess = 1;
}
}
else if(!strcmp(line, "[Defined Class Properties]"))
{
char name[1024];
-unsigned int setStmt = 0x0, getStmt = 0x0;
+unsigned int setStmt = 0, getStmt = 0;
for(; ; )
{
}
}
else if(!strcmp(line, "[Set]"))
-setStmt = 0x1;
+setStmt = 1;
else if(!strcmp(line, "[Get]"))
-getStmt = 0x1;
+getStmt = 1;
}
else
{
strcpy(name, line);
-setStmt = getStmt = 0x0;
+setStmt = getStmt = 0;
}
}
}
struct Operand op;
struct Expression * exp;
-skipErrors = 0x1;
+skipErrors = 1;
exp = ParseExpressionString(line);
if(exp)
{
if(info)
-exp->destType = ProcessTypeString(info, 0x0);
+exp->destType = ProcessTypeString(info, 0);
ProcessExpressionType(exp);
ComputeExpression(exp);
op = GetOperand(exp);
defaultArg.__anon1.expression.__anon1.ui64 = op.__anon1.ui64;
FreeExpression(exp);
}
-skipErrors = 0x0;
+skipErrors = 0;
popLexer(backup);
}
break;
{
inheritanceAccess = 1;
classType = 0;
-isRemote = 0x0;
+isRemote = 0;
strcpy(name, line);
regClass = (((void *)0));
}
else
ImportModule(line, 4, importAccess, loadDllOnly);
if(!strcmp(line, "ecere"))
-ecereImported = 0x1;
+ecereImported = 1;
moduleImportType = 0;
importAccess = 1;
}
module->dllOnly = loadDllOnly;
if(ext[0] || !__ecereNameSpace__ecere__sys__FileExists(symFile))
{
-unsigned int skipLoad = 0x0;
+unsigned int skipLoad = 0;
struct __ecereNameSpace__ecere__com__Instance * list = (((void *)0));
if(!inCompiler && !inPreCompiler && !inSymbolGen)
{
struct __ecereNameSpace__ecere__com__MapIterator it = (it.container = (void *)0, it.pointer = (void *)0, __ecereProp___ecereNameSpace__ecere__com__MapIterator_Set_map(&it, loadedModules), it);
-if(!__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index((void *)&it, (uint64)(name), 0x0))
+if(!__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index((void *)&it, (uint64)(name), 0))
{
struct __ecereNameSpace__ecere__com__Instance * firstModule = __ecereNameSpace__ecere__com__eModule_LoadStrict(((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + structSize_Instance)))->application, name, importAccess);
loadedModules, 0
};
-__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(name)), 0x1);
+__ecereMethod___ecereNameSpace__ecere__com__Iterator_Index(&__internalIterator, ((uint64)(name)), 1);
__ecereProp___ecereNameSpace__ecere__com__Iterator_Set_data(&__internalIterator, ((uint64)(list)));
});
}
else
-skipLoad = 0x1;
+skipLoad = 1;
}
else
list = ((struct __ecereNameSpace__ecere__com__Instance *)__ecereProp___ecereNameSpace__ecere__com__Iterator_Get_data((void *)&it));
for(redefinition = dataRedefinitions.first; redefinition; redefinition = redefinition->next)
{
-struct Type * type1 = ProcessTypeString(redefinition->type1, 0x0);
-struct Type * type2 = ProcessTypeString(redefinition->type2, 0x0);
+struct Type * type1 = ProcessTypeString(redefinition->type1, 0);
+struct Type * type2 = ProcessTypeString(redefinition->type2, 0);
char type1String[1024] = "";
char type2String[1024] = "";
-PrintType(type1, type1String, 0x0, 0x1);
-PrintType(type2, type2String, 0x0, 0x1);
+PrintType(type1, type1String, 0, 1);
+PrintType(type2, type2String, 0, 1);
if(strcmp(type1String, type2String))
Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "Redefinition of %s (defining as %s, already defined as %s)\n", (((void *)0))), redefinition->name, type1String, type2String);
FreeType(type1);
int outputLine;
-unsigned int memoryGuard = 0x0;
+unsigned int memoryGuard = 0;
void SetMemoryGuard(unsigned int b)
{
for(spec = (*exp->__anon1._classExp.specifiers).first; spec; spec = spec->next)
{
-OutputSpecifier(spec, f, 0x0);
+OutputSpecifier(spec, f, 0);
if(spec->next)
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, " ");
-OutputTypeName(exp->__anon1._renew.typeName, f, 0x0);
+OutputTypeName(exp->__anon1._renew.typeName, f, 0);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, " ");
-OutputTypeName(exp->__anon1._renew.typeName, f, 0x0);
+OutputTypeName(exp->__anon1._renew.typeName, f, 0);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, " ");
-OutputTypeName(exp->__anon1._renew.typeName, f, 0x0);
+OutputTypeName(exp->__anon1._renew.typeName, f, 0);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, " ");
-OutputTypeName(exp->__anon1._renew.typeName, f, 0x0);
+OutputTypeName(exp->__anon1._renew.typeName, f, 0);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, "sizeof(");
-OutputTypeName(exp->__anon1.typeName, f, 0x0);
+OutputTypeName(exp->__anon1.typeName, f, 0);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, "__alignof__(");
-OutputTypeName(exp->__anon1.typeName, f, 0x0);
+OutputTypeName(exp->__anon1.typeName, f, 0);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, "__extension__ (");
if(exp->__anon1.initializer.typeName)
-OutputTypeName(exp->__anon1.initializer.typeName, f, 0x0);
+OutputTypeName(exp->__anon1.initializer.typeName, f, 0);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, "(");
-OutputTypeName(exp->__anon1.cast.typeName, f, 0x0);
+OutputTypeName(exp->__anon1.cast.typeName, f, 0);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, ", ");
-OutputTypeName(exp->__anon1.vaArg.typeName, f, 0x0);
+OutputTypeName(exp->__anon1.vaArg.typeName, f, 0);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
}
else
{
-PrintType(returnType, string, returnType->kind == 18 ? 0x1 : 0x0, 0x1);
+PrintType(returnType, string, returnType->kind == 18 ? 1 : 0, 1);
decl = SpecDeclFromString(string, specs, MkDeclaratorIdentifier(MkIdentifier("__ecereReturnVal")));
}
typeName = MkTypeName(specs, decl);
-InstDeclPassTypeName(typeName, 0x0);
-OutputTypeName(typeName, f, 0x0);
+InstDeclPassTypeName(typeName, 0);
+OutputTypeName(typeName, f, 0);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(f, ";");
FreeTypeName(typeName);
}
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, "__asm__ ");
if(stmt->__anon1.asmStmt.spec)
-OutputSpecifier(stmt->__anon1.asmStmt.spec, f, 0x0);
+OutputSpecifier(stmt->__anon1.asmStmt.spec, f, 0);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, " ");
for(spec = (*ptr->qualifiers).first; spec; spec = spec->next)
{
-OutputSpecifier(spec, f, 0x0);
+OutputSpecifier(spec, f, 0);
if(spec->next)
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
{
for(param = (*decl->__anon1.function.parameters).first; param; param = param->next)
{
-OutputTypeName(param, f, 0x0);
+OutputTypeName(param, f, 0);
if(param->next)
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, "subclass(");
-OutputSpecifier(spec->__anon1._class, f, 0x0);
+OutputSpecifier(spec->__anon1._class, f, 0);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
if(decl->__anon1.__anon1.specifiers)
{
-unsigned int inTypeDef = 0x0;
+unsigned int inTypeDef = 0;
for(spec = (*decl->__anon1.__anon1.specifiers).first; spec; spec = spec->next)
{
if(spec->type == 0 && spec->__anon1.specifier == TYPEDEF)
-inTypeDef = 0x1;
+inTypeDef = 1;
OutputSpecifier(spec, f, inTypeDef && !spec->next);
if(spec->next)
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
{
for(spec = (*decl->__anon1.__anon1.specifiers).first; spec; spec = spec->next)
{
-OutputSpecifier(spec, f, 0x0);
+OutputSpecifier(spec, f, 0);
if(spec->next)
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, " ");
-OutputSpecifier(decl->extStorage, f, 0x0);
+OutputSpecifier(decl->extStorage, f, 0);
}
break;
}
for(spec = (*func->specifiers).first; spec; spec = spec->next)
{
-OutputSpecifier(spec, f, 0x0);
+OutputSpecifier(spec, f, 0);
if(spec->next)
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
static void OutputInstance(struct Instantiation * inst, struct __ecereNameSpace__ecere__com__Instance * f)
{
if(inst->_class)
-OutputSpecifier(inst->_class, f, 0x0);
+OutputSpecifier(inst->_class, f, 0);
if(inst->exp)
{
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
for(spec = (*func->specifiers).first; spec; spec = spec->next)
{
-OutputSpecifier(spec, f, 0x0);
+OutputSpecifier(spec, f, 0);
if(spec->next)
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, const char * string))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, "class ");
-OutputSpecifier(_class->_class, f, 0x0);
+OutputSpecifier(_class->_class, f, 0);
if(_class->baseSpecs)
{
struct Specifier * spec;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Puts])(f, " : ");
for(spec = (*_class->baseSpecs).first; spec; spec = spec->next)
{
-OutputSpecifier(spec, f, 0x0);
+OutputSpecifier(spec, f, 0);
}
}
if(_class->definitions)
typeName->qualifiers = specs;
typeName->declarator = decl;
-OutputTypeName(typeName, f, 0x1);
+OutputTypeName(typeName, f, 1);
((typeName ? (__ecereClass_TypeName->Destructor ? __ecereClass_TypeName->Destructor((void *)typeName) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(typeName)) : 0), typeName = 0);
size = ((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = f;
static void AddSimpleBaseMembers(struct __ecereNameSpace__ecere__sys__OldList * list, struct __ecereNameSpace__ecere__com__Class * _class, struct __ecereNameSpace__ecere__com__Class * topClass)
{
if(_class->type != 1000)
-AddMembers(list, _class, 0x0, (((void *)0)), topClass, (((void *)0)));
+AddMembers(list, _class, 0, (((void *)0)), topClass, (((void *)0)));
}
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__NameSpace;
static unsigned int NameSpaceContained(struct __ecereNameSpace__ecere__com__NameSpace * ns, struct __ecereNameSpace__ecere__com__NameSpace * parent)
{
if(ns == parent)
-return 0x1;
+return 1;
else if((*ns).parent)
return NameSpaceContained((*ns).parent, parent);
else
-return 0x0;
+return 0;
}
extern void Compiler_Error(const char * format, ...);
exp->__anon1.member.member = exp->__anon1.__anon1.identifier;
exp->__anon1.member.exp = QMkExpId("this");
exp->__anon1.member.memberType = 3;
-exp->__anon1.member.thisPtr = 0x1;
+exp->__anon1.member.thisPtr = 1;
}
else
{
if(classSym && classSym->__anon1.registered && (classSym->__anon1.registered->type == 1 || classSym->__anon1.registered->type == 2 || classSym->__anon1.registered->type == 3))
{
if(inst->members && (*inst->members).count)
-symbol->needConstructor = 0x1;
+symbol->needConstructor = 1;
}
else
{
-symbol->needConstructor = 0x1;
-symbol->needDestructor = 0x1;
+symbol->needConstructor = 1;
+symbol->needDestructor = 1;
}
}
}
}
}
else if(def->type == 1)
-symbol->needConstructor = 0x1;
+symbol->needConstructor = 1;
else if(def->type == 4)
-symbol->needConstructor = 0x1;
+symbol->needConstructor = 1;
else if(def->type == 0)
{
struct ClassFunction * func = def->__anon1.function;
}
else
{
-symbol->needDestructor = 0x1;
+symbol->needDestructor = 1;
destructor = func;
if(!inCompiler && func->body)
{
}
else
{
-symbol->needConstructor = 0x1;
+symbol->needConstructor = 1;
constructor = func;
if(!inCompiler && func->body)
{
symbol->__anon2.__anon1.structExternal = external;
external->__anon1.declaration = MkDeclaration(specs, declarators);
after = external;
-symbol->declaredStruct = 0x1;
+symbol->declaredStruct = 1;
}
else
{
struct External * external;
strcpy(classDataStructName, "__ecereClassData_");
-FullClassNameCat(classDataStructName, symbol->string, 0x0);
+FullClassNameCat(classDataStructName, symbol->string, 0);
declMode = structDeclMode = 0;
ListAdd(specs, MkStructOrUnion(3, MkIdentifier(classDataStructName), classDataList));
external = MkExternalDeclaration(MkDeclaration(specs, (((void *)0))));
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert(defs, after, external);
after = external;
-symbol->classData = 0x1;
+symbol->classData = 1;
}
else
(__ecereNameSpace__ecere__com__eSystem_Delete(classDataList), classDataList = 0);
struct __ecereNameSpace__ecere__sys__OldList * specs = MkList(), * declarators = MkList();
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, symbol->string, 0x1);
+FullClassNameCat(className, symbol->string, 1);
symbol->className = __ecereNameSpace__ecere__sys__CopyString(className);
if(!strstr(sourceFile, ".main.ec"))
ListAdd(specs, MkSpecifier(STATIC));
struct __ecereNameSpace__ecere__sys__OldList * declarations = (((void *)0)), * statements;
strcpy(destructorName, "__ecereDestructor_");
-FullClassNameCat(destructorName, symbol->string, 0x0);
+FullClassNameCat(destructorName, symbol->string, 0);
symbol->destructorName = __ecereNameSpace__ecere__sys__CopyString(destructorName);
ListAdd(specs, MkSpecifier(VOID));
context = PushContext();
ProcessClassFunctionBody(function, body);
function->id = symbol->id;
function->idCode = symbol->idCode;
-function->dontMangle = 0x1;
+function->dontMangle = 1;
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert(definitions, (((void *)0)), MkClassDefFunction(function));
}
if(symbol->needConstructor && inCompiler)
struct __ecereNameSpace__ecere__sys__OldList * declarations = (((void *)0)), * statements;
strcpy(constructorName, "__ecereConstructor_");
-FullClassNameCat(constructorName, symbol->string, 0x0);
+FullClassNameCat(constructorName, symbol->string, 0);
symbol->constructorName = __ecereNameSpace__ecere__sys__CopyString(constructorName);
ListAdd(specs, MkSpecifierName("bool"));
context = PushContext();
newInst->exp = CopyExpression(inst->exp);
newInst->_class = CopySpecifier(inst->_class);
ListAdd(statements, MkExpressionStmt(MkListOne(MkExpInstance(newInst))));
-inst->built = 0x1;
+inst->built = 1;
}
if(inst->exp && (!classSym || !classSym->__anon1.registered || classSym->__anon1.registered->type == 0))
{
ProcessClassFunctionBody(function, body);
function->id = symbol->id;
function->idCode = symbol->idCode;
-function->dontMangle = 0x1;
+function->dontMangle = 1;
if(definitions != (((void *)0)))
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert(definitions, (((void *)0)), MkClassDefFunction(function));
}
if(propertyDef->getStmt && propertyDef->id)
{
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, symbol->string, 0x0);
+FullClassNameCat(name, symbol->string, 0);
strcat(name, "_Get_");
-FullClassNameCat(name, propertyDef->id->string, 0x1);
+FullClassNameCat(name, propertyDef->id->string, 1);
params = MkList();
if(propertyDef->symbol->type && propertyDef->symbol->type->kind == 8 && propertyDef->symbol->type->__anon1._class && propertyDef->symbol->type->__anon1._class->__anon1.registered && propertyDef->symbol->type->__anon1._class->__anon1.registered->type == 1)
{
ProcessClassFunctionBody(func, propertyDef->getStmt);
func->declarator->symbol = propertyDef->symbol;
propertyDef->symbol->__anon2.__anon2.externalGet = (struct External *)func;
-func->dontMangle = 0x1;
+func->dontMangle = 1;
newDef = MkClassDefFunction(func);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert(definitions, after, newDef);
after = newDef;
struct __ecereNameSpace__ecere__sys__OldList * specifiers = MkList();
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, symbol->string, 0x0);
+FullClassNameCat(name, symbol->string, 0);
strcat(name, "_Set_");
-FullClassNameCat(name, propertyDef->id->string, 0x1);
+FullClassNameCat(name, propertyDef->id->string, 1);
params = MkList();
ListAdd(params, MkTypeName(CopyList(propertyDef->specifiers, CopySpecifier), PlugDeclarator(propertyDef->declarator, MkDeclaratorIdentifier(MkIdentifier("value")))));
if(propertyDef->__anon1.isDBProp)
decl = MkDeclaratorFunction(MkDeclaratorIdentifier(MkIdentifier(name)), params);
{
unsigned int isConversion = propertyDef->symbol->__anon1._property && propertyDef->symbol->__anon1._property->conversion;
-unsigned int useVoid = 0x0;
+unsigned int useVoid = 0;
switch(regClass->type)
{
case 1:
case 6:
-useVoid = 0x1;
+useVoid = 1;
break;
case 5:
case 0:
}
func = MkClassFunction(specifiers, (((void *)0)), decl, (((void *)0)));
ProcessClassFunctionBody(func, propertyDef->setStmt);
-func->dontMangle = 0x1;
+func->dontMangle = 1;
func->declarator->symbol = propertyDef->symbol;
propertyDef->symbol->__anon2.__anon2.externalSet = (struct External *)func;
if(!propertyDef->__anon1.conversion && regClass->type == 0)
struct __ecereNameSpace__ecere__sys__OldList * specifiers = MkList();
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, symbol->string, 0x0);
+FullClassNameCat(name, symbol->string, 0);
strcat(name, "_IsSet_");
-FullClassNameCat(name, propertyDef->id->string, 0x1);
+FullClassNameCat(name, propertyDef->id->string, 1);
params = MkList();
decl = MkDeclaratorFunction(MkDeclaratorIdentifier(MkIdentifier(name)), params);
ListAdd(specifiers, MkSpecifierName("bool"));
func = MkClassFunction(specifiers, (((void *)0)), decl, (((void *)0)));
ProcessClassFunctionBody(func, propertyDef->issetStmt);
-func->dontMangle = 0x1;
+func->dontMangle = 1;
func->declarator->symbol = propertyDef->symbol;
propertyDef->symbol->__anon2.__anon2.externalIsSet = (struct External *)func;
newDef = MkClassDefFunction(func);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert((&*specifiers), (((void *)0)), MkSpecifier(STATIC));
ListAdd(specifiers, MkSpecifierName("Property"));
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, symbol->string, 0x0);
+FullClassNameCat(name, symbol->string, 0);
strcat(name, "_");
-FullClassNameCat(name, propertyDef->id->string, 0x1);
+FullClassNameCat(name, propertyDef->id->string, 1);
{
struct __ecereNameSpace__ecere__sys__OldList * list = MkList();
ListAdd(list, MkInitDeclarator(MkDeclaratorIdentifier(MkIdentifier(name)), (((void *)0))));
strcpy(name, "__ecerePropM_");
-FullClassNameCat(name, symbol->string, 0x0);
+FullClassNameCat(name, symbol->string, 0);
strcat(name, "_");
-FullClassNameCat(name, propertyDef->id->string, 0x1);
+FullClassNameCat(name, propertyDef->id->string, 1);
ListAdd(list, MkInitDeclarator(MkDeclaratorIdentifier(MkIdentifier(name)), (((void *)0))));
decl = MkDeclaration(specifiers, list);
}
struct Declarator * declId;
sprintf(name, "class::__ecereClassProp_");
-FullClassNameCat(name, symbol->string, 0x0);
+FullClassNameCat(name, symbol->string, 0);
strcat(name, "_Get_");
strcat(name, propertyDef->id->string);
params = MkList();
ProcessClassFunctionBody(func, propertyDef->getStmt);
func->declarator->symbol = propertyDef->symbol;
propertyDef->symbol->__anon2.__anon2.externalGet = (struct External *)func;
-func->dontMangle = 0x1;
+func->dontMangle = 1;
newDef = MkClassDefFunction(func);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert(definitions, after, newDef);
after = newDef;
func->type = ProcessType(propertyDef->specifiers, decl);
FreeDeclarator(decl);
if(func->type->__anon1.__anon2.returnType->kind == 8 && func->type->__anon1.__anon2.returnType->__anon1._class && func->type->__anon1.__anon2.returnType->__anon1._class->__anon1.registered && func->type->__anon1.__anon2.returnType->__anon1._class->__anon1.registered->type == 1)
-func->type->__anon1.__anon2.returnType->byReference = 0x1;
-func->type->__anon1.__anon2.returnType->passAsTemplate = 0x1;
+func->type->__anon1.__anon2.returnType->byReference = 1;
+func->type->__anon1.__anon2.returnType->passAsTemplate = 1;
if(inCompiler)
propertyDef->getStmt = (((void *)0));
else
struct Declarator * ptrDecl;
strcpy(name, "class::__ecereClassProp_");
-FullClassNameCat(name, symbol->string, 0x0);
+FullClassNameCat(name, symbol->string, 0);
strcat(name, "_Set_");
strcat(name, propertyDef->id->string);
params = MkList();
{
struct Symbol * sym = ptrDecl->symbol;
-sym->isParam = 0x1;
+sym->isParam = 1;
FreeType(sym->type);
sym->type = ProcessType(propertyDef->specifiers, propertyDef->declarator);
}
ListAdd(specifiers, MkSpecifier(VOID));
func = MkClassFunction(specifiers, (((void *)0)), decl, (((void *)0)));
ProcessClassFunctionBody(func, propertyDef->setStmt);
-func->dontMangle = 0x1;
+func->dontMangle = 1;
func->declarator->symbol = propertyDef->symbol;
propertyDef->symbol->__anon2.__anon2.externalSet = (struct External *)func;
newDef = MkClassDefFunction(func);
if(!NameSpaceContained(regClass->nameSpace, &((struct __ecereNameSpace__ecere__com__Module *)(((char *)regClass->module + structSize_Instance)))->privateNameSpace) && method->memberAccess == 1)
CheckPublicDataType(method->dataType, 1, "class method");
strcpy(newId, "__ecereMethod_");
-FullClassNameCat(newId, symbol->string, 0x0);
+FullClassNameCat(newId, symbol->string, 0);
strcat(newId, "_");
strcat(newId, id->string);
(__ecereNameSpace__ecere__com__eSystem_Delete(id->string), id->string = 0);
extern int propWatcherID;
-unsigned int buildingECERECOM = 0x0;
+unsigned int buildingECERECOM = 0;
void SetBuildingEcereCom(unsigned int b)
{
return buildingECERECOM;
}
-unsigned int buildingECERECOMModule = 0x0;
+unsigned int buildingECERECOMModule = 0;
void SetBuildingEcereComModule(unsigned int b)
{
symid += 2;
}
{
-function = _MkFunction(func->specifiers, func->declarator, (((void *)0)), 0x0);
+function = _MkFunction(func->specifiers, func->declarator, (((void *)0)), 0);
function->propSet = func->propSet;
function->type = func->type;
if(func->type)
struct __ecereNameSpace__ecere__com__ClassTemplateArgument * arg = FindTemplateArg(owningClass, method->dataType->__anon1.__anon2.thisClassTemplate);
type->byReference = method->dataType->byReference;
-methodDataType = ProcessTypeString(method->dataTypeString, 0x0);
+methodDataType = ProcessTypeString(method->dataTypeString, 0);
type->__anon1.__anon2.thisClass = methodDataType->__anon1.__anon2.thisClass = arg ? FindClass((*arg).__anon1.__anon1.dataTypeString) : (((void *)0));
}
}
else if(method->dataType->__anon1.__anon2.staticMethod)
-type->__anon1.__anon2.staticMethod = 0x1;
+type->__anon1.__anon2.staticMethod = 1;
else if(method->dataType->__anon1.__anon2.thisClass)
{
type->__anon1.__anon2.thisClass = method->dataType->__anon1.__anon2.thisClass;
if(!owningClass->symbol)
owningClass->symbol = FindClass(owningClass->fullName);
type->__anon1.__anon2.thisClass = owningClass->symbol;
-type->extraParam = 0x1;
+type->extraParam = 1;
}
}
yylloc = func->loc;
-if(!MatchTypes(type, methodDataType, (((void *)0)), owningClass, method->_class, 0x1, 0x1, 0x1, 0x0, 0x1))
+if(!MatchTypes(type, methodDataType, (((void *)0)), owningClass, method->_class, 1, 1, 1, 0, 1))
{
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "Incompatible virtual function %s\n", (((void *)0))), method->name);
}
sprintf(registerName, "__ecereRegisterModule_%s", moduleName);
declarator = MkDeclaratorFunction(MkDeclaratorIdentifier(MkIdentifier(registerName)), MkListOne(moduleParam));
{
-struct FunctionDefinition * function = _MkFunction(specifiers, declarator, (((void *)0)), 0x0);
+struct FunctionDefinition * function = _MkFunction(specifiers, declarator, (((void *)0)), 0);
ProcessFunctionBody(function, registerModuleBody);
function->declMode = 0;
sprintf(registerName, "__ecereUnregisterModule_%s", moduleName);
declarator = MkDeclaratorFunction(MkDeclaratorIdentifier(MkIdentifier(registerName)), MkListOne(moduleParam));
{
-struct FunctionDefinition * function = _MkFunction(specifiers, declarator, (((void *)0)), 0x0);
+struct FunctionDefinition * function = _MkFunction(specifiers, declarator, (((void *)0)), 0);
ProcessFunctionBody(function, unregisterModuleBody);
function->declMode = 0;
char dataMemberSize[16];
unsigned int lastOffset = 0;
int privateID = 0;
-unsigned int privateMembers = 0x0;
+unsigned int privateMembers = 0;
sprintf(dataMemberSize, "%d", (int)sizeof(struct __ecereNameSpace__ecere__com__DataMember *));
if(!isMember)
if(prop->Set)
{
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, regClass->fullName, 0x0);
+FullClassNameCat(name, regClass->fullName, 0);
strcat(name, "_Set_");
-FullClassNameCat(name, prop->name, 0x1);
+FullClassNameCat(name, prop->name, 1);
ListAdd(args, MkExpIdentifier(MkIdentifier(name)));
}
else
if(prop->Get)
{
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, regClass->fullName, 0x0);
+FullClassNameCat(name, regClass->fullName, 0);
strcat(name, "_Get_");
-FullClassNameCat(name, prop->name, 0x1);
+FullClassNameCat(name, prop->name, 1);
ListAdd(args, MkExpIdentifier(MkIdentifier(name)));
}
else
break;
}
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, regClass->fullName, 0x0);
+FullClassNameCat(name, regClass->fullName, 0);
strcat(name, "_");
-FullClassNameCat(name, prop->name, 0x1);
+FullClassNameCat(name, prop->name, 1);
stmt = MkExpressionStmt(MkListOne(MkExpOp(MkExpIdentifier(MkIdentifier(name)), '=', MkExpCall(MkExpIdentifier(MkIdentifier("eClass_AddProperty")), args))));
ListAdd(registerModuleBody->__anon1.compound.statements, stmt);
}
if(prop->Set)
{
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, regClass->fullName, 0x0);
+FullClassNameCat(name, regClass->fullName, 0);
strcat(name, "_Set_");
-FullClassNameCat(name, prop->name, 0x1);
+FullClassNameCat(name, prop->name, 1);
ListAdd(args, MkExpIdentifier(MkIdentifier(name)));
}
else
if(prop->Get)
{
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, regClass->fullName, 0x0);
+FullClassNameCat(name, regClass->fullName, 0);
strcat(name, "_Get_");
-FullClassNameCat(name, prop->name, 0x1);
+FullClassNameCat(name, prop->name, 1);
ListAdd(args, MkExpIdentifier(MkIdentifier(name)));
}
else
break;
}
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, regClass->fullName, 0x0);
+FullClassNameCat(name, regClass->fullName, 0);
strcat(name, "_");
-FullClassNameCat(name, prop->name, 0x1);
+FullClassNameCat(name, prop->name, 1);
strcpy(nameM, "__ecerePropM_");
-FullClassNameCat(nameM, regClass->fullName, 0x0);
+FullClassNameCat(nameM, regClass->fullName, 0);
strcat(nameM, "_");
-FullClassNameCat(nameM, prop->name, 0x1);
+FullClassNameCat(nameM, prop->name, 1);
if(prop->dataTypeString)
{
stmt = MkExpressionStmt(MkListOne(MkExpOp(MkExpIdentifier(MkIdentifier(nameM)), '=', MkExpCall(MkExpIdentifier(MkIdentifier("eClass_AddProperty")), args))));
char name[1024];
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, regClass->fullName, 0x1);
+FullClassNameCat(name, regClass->fullName, 1);
strcat(name, "_IsSet_");
-FullClassNameCat(name, prop->name, 0x0);
+FullClassNameCat(name, prop->name, 0);
stmt = MkExpressionStmt(MkListOne(MkExpOp(MkExpMember(MkExpIdentifier(MkIdentifier(nameM)), MkIdentifier("IsSet")), '=', MkExpCast(MkTypeName(MkListOne(MkSpecifier(VOID)), MkDeclaratorPointer(MkPointer((((void *)0)), (((void *)0))), (((void *)0)))), MkExpIdentifier(MkIdentifier(name))))));
ListAdd(registerModuleBody->__anon1.compound.statements, stmt);
}
ListAdd(args, MkExpIdentifier(MkIdentifier("privateAccess")));
stmt = MkExpressionStmt(MkListOne(MkExpCall(MkExpIdentifier(MkIdentifier(isMember ? "eMember_AddDataMember" : "eClass_AddDataMember")), args)));
ListAdd(statement->__anon1.compound.statements, stmt);
-privateMembers = 0x0;
+privateMembers = 0;
}
if(member->type == 0)
{
if(!member->dataType)
-member->dataType = ProcessTypeString(member->dataTypeString, 0x0);
+member->dataType = ProcessTypeString(member->dataTypeString, 0);
ComputeTypeSize(member->dataType);
args = MkList();
ListAdd(args, MkExpIdentifier(MkIdentifier(className)));
args = MkList();
ListAdd(args, MkExpIdentifier(MkIdentifier(className)));
ListAdd(args, MkExpIdentifier(MkIdentifier(memberName)));
-RegisterMembersAndProperties((struct __ecereNameSpace__ecere__com__Class *)member, 0x1, memberName, compound);
+RegisterMembersAndProperties((struct __ecereNameSpace__ecere__com__Class *)member, 1, memberName, compound);
if(isMember)
stmt = MkExpressionStmt(MkListOne(MkExpCall(MkExpIdentifier(MkIdentifier("eMember_AddMember")), args)));
else
}
}
else
-privateMembers = 0x1;
+privateMembers = 1;
}
if(!isMember)
{
char name[1024], nameM[1024];
strcpy(name, "__ecereProp_");
-FullClassNameCat(name, regClass->fullName, 0x1);
+FullClassNameCat(name, regClass->fullName, 1);
strcat(name, "_");
-FullClassNameCat(name, prop->name, 0x0);
+FullClassNameCat(name, prop->name, 0);
strcpy(nameM, "__ecerePropM_");
-FullClassNameCat(nameM, regClass->fullName, 0x1);
+FullClassNameCat(nameM, regClass->fullName, 1);
strcat(nameM, "_");
-FullClassNameCat(nameM, prop->name, 0x0);
+FullClassNameCat(nameM, prop->name, 0);
args = MkListOne(MkExpCondition(MkExpIdentifier(MkIdentifier(nameM)), MkListOne(MkExpIdentifier(MkIdentifier(nameM))), MkExpIdentifier(MkIdentifier(name))));
stmt = MkExpressionStmt(MkListOne(MkExpCall(MkExpIdentifier(MkIdentifier("eProperty_Watchable")), args)));
ListAdd(registerModuleBody->__anon1.compound.statements, stmt);
if(classProperty->Set)
{
strcpy(name, "__ecereClassProp_");
-FullClassNameCat(name, regClass->fullName, 0x1);
+FullClassNameCat(name, regClass->fullName, 1);
strcat(name, "_Set_");
strcat(name, classProperty->name);
ListAdd(args, MkExpIdentifier(MkIdentifier(name)));
if(classProperty->Get)
{
strcpy(name, "__ecereClassProp_");
-FullClassNameCat(name, regClass->fullName, 0x1);
+FullClassNameCat(name, regClass->fullName, 1);
strcat(name, "_Get_");
strcat(name, classProperty->name);
ListAdd(args, MkExpIdentifier(MkIdentifier(name)));
extern void ProcessExpressionType(struct Expression * exp);
-extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink;
+extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
-struct __ecereNameSpace__ecere__sys__NamedLink
+struct __ecereNameSpace__ecere__sys__NamedLink64
{
-struct __ecereNameSpace__ecere__sys__NamedLink * prev;
-struct __ecereNameSpace__ecere__sys__NamedLink * next;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * prev;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * next;
char * name;
-void * data;
+long long data;
} __attribute__ ((gcc_struct));
extern int strcmp(const char * , const char * );
extern void FreeExpContents(struct Expression * exp);
-extern char * PrintUInt(uint64 result);
+extern char * PrintInt64(long long result);
extern void ComputeExpression(struct Expression * exp);
extern struct Operand GetOperand(struct Expression * exp);
-extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, int value);
+extern void __ecereNameSpace__ecere__com__eEnum_AddFixedValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string, long long value);
-extern int __ecereNameSpace__ecere__com__eEnum_AddValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string);
+extern long long __ecereNameSpace__ecere__com__eEnum_AddValue(struct __ecereNameSpace__ecere__com__Class * _class, const char * string);
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__OldLink;
struct __ecereNameSpace__ecere__com__EnumClassData
{
struct __ecereNameSpace__ecere__sys__OldList values;
-int largest;
+long long largest;
} __attribute__ ((gcc_struct));
extern struct ClassFunction * MkClassFunction(struct __ecereNameSpace__ecere__sys__OldList * specifiers, struct Specifier * _class, struct Declarator * decl, struct __ecereNameSpace__ecere__sys__OldList * declList);
extern struct __ecereNameSpace__ecere__com__Class * __ecereNameSpace__ecere__com__eSystem_FindClass(struct __ecereNameSpace__ecere__com__Instance * module, const char * name);
+extern char * PrintUInt64(uint64 result);
+
extern char * StringFromSpecDecl(struct __ecereNameSpace__ecere__sys__OldList * specs, struct Declarator * decl);
extern size_t strlen(const char * );
extern struct MemberInit * MkMemberInit(struct __ecereNameSpace__ecere__sys__OldList * ids, struct Initializer * initializer);
-extern char * PrintUInt64(uint64 result);
-
extern struct Expression * MkExpInstance(struct Instantiation * inst);
extern struct Instantiation * MkInstantiation(struct Specifier * _class, struct Expression * exp, struct __ecereNameSpace__ecere__sys__OldList * members);
{
if(e->exp)
{
-struct Type * destType = (destType = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type), destType->kind = 3, destType->refCount = 1, destType);
+struct Type * destType = (destType = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type), destType->kind = 4, destType->refCount = 1, destType);
e->exp->destType = destType;
-parsingType = 0x1;
+parsingType = 1;
ProcessExpressionType(e->exp);
-parsingType = 0x0;
+parsingType = 0;
if(!e->exp->expType)
{
destType->kind = 8;
}
if(e->exp->type == 0 && e->exp->expType && e->exp->__anon1.__anon1.identifier && e->exp->__anon1.__anon1.identifier->string && e->exp->expType->kind == 15)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * l;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * l;
char * string = e->exp->__anon1.__anon1.identifier->string;
for(l = e->exp->expType->__anon1.__anon1.members.first; l; l = l->next)
{
FreeExpContents(e->exp);
e->exp->type = 2;
-e->exp->__anon1.__anon1.constant = PrintUInt((unsigned int)l->data);
+e->exp->__anon1.__anon1.constant = PrintInt64(l->data);
FreeType(e->exp->expType);
-e->exp->expType = ProcessTypeString("uint", 0x0);
+e->exp->expType = ProcessTypeString("int64", 0);
}
break;
}
if(e->exp->isConstant && e->exp->type == 2)
{
struct Operand op = GetOperand(e->exp);
-int value;
+long long value;
switch(op.kind)
{
case 1:
-value = op.__anon1.c;
+value = op.type->isSigned ? (long long)op.__anon1.c : (long long)op.__anon1.uc;
break;
case 2:
-value = op.__anon1.s;
+value = op.type->isSigned ? (long long)op.__anon1.s : (long long)op.__anon1.us;
break;
+case 4:
+value = op.type->isSigned ? op.__anon1.i64 : (long long)op.__anon1.ui64;
+break;
+case 3:
default:
-value = op.__anon1.i;
+value = op.type->isSigned ? (long long)op.__anon1.i : (int)op.__anon1.ui;
}
__ecereNameSpace__ecere__com__eEnum_AddFixedValue(regClass, e->id->string, value);
}
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*excludedSymbols), decl->symbol);
func->id = symbol->id;
func->idCode = symbol->idCode;
-func->dontMangle = 0x1;
+func->dontMangle = 1;
{
struct External * externalDecl = MkExternalDeclaration((((void *)0)));
struct Declaration * decl;
strcat(baseName, baseType->__anon1._class->string);
}
else
-PrintType(baseType, baseName, 0x0, 0x1);
+PrintType(baseType, baseName, 0, 1);
string = QMkString(baseName);
ListAdd(args, MkExpString(string));
(__ecereNameSpace__ecere__com__eSystem_Delete(string), string = 0);
char classDataStructName[1024];
strcpy(classDataStructName, "__ecereClassData_");
-FullClassNameCat(classDataStructName, symbol->string, 0x0);
+FullClassNameCat(classDataStructName, symbol->string, 0);
ListAdd(args, symbol->classData ? MkExpTypeSize(MkTypeName(MkListOne(MkStructOrUnion(3, MkIdentifier(classDataStructName), (((void *)0)))), (((void *)0)))) : MkExpConstant("0"));
}
if(regClass->type == 0 || regClass->type == 5)
break;
}
strcpy(name, "__ecereVMethodID_");
-FullClassNameCat(name, method->_class->fullName, 0x0);
+FullClassNameCat(name, method->_class->fullName, 0);
strcat(name, "_");
strcat(name, method->name);
exp = MkExpCall(MkExpIdentifier(MkIdentifier("eClass_AddVirtualMethod")), args);
ListAdd(registerModuleBody->__anon1.compound.statements, stmt);
}
}
-RegisterMembersAndProperties(regClass, 0x0, "class", registerModuleBody);
+RegisterMembersAndProperties(regClass, 0, "class", registerModuleBody);
if(classType == 4)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * value;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * value;
struct __ecereNameSpace__ecere__com__Class * enumClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "enum");
struct __ecereNameSpace__ecere__com__EnumClassData * e = (regClass ? ((void *)(((char *)regClass->data) + enumClass->offsetClass)) : (((void *)0)));
(__ecereNameSpace__ecere__com__eSystem_Delete(string), string = 0);
}
{
-char temp[1024];
+char * temp;
-sprintf(temp, "%d", (int)value->data);
+if(!strcmp(regClass->dataTypeString, "uint64"))
+temp = PrintUInt64(value->data);
+else
+temp = PrintInt64(value->data);
ListAdd(args, MkExpConstant(temp));
+(__ecereNameSpace__ecere__com__eSystem_Delete(temp), temp = 0);
}
stmt = MkExpressionStmt(MkListOne(MkExpCall(MkExpIdentifier(MkIdentifier("eEnum_AddFixedValue")), args)));
ListAdd(registerModuleBody->__anon1.compound.statements, stmt);
case 1:
{
char memberTypeString[132] = "TemplateMemberType::";
-unsigned int needClass = 0x1;
+unsigned int needClass = 1;
((const char * (*)(struct __ecereNameSpace__ecere__com__Class *, const void *, char * tempString, void * fieldData, unsigned int * needClass))__ecereClass___ecereNameSpace__ecere__com__TemplateMemberType->_vTbl[__ecereVMethodID_class_OnGetString])(__ecereClass___ecereNameSpace__ecere__com__TemplateMemberType, ¶m->__anon1.memberType, memberTypeString + strlen(memberTypeString), (((void *)0)), &needClass);
ListAdd(args, MkExpCast(MkTypeName(MkListOne(MkSpecifier(VOID)), MkDeclaratorPointer(MkPointer((((void *)0)), (((void *)0))), (((void *)0)))), MkExpIdentifier(MkIdentifier(memberTypeString))));
stmt = MkIfStmt(MkListOne(MkExpIdentifier(MkIdentifier("class"))), MkExpressionStmt(MkListOne(MkExpOp(MkExpMember(MkExpIdentifier(MkIdentifier("class")), MkIdentifier("fixed")), '=', MkExpConstant("1")))), (((void *)0)));
ListAdd(registerModuleBody->__anon1.compound.statements, stmt);
if(regClass)
-regClass->fixed = 0x1;
+regClass->fixed = 1;
}
else if(def->type == 8)
{
}
else if(external->type == 0)
{
-unsigned int setStaticMethod = 0x0;
+unsigned int setStaticMethod = 0;
if(external->symbol && !external->symbol->type->__anon1.__anon2.thisClass && !external->symbol->type->__anon1.__anon2.staticMethod)
{
-external->symbol->type->__anon1.__anon2.staticMethod = 0x1;
-setStaticMethod = 0x1;
+external->symbol->type->__anon1.__anon2.staticMethod = 1;
+setStaticMethod = 1;
}
if(inCompiler)
{
char type[1024] = "";
if(setStaticMethod)
-function->declarator->symbol->type->__anon1.__anon2.staticMethod = 0x0;
-PrintType(function->declarator->symbol->type, type, 0x1, 0x1);
+function->declarator->symbol->type->__anon1.__anon2.staticMethod = 0;
+PrintType(function->declarator->symbol->type, type, 1, 1);
if(setStaticMethod)
-function->declarator->symbol->type->__anon1.__anon2.staticMethod = 0x1;
+function->declarator->symbol->type->__anon1.__anon2.staticMethod = 1;
string = QMkString(type);
ListAdd(args, MkExpString(string));
(__ecereNameSpace__ecere__com__eSystem_Delete(string), string = 0);
if(external->symbol)
{
if(external->symbol->type && external->symbol->type->kind == 11 && !external->symbol->type->__anon1.__anon2.thisClass)
-external->symbol->type->__anon1.__anon2.staticMethod = 0x1;
+external->symbol->type->__anon1.__anon2.staticMethod = 1;
}
if(external->symbol && declaration->type == 1)
{
if(declaration->__anon1.__anon1.specifiers)
{
struct Specifier * specifier;
-unsigned int removeExternal = 0x0;
+unsigned int removeExternal = 0;
for(specifier = (*declaration->__anon1.__anon1.specifiers).first; specifier; specifier = specifier->next)
{
classType = 4;
else
classType = 1;
-removeExternal = 0x1;
+removeExternal = 1;
symbol->ctx = specifier->__anon1.__anon2.ctx;
specifier->__anon1.__anon2.ctx = (((void *)0));
ProcessClass(classType, specifier->__anon1.__anon2.definitions, symbol, specifier->__anon1.__anon2.baseSpecs, specifier->__anon1.__anon2.list, ast, external, declaration->declMode);
#define arch_PointerSize sizeof(void *)
#define structSize_Instance (_64BIT ? 24 : 12)
#define structSize_Module (_64BIT ? 560 : 300)
-#define structSize_NamedLink (_64BIT ? 32 : 16)
+#define structSize_NamedLink64 (_64BIT ? 32 : 24)
struct __ecereNameSpace__ecere__com__Instance;
struct __ecereNameSpace__ecere__com__Class * containerClass;
-unsigned int thisClassParams = 0x1;
+unsigned int thisClassParams = 1;
unsigned int internalValueCounter;
int count;
unsigned int backOutputLineNumbers = outputLineNumbers;
-outputLineNumbers = 0x0;
+outputLineNumbers = 0;
if(exp)
OutputExpression(exp, f);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, int pos, int mode))__extension__ ({
if(!param->baseType)
{
if(param->dataTypeString)
-param->baseType = ProcessTypeString(param->dataTypeString, 0x0);
+param->baseType = ProcessTypeString(param->dataTypeString, 0);
else
param->baseType = ProcessType(param->__anon1.dataType->specifiers, param->__anon1.dataType->decl);
}
unsigned int NeedCast(struct Type * type1, struct Type * type2)
{
if(!type1 || !type2 || type1->keepCast || type2->keepCast)
-return 0x1;
-if(type1->kind == 20 && type2->kind == 4 && type2->passAsTemplate == 0x0)
+return 1;
+if(type1->kind == 20 && type2->kind == 4 && type2->passAsTemplate == 0)
{
-return 0x0;
+return 0;
}
if(type1->kind == type2->kind)
{
case 22:
case 23:
if(type1->passAsTemplate && !type2->passAsTemplate)
-return 0x1;
+return 1;
return type1->isSigned != type2->isSigned;
case 8:
return type1->__anon1._class != type2->__anon1._class;
case 13:
return (type1->__anon1.type && type2->__anon1.type && type1->__anon1.type->constant != type2->__anon1.type->constant) || NeedCast(type1->__anon1.type, type2->__anon1.type);
default:
-return 0x1;
+return 1;
}
}
-return 0x1;
+return 1;
}
extern int strcmp(const char * , const char * );
exp->__anon1.member.member = id;
exp->__anon1.member.memberType = 0;
exp->__anon1.member.exp = QMkExpId("this");
-exp->addedThis = 0x1;
+exp->addedThis = 1;
}
else if(_class && _class->templateParams.first)
{
{
char temp[100];
+if(result > (((int)0x7fffffff)) || result < (((int)0x80000000)))
sprintf(temp, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "%I64dLL" : "%lldLL"), result);
+else
+sprintf(temp, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "%I64d" : "%lld"), result);
return __ecereNameSpace__ecere__sys__CopyString(temp);
}
{
char temp[100];
-if(result > (((long long)0x7fffffffffffffffLL)))
+if(result > (0xffffffff))
sprintf(temp, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "0x%I64XLL" : "0x%llXLL"), result);
+else if(result > (((int)0x7fffffff)))
+sprintf(temp, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "0x%I64X" : "0x%llX"), result);
else
-sprintf(temp, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "%I64dLL" : "%lldLL"), result);
+sprintf(temp, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "%I64d" : "%lld"), result);
return __ecereNameSpace__ecere__sys__CopyString(temp);
}
else if(op2->kind == 13)
*value2 = (int)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
struct Operand GetOperand(struct Expression * exp);
else if(op2->kind == 13)
*value2 = (unsigned int)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetUInt(struct Expression * exp, unsigned int * value2)
else if(op2->kind == 13)
*value2 = (long long)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetInt64(struct Expression * exp, long long * value2)
else if(op2->kind == 13)
*value2 = op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetUInt64(struct Expression * exp, uint64 * value2)
else if(op2->kind == 13)
*value2 = (intptr_t)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetIntPtr(struct Expression * exp, intptr_t * value2)
else if(op2->kind == 13)
*value2 = (uintptr_t)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetUIntPtr(struct Expression * exp, uintptr_t * value2)
else if(op2->kind == 13)
*value2 = (ssize_t)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetIntSize(struct Expression * exp, ssize_t * value2)
else if(op2->kind == 13)
*value2 = (size_t)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetUIntSize(struct Expression * exp, size_t * value2)
else if(op2->kind == 13)
*value2 = (short)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetShort(struct Expression * exp, short * value2)
else if(op2->kind == 13)
*value2 = (unsigned short)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetUShort(struct Expression * exp, unsigned short * value2)
else if(op2->kind == 13)
*value2 = (char)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetChar(struct Expression * exp, char * value2)
else if(op2->kind == 13)
*value2 = (unsigned char)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetUChar(struct Expression * exp, unsigned char * value2)
else if(op2->kind == 13)
*value2 = (float)(float)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetFloat(struct Expression * exp, float * value2)
else if(op2->kind == 13)
*value2 = (double)(double)op2->__anon1.ui64;
else
-return 0x0;
-return 0x1;
+return 0;
+return 1;
}
unsigned int GetDouble(struct Expression * exp, double * value2)
{
if(dataMember->type == 0 && dataMember->dataTypeString && !dataMember->dataType)
{
-dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0x0);
+dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0);
}
}
}
{
int alignment;
-ComputeClassMembers((struct __ecereNameSpace__ecere__com__Class *)dataMember, 0x1);
+ComputeClassMembers((struct __ecereNameSpace__ecere__com__Class *)dataMember, 1);
alignment = dataMember->structAlignment;
if(isMember)
{
deriv->offset = _class->structSize;
deriv->memberOffset = 0;
deriv->structSize = deriv->offset;
-ComputeClassMembers(deriv, 0x0);
+ComputeClassMembers(deriv, 0);
}
}
}
for(subModule = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->modules.first; subModule; subModule = subModule->next)
ComputeModuleClasses(subModule->data);
for(_class = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->classes.first; _class; _class = _class->next)
-ComputeClassMembers(_class, 0x0);
+ComputeClassMembers(_class, 0);
}
extern unsigned int inCompiler;
if(!size && type && !type->computing)
{
-type->computing = 0x1;
+type->computing = 1;
switch(type->kind)
{
case 24:
if(_class && _class->type == 1)
{
-ComputeClassMembers(_class, 0x0);
+ComputeClassMembers(_class, 0);
type->alignment = _class->structAlignment;
size = _class->structSize;
if(type->alignment && size % type->alignment)
else if(_class && (_class->type == 3 || _class->type == 4 || _class->type == 2))
{
if(!_class->dataType)
-_class->dataType = ProcessTypeString(_class->dataTypeString, 0x0);
+_class->dataType = ProcessTypeString(_class->dataTypeString, 0);
size = type->alignment = ComputeTypeSize(_class->dataType);
}
else
}
}
type->size = size;
-type->computing = 0x0;
+type->computing = 0;
}
return size;
}
struct Context * context = isMember ? (((void *)0)) : SetupTemplatesContext(_class);
if(addedPadding)
-*addedPadding = 0x0;
+*addedPadding = 0;
if(!isMember && _class->base)
{
maxSize = _class->structSize;
{
if(_class->type == 1 || _class->type == 5)
-AddMembers(declarations, _class->base, 0x0, &totalSize, topClass, (((void *)0)));
+AddMembers(declarations, _class->base, 0, &totalSize, topClass, (((void *)0)));
else
{
unsigned int baseSize = _class->base->templateClass ? _class->base->templateClass->structSize : _class->base->structSize;
{
struct Type * type = ProcessType(specs, decl);
-DeclareType(member->dataType, 0x0, 0x0);
+DeclareType(member->dataType, 0, 0);
FreeType(type);
}
ComputeTypeSize(member->dataType);
sprintf(id, "__anon%d", anonID++);
size = 0;
-AddMembers(list, (struct __ecereNameSpace__ecere__com__Class *)member, 0x1, &size, topClass, (((void *)0)));
+AddMembers(list, (struct __ecereNameSpace__ecere__com__Class *)member, 1, &size, topClass, (((void *)0)));
ListAdd(specs, MkStructOrUnion((member->type == 1) ? 4 : 3, (((void *)0)), list));
ListAdd(declarations, MkClassDefDeclaration(MkStructDeclaration(specs, MkListOne(MkDeclaratorIdentifier(MkIdentifier(id))), (((void *)0)))));
alignment = member->structAlignment;
sprintf(sizeString, "%d", maxSize - totalSize);
ListAdd(declarations, MkClassDefDeclaration(MkStructDeclaration(MkListOne(MkSpecifier(CHAR)), MkListOne(MkDeclaratorArray(MkDeclaratorIdentifier(MkIdentifier("__ecere_padding")), MkExpConstant(sizeString))), (((void *)0)))));
if(addedPadding)
-*addedPadding = 0x1;
+*addedPadding = 1;
}
}
if(context)
struct Context * context = isMember ? (((void *)0)) : SetupTemplatesContext(_class);
if(!isMember && (_class->type == 1 || _class->type == 5) && _class->base->type != 1000)
-DeclareMembers(_class->base, 0x0);
+DeclareMembers(_class->base, 0);
for(member = isMember ? topMember->members.first : _class->membersAndProperties.first; member; member = member->next)
{
if(!member->isProperty)
case 0:
{
if(!member->dataType && member->dataTypeString)
-member->dataType = ProcessTypeString(member->dataTypeString, 0x0);
+member->dataType = ProcessTypeString(member->dataTypeString, 0);
if(member->dataType)
-DeclareType(member->dataType, 0x0, 0x0);
+DeclareType(member->dataType, 0, 0);
break;
}
case 1:
case 2:
{
-DeclareMembers((struct __ecereNameSpace__ecere__com__Class *)member, 0x1);
+DeclareMembers((struct __ecereNameSpace__ecere__com__Class *)member, 1);
break;
}
}
if(decl && decl->__anon1.__anon1.specifiers)
{
struct Specifier * spec;
-unsigned int isStruct = 0x0;
+unsigned int isStruct = 0;
for(spec = (*decl->__anon1.__anon1.specifiers).first; spec; spec = spec->next)
{
{
if(spec->__anon1.__anon2.definitions)
IdentifyAnonStructs(spec->__anon1.__anon2.definitions);
-isStruct = 0x1;
+isStruct = 1;
}
}
if(isStruct)
}
return ;
}
-DeclareMembers(classSym->__anon1.registered, 0x0);
+DeclareMembers(classSym->__anon1.registered, 0);
structName[0] = (char)0;
-FullClassNameCat(structName, name, 0x0);
+FullClassNameCat(structName, name, 0);
if(external && external->__anon1.declaration && external->__anon1.declaration->__anon1.__anon1.specifiers)
{
for(spec = (*external->__anon1.declaration->__anon1.__anon1.specifiers).first; spec; spec = spec->next)
}
if(!skipNoHead && (!spec || !spec->__anon1.__anon2.definitions))
{
-unsigned int addedPadding = 0x0;
+unsigned int addedPadding = 0;
-classSym->declaredStructSym = 0x1;
+classSym->declaredStructSym = 1;
declarations = MkList();
-AddMembers(declarations, classSym->__anon1.registered, 0x0, (((void *)0)), classSym->__anon1.registered, &addedPadding);
+AddMembers(declarations, classSym->__anon1.registered, 0, (((void *)0)), classSym->__anon1.registered, &addedPadding);
if(!(*declarations).count || ((*declarations).count == 1 && addedPadding))
{
FreeList(declarations, FreeClassDef);
char className[1024];
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
external->symbol = classSym;
classSym->__anon2.__anon1.pointerExternal = external;
char className[1024];
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
classSym->__anon2.__anon1.structExternal = external;
DeclareClass(classSym, className);
external->symbol = classSym;
classSym->declaring++;
{
if(classSym->__anon1.registered)
-DeclareMembers(classSym->__anon1.registered, 0x0);
+DeclareMembers(classSym->__anon1.registered, 0);
}
if(classSym->__anon1.registered && (classSym->__anon1.registered->type == 1 || classSym->__anon1.registered->type == 5))
{
struct Symbol * symbol = prop->symbol;
strcpy(setName, "__ecereProp_");
-FullClassNameCat(setName, prop->_class->fullName, 0x0);
+FullClassNameCat(setName, prop->_class->fullName, 0);
strcat(setName, "_Set_");
-FullClassNameCat(setName, prop->name, 0x1);
+FullClassNameCat(setName, prop->name, 1);
strcpy(getName, "__ecereProp_");
-FullClassNameCat(getName, prop->_class->fullName, 0x0);
+FullClassNameCat(getName, prop->_class->fullName, 0);
strcat(getName, "_Get_");
-FullClassNameCat(getName, prop->name, 0x1);
+FullClassNameCat(getName, prop->name, 1);
if(prop->_class->type == 1)
-DeclareStruct(prop->_class->fullName, 0x0);
+DeclareStruct(prop->_class->fullName, 0);
if(!symbol || curExternal->symbol->idCode < symbol->id)
{
-unsigned int imported = 0x0;
-unsigned int dllImport = 0x0;
+unsigned int imported = 0;
+unsigned int dllImport = 0;
if(!symbol || symbol->_import)
{
symbol->_import = (struct ClassImport *)__extension__ ({
struct PropertyImport * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_PropertyImport);
-__ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(prop->name), __ecereInstance1->isVirtual = 0x0, __ecereInstance1->hasSet = prop->Set ? 0x1 : 0x0, __ecereInstance1->hasGet = prop->Get ? 0x1 : 0x0, __ecereInstance1;
+__ecereInstance1->name = __ecereNameSpace__ecere__sys__CopyString(prop->name), __ecereInstance1->isVirtual = 0, __ecereInstance1->hasSet = prop->Set ? 1 : 0, __ecereInstance1->hasGet = prop->Get ? 1 : 0, __ecereInstance1;
});
if(classSym)
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&classSym->_import->properties, symbol->_import);
}
-imported = 0x1;
+imported = 1;
if((prop->_class->module != privateModule || !strcmp(prop->_class->name, "float") || !strcmp(prop->_class->name, "double")) && ((struct __ecereNameSpace__ecere__com__Module *)(((char *)prop->_class->module + structSize_Instance)))->importType != 1)
-dllImport = 0x1;
+dllImport = 1;
}
if(!symbol->type)
{
struct Context * context = SetupTemplatesContext(prop->_class);
-symbol->type = ProcessTypeString(prop->dataTypeString, 0x0);
+symbol->type = ProcessTypeString(prop->dataTypeString, 0);
FinishTemplatesContext(context);
}
if(prop->Get)
struct Specifier * spec;
struct External * external;
struct Declarator * typeDecl;
-unsigned int simple = 0x0;
+unsigned int simple = 0;
specifiers = MkList();
declarators = MkList();
symbol->_class = classSym->__anon1.registered;
if(classSym->__anon1.registered && classSym->__anon1.registered->type == 1)
{
-DeclareStruct(spec->__anon1.__anon1.name, 0x0);
-simple = 0x1;
+DeclareStruct(spec->__anon1.__anon1.name, 0);
+simple = 1;
}
}
}
symbol->_class = classSym->__anon1.registered;
if(classSym->__anon1.registered && classSym->__anon1.registered->type == 1)
-DeclareStruct(spec->__anon1.__anon1.name, 0x0);
+DeclareStruct(spec->__anon1.__anon1.name, 0);
}
}
}
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert((&*specifiers), (((void *)0)), MkSpecifier(STATIC));
ListAdd(specifiers, MkSpecifierName("Property"));
strcpy(propName, "__ecereProp_");
-FullClassNameCat(propName, prop->_class->fullName, 0x0);
+FullClassNameCat(propName, prop->_class->fullName, 0);
strcat(propName, "_");
-FullClassNameCat(propName, prop->name, 0x1);
+FullClassNameCat(propName, prop->name, 1);
{
struct __ecereNameSpace__ecere__sys__OldList * list = MkList();
if(!imported)
{
strcpy(propName, "__ecerePropM_");
-FullClassNameCat(propName, prop->_class->fullName, 0x0);
+FullClassNameCat(propName, prop->_class->fullName, 0);
strcat(propName, "_");
-FullClassNameCat(propName, prop->name, 0x1);
+FullClassNameCat(propName, prop->name, 1);
ListAdd(list, MkInitDeclarator(MkDeclaratorPointer(MkPointer((((void *)0)), (((void *)0))), MkDeclaratorIdentifier(MkIdentifier(propName))), (((void *)0))));
}
decl = MkDeclaration(specifiers, list);
void ProcessMemberInitData(struct MemberInit * member, struct __ecereNameSpace__ecere__com__Class * _class, struct __ecereNameSpace__ecere__com__Class ** curClass, struct __ecereNameSpace__ecere__com__DataMember ** curMember, struct __ecereNameSpace__ecere__com__DataMember ** subMemberStack, int * subMemberStackPos)
{
struct Identifier * ident = member->identifiers ? (*member->identifiers).first : (((void *)0));
-unsigned int found = 0x0;
+unsigned int found = 0;
struct __ecereNameSpace__ecere__com__DataMember * dataMember = (((void *)0));
struct __ecereNameSpace__ecere__com__Method * method = (((void *)0));
-unsigned int freeType = 0x0;
+unsigned int freeType = 0;
yylloc = member->loc;
if(!ident)
__ecereNameSpace__ecere__com__eClass_FindNextMember(_class, curClass, curMember, subMemberStack, subMemberStackPos);
if(*curMember)
{
-found = 0x1;
+found = 1;
dataMember = *curMember;
}
}
memcpy(subMemberStack, _subMemberStack, sizeof(struct __ecereNameSpace__ecere__com__DataMember *) * _subMemberStackPos);
*subMemberStackPos = _subMemberStackPos;
}
-found = 0x1;
+found = 1;
}
else
{
method = __ecereNameSpace__ecere__com__eClass_FindMethod(_class, ident->string, privateModule);
if(method && method->type == 1)
-found = 0x1;
+found = 1;
else
method = (((void *)0));
}
{
struct Context * context = SetupTemplatesContext(_class);
-dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0x0);
+dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0);
FinishTemplatesContext(context);
}
type = dataMember->dataType;
{
unsigned int constant = type->constant;
-type = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0x0);
+type = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0);
if(type->kind == 8 && constant)
-type->constant = 0x1;
+type->constant = 1;
else if(type->kind == 13)
{
struct Type * t = type->__anon1.type;
if(constant)
t->constant = constant;
}
-freeType = 0x1;
+freeType = 1;
if(type && _class->templateClass)
-type->passAsTemplate = 0x1;
+type->passAsTemplate = 1;
if(type)
{
}
if(freeType)
FreeType(type);
-type = ProcessTypeString(templateString, 0x0);
-freeType = 0x1;
+type = ProcessTypeString(templateString, 0);
+freeType = 1;
FinishTemplatesContext(context);
}
}
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "unresolved symbol used as an instance method %s\n", (((void *)0))), expString);
}
}
-else if(!MatchTypes(member->initializer->__anon1.exp->expType, type, (((void *)0)), (((void *)0)), _class, 0x1, 0x1, 0x0, 0x0, 0x1))
+else if(!MatchTypes(member->initializer->__anon1.exp->expType, type, (((void *)0)), (((void *)0)), _class, 1, 1, 0, 0, 1))
{
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "incompatible instance method %s\n", (((void *)0))), ident->string);
}
classSym = inst->_class->__anon1.__anon1.symbol;
_class = classSym ? classSym->__anon1.registered : (((void *)0));
if(!_class || _class->type != 5)
-DeclareStruct(inst->_class->__anon1.__anon1.name, 0x0);
+DeclareStruct(inst->_class->__anon1.__anon1.name, 0);
afterExternal = afterExternal ? afterExternal : curExternal;
if(inst->exp)
ProcessExpressionType(inst->exp);
-inst->isConstant = 0x1;
+inst->isConstant = 1;
if(inst->members)
{
struct __ecereNameSpace__ecere__com__DataMember * curMember = (((void *)0));
char number[16];
strcpy(name, "__ecereInstMeth_");
-FullClassNameCat(name, _class ? _class->fullName : "_UNKNOWNCLASS", 0x0);
+FullClassNameCat(name, _class ? _class->fullName : "_UNKNOWNCLASS", 0);
strcat(name, "_");
strcat(name, nameID->string);
strcat(name, "_");
symbol->type->__anon1.__anon2.thisClass = _class->symbol;
}
}
-DeclareType(symbol->type, 0x1, 0x1);
+DeclareType(symbol->type, 1, 1);
}
else if(classSym)
{
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "couldn't find virtual method %s in class %s\n", (((void *)0))), unmangled, classSym->string);
}
}
-createdExternal = ProcessClassFunction(classSym ? classSym->__anon1.registered : (((void *)0)), members->__anon1.function, ast, afterExternal, 0x1);
+createdExternal = ProcessClassFunction(classSym ? classSym->__anon1.registered : (((void *)0)), members->__anon1.function, ast, afterExternal, 1);
if(nameID)
{
FreeSpecifier(nameID->_class);
{
ProcessMemberInitData(member, classSym->__anon1.registered, &curClass, &curMember, subMemberStack, &subMemberStackPos);
if(member->initializer && !member->initializer->isConstant)
-inst->isConstant = 0x0;
+inst->isConstant = 0;
}
yylloc = oldyyloc;
}
if(declareParams)
{
for(param = type->__anon1.__anon2.params.first; param; param = param->next)
-DeclareType(param, declarePointers, 0x1);
+DeclareType(param, declarePointers, 1);
}
-DeclareType(type->__anon1.__anon2.returnType, declarePointers, 0x1);
+DeclareType(type->__anon1.__anon2.returnType, declarePointers, 1);
}
else if(type->kind == 13 && declarePointers)
-DeclareType(type->__anon1.type, declarePointers, 0x0);
+DeclareType(type->__anon1.type, declarePointers, 0);
else if(type->kind == 8)
{
if(type->__anon1._class->__anon1.registered && (type->__anon1._class->__anon1.registered->type == 1 || type->__anon1._class->__anon1.registered->type == 5) && !type->__anon1._class->declaring)
struct Type * member;
for(member = type->__anon1.__anon1.members.first; member; member = member->next)
-DeclareType(member, 0x0, 0x0);
+DeclareType(member, 0, 0);
}
else if(type->kind == 12)
-DeclareType(type->__anon1.__anon4.arrayType, declarePointers, 0x0);
+DeclareType(type->__anon1.__anon4.arrayType, declarePointers, 0);
}
}
{
struct Context * context = PushContext();
-context->templateTypesOnly = 0x1;
+context->templateTypesOnly = 1;
if(_class->symbol && ((struct Symbol *)_class->symbol)->templateParams)
{
struct TemplateParameter * param = (*((struct Symbol *)_class->symbol)->templateParams).first;
{
struct Context * context = SetupTemplatesContext(method->_class);
-method->dataType = ProcessTypeString(method->dataTypeString, 0x0);
+method->dataType = ProcessTypeString(method->dataTypeString, 0);
FinishTemplatesContext(context);
if(method->type != 1 && method->dataType)
{
{
struct Context * context = SetupTemplatesContext(prop->_class);
-prop->dataType = ProcessTypeString(prop->dataTypeString, 0x0);
+prop->dataType = ProcessTypeString(prop->dataTypeString, 0);
FinishTemplatesContext(context);
}
}
if(!symbol || (!symbol->__anon2.__anon1.pointerExternal && method->type == 1) || symbol->id > (curExternal ? curExternal->symbol->idCode : -1))
{
-unsigned int dllImport = 0x0;
+unsigned int dllImport = 0;
if(!method->dataType)
-method->dataType = ProcessTypeString(method->dataTypeString, 0x0);
+method->dataType = ProcessTypeString(method->dataTypeString, 0);
if(!symbol || symbol->_import || method->type == 1)
{
if(!symbol || method->type == 1)
if(!method->dataType->dllExport)
{
if((method->_class->module != privateModule || !strcmp(method->_class->name, "float") || !strcmp(method->_class->name, "double")) && ((struct __ecereNameSpace__ecere__com__Module *)(((char *)method->_class->module + structSize_Instance)))->importType != 1)
-dllImport = 0x1;
+dllImport = 1;
}
}
if(method->type != 1 && method->dataType)
-DeclareType(method->dataType, 0x1, 0x1);
+DeclareType(method->dataType, 1, 1);
if(!symbol->__anon2.__anon1.pointerExternal || symbol->__anon2.__anon1.pointerExternal->type == 0)
{
struct Declaration * decl;
{
if(thisClassParams && _class->templateParams.count && !_class->templateClass)
{
-unsigned int first = 0x1;
+unsigned int first = 1;
int p = 0;
struct __ecereNameSpace__ecere__com__ClassTemplateParameter * param;
int lastParam = -1;
strcat(className, " = ");
}
strcat(className, param->name);
-first = 0x0;
+first = 0;
lastParam = p;
}
p++;
if(thisClassParams && _class->templateParams.count && !_class->templateClass)
{
-unsigned int first = 0x1;
+unsigned int first = 1;
int p = 0;
struct __ecereNameSpace__ecere__com__ClassTemplateParameter * param;
int lastParam = -1;
strcat(className, " = ");
}
strcat(className, param->name);
-first = 0x0;
+first = 0;
lastParam = p;
}
p++;
if(curExternal && (!symbol || symbol->id > curExternal->symbol->idCode))
{
-unsigned int imported = 0x0;
-unsigned int dllImport = 0x0;
+unsigned int imported = 0;
+unsigned int dllImport = 0;
if(!function->dataType)
{
-function->dataType = ProcessTypeString(function->dataTypeString, 0x0);
+function->dataType = ProcessTypeString(function->dataTypeString, 0);
if(!function->dataType->__anon1.__anon2.thisClass)
-function->dataType->__anon1.__anon2.staticMethod = 0x1;
+function->dataType->__anon1.__anon2.staticMethod = 1;
}
if(inCompiler)
{
}
}
{
-symbol->type = ProcessTypeString(function->dataTypeString, 0x0);
+symbol->type = ProcessTypeString(function->dataTypeString, 0);
if(!symbol->type->__anon1.__anon2.thisClass)
-symbol->type->__anon1.__anon2.staticMethod = 0x1;
+symbol->type->__anon1.__anon2.staticMethod = 1;
}
}
-imported = symbol->_import ? 0x1 : 0x0;
+imported = symbol->_import ? 1 : 0;
if(imported && function->module != privateModule && ((struct __ecereNameSpace__ecere__com__Module *)(((char *)function->module + structSize_Instance)))->importType != 1)
-dllImport = 0x1;
+dllImport = 1;
}
-DeclareType(function->dataType, 0x1, 0x1);
+DeclareType(function->dataType, 1, 1);
if(inCompiler)
{
if(!symbol->__anon2.__anon1.pointerExternal || symbol->__anon2.__anon1.pointerExternal->type == 0)
symbol->id = curExternal->symbol->idCode;
}
}
-return (symbol && symbol->_import && function->module != privateModule && ((struct __ecereNameSpace__ecere__com__Module *)(((char *)function->module + structSize_Instance)))->importType != 1) ? 0x1 : 0x0;
+return (symbol && symbol->_import && function->module != privateModule && ((struct __ecereNameSpace__ecere__com__Module *)(((char *)function->module + structSize_Instance)))->importType != 1) ? 1 : 0;
}
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_GlobalData;
symbol = data->symbol = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
}
if(!data->dataType)
-data->dataType = ProcessTypeString(data->dataTypeString, 0x0);
-DeclareType(data->dataType, 0x1, 0x1);
+data->dataType = ProcessTypeString(data->dataTypeString, 0);
+DeclareType(data->dataType, 1, 1);
if(inCompiler)
{
if(!symbol->__anon2.__anon1.pointerExternal)
static unsigned int CheckConstCompatibility(struct Type * source, struct Type * dest, unsigned int warn)
{
-unsigned int status = 0x1;
+unsigned int status = 1;
if(((source->kind == 8 && source->__anon1._class && source->__anon1._class->__anon1.registered) || source->kind == 12 || source->kind == 13) && ((dest->kind == 8 && dest->__anon1._class && dest->__anon1._class->__anon1.registered) || dest->kind == 13))
{
destType = destType->__anon1.type;
if(!destType->constant && sourceType->constant)
{
-status = 0x0;
+status = 0;
if(warn)
Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "discarding const qualifier\n", (((void *)0))));
}
if(source && dest)
{
if(warnConst)
-CheckConstCompatibility(source, dest, 0x1);
+CheckConstCompatibility(source, dest, 1);
if(source->kind == 20 && dest->kind != 20)
{
struct Type * type = ProcessTemplateParameterType(source->__anon1.templateParameter);
if(dest->classObjectType == 2 && dest->kind != 11)
{
if(source->classObjectType != 3)
-return 0x1;
+return 1;
else
{
if((dest->__anon1._class && strcmp(dest->__anon1._class->string, "class")) || (source->__anon1._class && strcmp(source->__anon1._class->string, "class")))
{
-return 0x1;
+return 1;
}
}
}
else
{
if(source->kind != 11 && source->classObjectType == 3)
-return 0x1;
+return 1;
if(dest->kind != 11 && dest->classObjectType == 3 && source->classObjectType != 2)
-return 0x1;
+return 1;
}
if((dest->kind == 9 && source->kind == 9) || (dest->kind == 10 && source->kind == 10))
{
if((dest->__anon1.__anon1.enumName && source->__anon1.__anon1.enumName && !strcmp(dest->__anon1.__anon1.enumName, source->__anon1.__anon1.enumName)) || (source->__anon1.__anon1.members.first && source->__anon1.__anon1.members.first == dest->__anon1.__anon1.members.first))
-return 0x1;
+return 1;
}
if(dest->kind == 14 && source->kind != 0)
-return 0x1;
+return 1;
if(dest->kind == 13 && dest->__anon1.type->kind == 0 && ((source->kind == 8 && (!source->__anon1._class || !source->__anon1._class->__anon1.registered || source->__anon1._class->__anon1.registered->type == 1 || source->__anon1._class->__anon1.registered->type == 0 || source->__anon1._class->__anon1.registered->type == 5 || source->__anon1._class->__anon1.registered->type == 1000)) || source->kind == 19 || source->kind == 13 || source->kind == 12 || source->kind == 11 || source->kind == 21))
-return 0x1;
+return 1;
if(!isConversionExploration && source->kind == 13 && source->__anon1.type->kind == 0 && ((dest->kind == 8 && (!dest->__anon1._class || !dest->__anon1._class->__anon1.registered || dest->__anon1._class->__anon1.registered->type == 1 || dest->__anon1._class->__anon1.registered->type == 0 || dest->__anon1._class->__anon1.registered->type == 5 || dest->__anon1._class->__anon1.registered->type == 1000)) || dest->kind == 19 || dest->kind == 13 || dest->kind == 12 || dest->kind == 11 || dest->kind == 21))
-return 0x1;
+return 1;
if(((source->kind == 8 && dest->kind == 8) || (source->kind == 19 && dest->kind == 19)) && source->__anon1._class)
{
if(source->__anon1._class->__anon1.registered && source->__anon1._class->__anon1.registered->type == 3)
if(conversions != (((void *)0)))
{
if(source->__anon1._class->__anon1.registered == dest->__anon1._class->__anon1.registered)
-return 0x1;
+return 1;
}
else
{
for(destBase = dest->__anon1._class->__anon1.registered; destBase && destBase->base->type != 1000; destBase = destBase->base)
;
if(sourceBase == destBase)
-return 0x1;
+return 1;
}
}
else if(source->__anon1._class && dest->__anon1._class && (dest->classObjectType == source->classObjectType || !dest->classObjectType) && (enumBaseType || (!source->__anon1._class->__anon1.registered || source->__anon1._class->__anon1.registered->type != 4) || (!dest->__anon1._class->__anon1.registered || dest->__anon1._class->__anon1.registered->type != 4)) && __ecereNameSpace__ecere__com__eClass_IsDerived(source->__anon1._class->__anon1.registered, dest->__anon1._class->__anon1.registered))
-return 0x1;
+return 1;
else
{
if(enumBaseType && dest->__anon1._class && dest->__anon1._class->__anon1.registered && dest->__anon1._class->__anon1.registered->type == 4 && ((source->__anon1._class && source->__anon1._class->__anon1.registered && source->__anon1._class->__anon1.registered->type != 4) || source->kind == 8))
{
if(__ecereNameSpace__ecere__com__eClass_IsDerived(dest->__anon1._class->__anon1.registered, source->__anon1._class->__anon1.registered))
{
-return 0x1;
+return 1;
}
}
}
}
if(source->kind == 19 && dest->kind == 8 && dest->__anon1._class && !strcmp(dest->__anon1._class->string, "ecere::com::Class"))
-return 0x1;
+return 1;
if(doConversion)
{
if(source->kind == 8)
struct Conversion * after = (conversions != (((void *)0))) ? conversions->last : (((void *)0));
if(!convert->dataType)
-convert->dataType = ProcessTypeString(convert->dataTypeString, 0x0);
-if((!isConversionExploration || convert->dataType->kind == 8 || !strcmp(_class->name, "String")) && MatchTypes(convert->dataType, dest, conversions, (((void *)0)), (((void *)0)), (convert->dataType->kind == 8 && !strcmp(convert->dataTypeString, "String")) ? 0x1 : 0x0, convert->dataType->kind == 8, 0x0, 0x1, warnConst))
+convert->dataType = ProcessTypeString(convert->dataTypeString, 0);
+if((!isConversionExploration || convert->dataType->kind == 8 || !strcmp(_class->name, "String")) && MatchTypes(convert->dataType, dest, conversions, (((void *)0)), (((void *)0)), (convert->dataType->kind == 8 && !strcmp(convert->dataTypeString, "String")) ? 1 : 0, convert->dataType->kind == 8, 0, 1, warnConst))
{
if(!conversions && !convert->Get)
-return 0x1;
+return 1;
else if(conversions != (((void *)0)))
{
if(_class->type == 3 && convert->dataType->kind == 8 && convert->dataType->__anon1._class && convert->dataType->__anon1._class->__anon1.registered && _class->base == convert->dataType->__anon1._class->__anon1.registered->base && (dest->kind != 8 || dest->__anon1._class->__anon1.registered != _class->base))
-return 0x1;
+return 1;
else
{
-struct Conversion * conv = (conv = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Conversion), conv->convert = convert, conv->isGet = 0x1, conv);
+struct Conversion * conv = (conv = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Conversion), conv->convert = convert, conv->isGet = 1, conv);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert(conversions, after, conv);
-return 0x1;
+return 1;
}
}
}
if(convert->memberAccess == 1 || _class->module == privateModule)
{
struct Type * constType = (((void *)0));
-unsigned int success = 0x0;
+unsigned int success = 0;
if(!convert->dataType)
-convert->dataType = ProcessTypeString(convert->dataTypeString, 0x0);
+convert->dataType = ProcessTypeString(convert->dataTypeString, 0);
if(warnConst && convert->dataType->kind == 13 && convert->dataType->__anon1.type && dest->constant)
{
struct Type * ptrType = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
__ecereInstance1->kind = 13, __ecereInstance1->refCount = 1, __ecereInstance1->__anon1.type = ptrType, __ecereInstance1;
});
CopyTypeInto(ptrType, convert->dataType->__anon1.type);
-ptrType->constant = 0x1;
+ptrType->constant = 1;
}
-if((constType || convert->dataType != dest) && MatchTypes(source, constType ? constType : convert->dataType, conversions, (((void *)0)), (((void *)0)), 0x1, 0x0, 0x0, 0x1, warnConst))
+if((constType || convert->dataType != dest) && MatchTypes(source, constType ? constType : convert->dataType, conversions, (((void *)0)), (((void *)0)), 1, 0, 0, 1, warnConst))
{
if(!conversions && !convert->Set)
-success = 0x1;
+success = 1;
else if(conversions != (((void *)0)))
{
if(_class->type == 3 && convert->dataType->kind == 8 && convert->dataType->__anon1._class && convert->dataType->__anon1._class->__anon1.registered && _class->base == convert->dataType->__anon1._class->__anon1.registered->base && (source->kind != 8 || source->__anon1._class->__anon1.registered != _class->base))
-success = 0x1;
+success = 1;
else
{
struct Conversion * conv = (conv = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Conversion), conv->convert = convert, conv);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(conversions, conv);
-success = 0x1;
+success = 1;
}
}
}
if(constType)
FreeType(constType);
if(success)
-return 0x1;
+return 1;
}
}
}
if(enumBaseType && dest->__anon1._class && dest->__anon1._class->__anon1.registered && dest->__anon1._class->__anon1.registered->type == 4)
{
if(!dest->__anon1._class->__anon1.registered->dataType)
-dest->__anon1._class->__anon1.registered->dataType = ProcessTypeString(dest->__anon1._class->__anon1.registered->dataTypeString, 0x0);
+dest->__anon1._class->__anon1.registered->dataType = ProcessTypeString(dest->__anon1._class->__anon1.registered->dataTypeString, 0);
if(dest->__anon1._class->__anon1.registered->dataType->kind == 8 || source->truth || dest->truth)
{
-if(MatchTypes(source, dest->__anon1._class->__anon1.registered->dataType, conversions, (((void *)0)), (((void *)0)), 0x1, dest->__anon1._class->__anon1.registered->dataType->kind == 8, 0x0, 0x0, warnConst))
+if(MatchTypes(source, dest->__anon1._class->__anon1.registered->dataType, conversions, (((void *)0)), (((void *)0)), 1, dest->__anon1._class->__anon1.registered->dataType->kind == 8, 0, 0, warnConst))
{
-return 0x1;
+return 1;
}
}
}
struct Conversion * after = (conversions != (((void *)0))) ? conversions->last : (((void *)0));
if(!convert->dataType)
-convert->dataType = ProcessTypeString(convert->dataTypeString, 0x0);
-if(convert->dataType != source && (!isConversionExploration || convert->dataType->kind == 8 || !strcmp(_class->name, "String")) && MatchTypes(convert->dataType, dest, conversions, (((void *)0)), (((void *)0)), convert->dataType->kind == 8, convert->dataType->kind == 8, 0x0, 0x1, warnConst))
+convert->dataType = ProcessTypeString(convert->dataTypeString, 0);
+if(convert->dataType != source && (!isConversionExploration || convert->dataType->kind == 8 || !strcmp(_class->name, "String")) && MatchTypes(convert->dataType, dest, conversions, (((void *)0)), (((void *)0)), convert->dataType->kind == 8, convert->dataType->kind == 8, 0, 1, warnConst))
{
if(!conversions && !convert->Get)
-return 0x1;
+return 1;
else if(conversions != (((void *)0)))
{
if(_class->type == 3 && convert->dataType->kind == 8 && convert->dataType->__anon1._class && convert->dataType->__anon1._class->__anon1.registered && _class->base == convert->dataType->__anon1._class->__anon1.registered->base && (dest->kind != 8 || dest->__anon1._class->__anon1.registered != _class->base))
-return 0x1;
+return 1;
else
{
-struct Conversion * conv = (conv = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Conversion), conv->convert = convert, conv->isGet = 0x1, conv);
+struct Conversion * conv = (conv = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Conversion), conv->convert = convert, conv->isGet = 1, conv);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert(conversions, after, conv);
-return 0x1;
+return 1;
}
}
}
if(enumBaseType && source->__anon1._class && source->__anon1._class->__anon1.registered && source->__anon1._class->__anon1.registered->type == 4)
{
if(!source->__anon1._class->__anon1.registered->dataType)
-source->__anon1._class->__anon1.registered->dataType = ProcessTypeString(source->__anon1._class->__anon1.registered->dataTypeString, 0x0);
+source->__anon1._class->__anon1.registered->dataType = ProcessTypeString(source->__anon1._class->__anon1.registered->dataTypeString, 0);
if(!isConversionExploration || source->__anon1._class->__anon1.registered->dataType->kind == 8 || !strcmp(source->__anon1._class->__anon1.registered->name, "String"))
{
-if(MatchTypes(source->__anon1._class->__anon1.registered->dataType, dest, conversions, (((void *)0)), (((void *)0)), source->__anon1._class->__anon1.registered->dataType->kind == 8, source->__anon1._class->__anon1.registered->dataType->kind == 8, 0x0, 0x0, warnConst))
-return 0x1;
-else if(MatchTypes(dest, source->__anon1._class->__anon1.registered->dataType, (((void *)0)), (((void *)0)), (((void *)0)), 0x0, 0x0, 0x0, 0x0, warnConst))
-return 0x1;
+if(MatchTypes(source->__anon1._class->__anon1.registered->dataType, dest, conversions, (((void *)0)), (((void *)0)), source->__anon1._class->__anon1.registered->dataType->kind == 8, source->__anon1._class->__anon1.registered->dataType->kind == 8, 0, 0, warnConst))
+return 1;
+else if(MatchTypes(dest, source->__anon1._class->__anon1.registered->dataType, (((void *)0)), (((void *)0)), (((void *)0)), 0, 0, 0, 0, warnConst))
+return 1;
}
}
}
if(source->kind == 8 || source->kind == 19)
;
else if(dest->kind == source->kind && (dest->kind != 9 && dest->kind != 10 && dest->kind != 11 && dest->kind != 12 && dest->kind != 13 && dest->kind != 16))
-return 0x1;
+return 1;
else if(dest->kind == 7 && source->kind == 6)
-return 0x1;
+return 1;
else if(dest->kind == 2 && (source->kind == 1 || source->kind == 24))
-return 0x1;
+return 1;
else if(dest->kind == 3 && (source->kind == 2 || source->kind == 1 || source->kind == 24 || source->kind == 23))
-return 0x1;
+return 1;
else if(dest->kind == 4 && (source->kind == 2 || source->kind == 1 || source->kind == 24 || source->kind == 3 || source->kind == 22 || source->kind == 23))
-return 0x1;
+return 1;
else if(dest->kind == 22 && (source->kind == 2 || source->kind == 1 || source->kind == 24 || source->kind == 3 || source->kind == 23 || source->kind == 4))
-return 0x1;
+return 1;
else if(dest->kind == 23 && (source->kind == 2 || source->kind == 1 || source->kind == 24 || source->kind == 3 || source->kind == 4 || source->kind == 22))
-return 0x1;
+return 1;
else if(source->kind == 15 && (dest->kind == 3 || dest->kind == 2 || dest->kind == 1 || source->kind == 24 || dest->kind == 5 || dest->kind == 4 || dest->kind == 22 || dest->kind == 23))
-return 0x1;
+return 1;
else if(dest->kind == 15 && !isConversionExploration && (source->kind == 3 || source->kind == 2 || source->kind == 1 || source->kind == 24 || source->kind == 5 || source->kind == 4 || source->kind == 22 || source->kind == 23))
-return 0x1;
+return 1;
else if((dest->kind == 11 || (dest->kind == 13 && dest->__anon1.type->kind == 11) || dest->kind == 16) && ((source->kind == 11 || (source->kind == 13 && source->__anon1.type->kind == 11) || source->kind == 16)))
{
struct Type * paramSource, * paramDest;
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "method class must be derived from %s\n", (((void *)0))), paramDest->__anon1._class->string);
else
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "method class should not take an object\n", (((void *)0))));
-return 0x0;
+return 0;
}
paramDest = paramDest->next;
}
if(!paramSource || paramSource->kind != 8 || !__ecereNameSpace__ecere__com__eClass_IsDerived(paramSource->__anon1._class->__anon1.registered, dest->__anon1.__anon2.thisClass->__anon1.registered))
{
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "method class must be derived from %s\n", (((void *)0))), dest->__anon1.__anon2.thisClass->string);
-return 0x0;
+return 0;
}
}
else
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "%s expected to be derived from method class\n", (((void *)0))), owningClassDest->fullName);
else
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "overriding class expected to be derived from method class\n", (((void *)0))));
-return 0x0;
+return 0;
}
}
paramSource = paramSource->next;
if(!__ecereNameSpace__ecere__com__eClass_IsDerived(source->__anon1.__anon2.thisClass ? source->__anon1.__anon2.thisClass->__anon1.registered : owningClassSource, dest->__anon1.__anon2.thisClass->__anon1.registered))
{
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "method class must be derived from %s\n", (((void *)0))), dest->__anon1.__anon2.thisClass->string);
-return 0x0;
+return 0;
}
}
else
if(source->__anon1.__anon2.thisClass && source->__anon1.__anon2.thisClass->__anon1.registered && owningClassDest && !__ecereNameSpace__ecere__com__eClass_IsDerived(source->__anon1.__anon2.thisClass->__anon1.registered, owningClassDest))
{
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "%s expected to be derived from method class\n", (((void *)0))), source->__anon1.__anon2.thisClass->__anon1.registered->fullName);
-return 0x0;
+return 0;
}
}
}
}
-if(!MatchTypes(source->__anon1.__anon2.returnType, dest->__anon1.__anon2.returnType, (((void *)0)), (((void *)0)), (((void *)0)), 0x1, 0x1, 0x0, 0x0, warnConst))
+if(!MatchTypes(source->__anon1.__anon2.returnType, dest->__anon1.__anon2.returnType, (((void *)0)), (((void *)0)), (((void *)0)), 1, 1, 0, 0, warnConst))
{
Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "incompatible return type for function\n", (((void *)0))));
-return 0x0;
+return 0;
}
else
-CheckConstCompatibility(dest->__anon1.__anon2.returnType, source->__anon1.__anon2.returnType, 0x1);
+CheckConstCompatibility(dest->__anon1.__anon2.returnType, source->__anon1.__anon2.returnType, 1);
for(; paramDest; paramDest = paramDest->next)
{
if(!paramSource)
{
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "not enough parameters\n", (((void *)0))));
-return 0x0;
+return 0;
}
{
struct Type * paramDestType = paramDest;
{
struct __ecereNameSpace__ecere__com__ClassTemplateArgument arg = owningClassSource->templateArgs[id];
-paramDestType = type = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0x0);
+paramDestType = type = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0);
}
}
-if(!MatchTypes(paramDestType, paramSourceType, (((void *)0)), (((void *)0)), (((void *)0)), 0x1, 0x1, 0x0, 0x0, warnConst) && (!acceptReversedParams || !MatchTypes(paramSourceType, paramDestType, (((void *)0)), (((void *)0)), (((void *)0)), 0x1, 0x1, 0x0, 0x0, warnConst)))
+if(!MatchTypes(paramDestType, paramSourceType, (((void *)0)), (((void *)0)), (((void *)0)), 1, 1, 0, 0, warnConst) && (!acceptReversedParams || !MatchTypes(paramSourceType, paramDestType, (((void *)0)), (((void *)0)), (((void *)0)), 1, 1, 0, 0, warnConst)))
{
char type[1024];
type[0] = (char)0;
-PrintType(paramDest, type, 0x0, 0x1);
+PrintType(paramDest, type, 0, 1);
Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "incompatible parameter %s (expected %s)\n", (((void *)0))), paramSource->name, type);
if(paramDestType != paramDest)
FreeType(paramDestType);
-return 0x0;
+return 0;
}
if(paramDestType != paramDest)
FreeType(paramDestType);
if(paramSource)
{
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "too many parameters\n", (((void *)0))));
-return 0x0;
+return 0;
}
-return 0x1;
+return 1;
}
else if((dest->kind == 11 || (dest->kind == 13 && dest->__anon1.type->kind == 11) || dest->kind == 16) && (source->kind == 13 && source->__anon1.type->kind == 0))
{
-return 0x1;
+return 1;
}
else if((dest->kind == 13 || dest->kind == 12) && (source->kind == 12 || source->kind == 13))
{
-if(MatchTypes(source->__anon1.type, dest->__anon1.type, (((void *)0)), (((void *)0)), (((void *)0)), 0x1, 0x1, 0x0, 0x0, warnConst))
-return 0x1;
+if(MatchTypes(source->__anon1.type, dest->__anon1.type, (((void *)0)), (((void *)0)), (((void *)0)), 1, 1, 0, 0, warnConst))
+return 1;
}
}
-return 0x0;
+return 0;
}
static void FreeConvert(struct Conversion * convert)
struct __ecereNameSpace__ecere__com__EnumClassData
{
struct __ecereNameSpace__ecere__sys__OldList values;
-int largest;
+long long largest;
} __attribute__ ((gcc_struct));
-extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink;
+extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__NamedLink64;
-struct __ecereNameSpace__ecere__sys__NamedLink
+struct __ecereNameSpace__ecere__sys__NamedLink64
{
-struct __ecereNameSpace__ecere__sys__NamedLink * prev;
-struct __ecereNameSpace__ecere__sys__NamedLink * next;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * prev;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * next;
char * name;
-void * data;
+long long data;
} __attribute__ ((gcc_struct));
extern void FreeExpContents(struct Expression * exp);
if(!_class->symbol)
_class->symbol = FindClass(_class->fullName);
type->__anon1._class = _class->symbol;
-if(MatchTypes(type, dest, &converts, (((void *)0)), (((void *)0)), 0x1, 0x0, 0x0, 0x0, 0x0))
+if(MatchTypes(type, dest, &converts, (((void *)0)), (((void *)0)), 1, 0, 0, 0, 0))
{
-struct __ecereNameSpace__ecere__sys__NamedLink * value;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * value;
struct __ecereNameSpace__ecere__com__Class * enumClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "enum");
if(enumClass)
{
FreeExpContents(sourceExp);
FreeType(sourceExp->expType);
-sourceExp->isConstant = 0x1;
+sourceExp->isConstant = 1;
sourceExp->expType = MkClassType(baseClass->fullName);
{
char constant[256];
sourceExp->type = 2;
-if(!strcmp(baseClass->dataTypeString, "int"))
-sprintf(constant, "%d", (int)value->data);
+if(!strcmp(baseClass->dataTypeString, "int") || !strcmp(baseClass->dataTypeString, "int64") || !strcmp(baseClass->dataTypeString, "short") || !strcmp(baseClass->dataTypeString, "char"))
+sprintf(constant, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "%I64d" : "%lld"), value->data);
else
-sprintf(constant, "0x%X", (int)value->data);
+sprintf(constant, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "0x%I64XLL" : "0x%llXLL"), value->data);
sourceExp->__anon1.__anon1.constant = __ecereNameSpace__ecere__sys__CopyString(constant);
}
while(converts.first)
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(conversions, convert);
}
((type ? (__ecereClass_Type->Destructor ? __ecereClass_Type->Destructor((void *)type) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(type)) : 0), type = 0);
-return 0x1;
+return 1;
}
}
}
}
for(nameSpace = (struct __ecereNameSpace__ecere__com__NameSpace *)__ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_first(&nameSpace->nameSpaces); nameSpace != (((void *)0)); nameSpace = (struct __ecereNameSpace__ecere__com__NameSpace *)__ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_next(((struct __ecereNameSpace__ecere__sys__BTNode *)nameSpace)))
if(MatchWithEnums_NameSpace(nameSpace, sourceExp, dest, string, conversions))
-return 0x1;
-return 0x0;
+return 1;
+return 0;
}
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__SubModule;
struct __ecereNameSpace__ecere__com__SubModule * subModule;
if(searchFor == searchIn)
-return 0x1;
+return 1;
for(subModule = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)searchIn + structSize_Instance)))->modules.first; subModule; subModule = subModule->next)
{
if(subModule->importMode == 1 || searchIn == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)searchIn + structSize_Instance)))->application)
{
if(ModuleVisibility(subModule->module, searchFor))
-return 0x1;
+return 1;
}
}
-return 0x0;
+return 0;
}
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Application;
struct __ecereNameSpace__ecere__com__Instance * module;
if(MatchWithEnums_NameSpace(&((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)mainModule + structSize_Instance)))->application + structSize_Module)))->systemNameSpace, sourceExp, dest, string, conversions))
-return 0x1;
+return 1;
if(MatchWithEnums_NameSpace(&((struct __ecereNameSpace__ecere__com__Module *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)mainModule + structSize_Instance)))->application + structSize_Instance)))->privateNameSpace, sourceExp, dest, string, conversions))
-return 0x1;
+return 1;
if(MatchWithEnums_NameSpace(&((struct __ecereNameSpace__ecere__com__Module *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)mainModule + structSize_Instance)))->application + structSize_Instance)))->publicNameSpace, sourceExp, dest, string, conversions))
-return 0x1;
+return 1;
for(module = ((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)mainModule + structSize_Instance)))->application + structSize_Module)))->allModules.first; module; module = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->next)
{
if(ModuleVisibility(mainModule, module) && MatchWithEnums_NameSpace(&((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->publicNameSpace, sourceExp, dest, string, conversions))
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
extern struct Expression * CopyExpression(struct Expression * exp);
computedExp = sourceExp;
}
FreeType(dest);
-return 0x1;
+return 1;
}
if(!skipUnitBla && source && dest && source->kind == 8 && dest->kind == 8)
{
computedExp = sourceExp;
}
FreeType(dest);
-return 0x1;
+return 1;
}
}
}
if(source)
{
struct __ecereNameSpace__ecere__sys__OldList * specs;
-unsigned int flag = 0x0;
+unsigned int flag = 0;
long long value = (((int)0x7fffffff));
source->refCount++;
source = __extension__ ({
struct Type * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
-__ecereInstance1->kind = 3, __ecereInstance1->isSigned = 0x0, __ecereInstance1->refCount = 1, __ecereInstance1;
+__ecereInstance1->kind = 3, __ecereInstance1->isSigned = 0, __ecereInstance1->refCount = 1, __ecereInstance1;
});
}
if(dest->kind == 8)
tempType->__anon1._class = _class->symbol;
tempType->truth = dest->truth;
if(tempType->__anon1._class)
-MatchTypes(tempSource, tempDest, conversions, (((void *)0)), (((void *)0)), 0x1, 0x1, 0x0, 0x0, warnConst);
+MatchTypes(tempSource, tempDest, conversions, (((void *)0)), (((void *)0)), 1, 1, 0, 0, warnConst);
backupSourceExpType = sourceExp->expType;
sourceExp->expType = dest;
dest->refCount++;
-flag = 0x1;
+flag = 1;
((tempType ? (__ecereClass_Type->Destructor ? __ecereClass_Type->Destructor((void *)tempType) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(tempType)) : 0), tempType = 0);
}
}
if(_class && _class->type == 2 && source->kind != 8)
{
if(!dest->__anon1._class->__anon1.registered->dataType)
-dest->__anon1._class->__anon1.registered->dataType = ProcessTypeString(dest->__anon1._class->__anon1.registered->dataTypeString, 0x0);
-if(MatchTypes(source, dest->__anon1._class->__anon1.registered->dataType, conversions, (((void *)0)), (((void *)0)), 0x1, 0x1, 0x0, 0x0, warnConst))
+dest->__anon1._class->__anon1.registered->dataType = ProcessTypeString(dest->__anon1._class->__anon1.registered->dataTypeString, 0);
+if(MatchTypes(source, dest->__anon1._class->__anon1.registered->dataType, conversions, (((void *)0)), (((void *)0)), 1, 1, 0, 0, warnConst))
{
FreeType(source);
FreeType(sourceExp->expType);
FreeType(dest);
if(backupSourceExpType)
FreeType(backupSourceExpType);
-return 0x1;
+return 1;
}
}
else if(source->kind == 8)
struct Type * tempDest, * tempSource;
if(!source->__anon1._class->__anon1.registered->dataType)
-source->__anon1._class->__anon1.registered->dataType = ProcessTypeString(source->__anon1._class->__anon1.registered->dataTypeString, 0x0);
+source->__anon1._class->__anon1.registered->dataType = ProcessTypeString(source->__anon1._class->__anon1.registered->dataTypeString, 0);
for(; _class->base->type != 1000; _class = _class->base)
;
tempDest = source;
tempType->truth = source->truth;
tempType->classObjectType = source->classObjectType;
if(tempType->__anon1._class)
-MatchTypes(tempSource, tempDest, conversions, (((void *)0)), (((void *)0)), 0x1, 0x1, 0x0, 0x0, warnConst);
+MatchTypes(tempSource, tempDest, conversions, (((void *)0)), (((void *)0)), 1, 1, 0, 0, warnConst);
if(conversions->last)
{
((struct Conversion *)conversions->last)->resultType = dest;
sourceExp->expType->refCount++;
}
if(!_class->dataType)
-_class->dataType = ProcessTypeString(_class->dataTypeString, 0x0);
+_class->dataType = ProcessTypeString(_class->dataTypeString, 0);
FreeType(dest);
dest = MkClassType(source->__anon1._class->string);
dest->truth = source->truth;
}
if(!flag)
{
-if(MatchTypes(source, dest, conversions, (((void *)0)), (((void *)0)), 0x1, 0x1, 0x0, 0x0, warnConst))
+if(MatchTypes(source, dest, conversions, (((void *)0)), (((void *)0)), 1, 1, 0, 0, warnConst))
{
FreeType(source);
FreeType(dest);
-return 0x1;
+return 1;
}
}
if(dest->kind == 8)
{
struct __ecereNameSpace__ecere__com__Class * _class = dest->__anon1._class ? dest->__anon1._class->__anon1.registered : (((void *)0));
-unsigned int fittingValue = 0x0;
+unsigned int fittingValue = 0;
if(_class && _class->type == 4)
{
struct __ecereNameSpace__ecere__com__EnumClassData * c = (_class ? ((void *)(((char *)_class->data) + enumClass->offsetClass)) : (((void *)0)));
if(c && value >= 0 && value <= c->largest)
-fittingValue = 0x1;
+fittingValue = 1;
}
if(_class && !dest->truth && (_class->type == 3 || fittingValue || (_class->type != 1 && !value && source->kind == 3) || _class->type == 2))
{
FreeType(dest);
if(backupSourceExpType)
FreeType(backupSourceExpType);
-return 0x1;
+return 1;
}
if(!_class->dataType)
-_class->dataType = ProcessTypeString(_class->dataTypeString, 0x0);
+_class->dataType = ProcessTypeString(_class->dataTypeString, 0);
FreeType(dest);
dest = _class->dataType;
dest->refCount++;
FreeType(sourceExp->expType);
sourceExp->expType = backupSourceExpType;
}
-return 0x0;
+return 0;
}
}
else if(dest->kind == 7 && (source->kind == 7 || source->kind == 6 || source->kind == 4 || source->kind == 3 || source->kind == 15 || source->kind == 2 || source->kind == 24 || source->kind == 1))
FreeType(sourceExp->expType);
sourceExp->expType = backupSourceExpType;
}
-return 0x0;
+return 0;
}
if(!flag && !sourceExp->opDestType)
{
FreeType(source);
if(backupSourceExpType)
FreeType(backupSourceExpType);
-return 0x1;
+return 1;
}
else
{
{
for(; _class && _class->type == 4; _class = _class->base)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * value;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * value;
struct __ecereNameSpace__ecere__com__EnumClassData * e = (_class ? ((void *)(((char *)_class->data) + enumClass->offsetClass)) : (((void *)0)));
for(value = e->values.first; value; value = value->next)
{
FreeExpContents(sourceExp);
FreeType(sourceExp->expType);
-sourceExp->isConstant = 0x1;
+sourceExp->isConstant = 1;
sourceExp->expType = MkClassType(_class->fullName);
{
-char constant[256];
-
sourceExp->type = 2;
-if(_class->dataTypeString && !strcmp(_class->dataTypeString, "int"))
-sprintf(constant, "%d", (int)value->data);
+if(_class->dataTypeString && (!strcmp(_class->dataTypeString, "int") || !strcmp(_class->dataTypeString, "int64") || !strcmp(_class->dataTypeString, "short") || !strcmp(_class->dataTypeString, "char")))
+sourceExp->__anon1.__anon1.constant = PrintInt64(value->data);
else
-sprintf(constant, "0x%X", (int)value->data);
-sourceExp->__anon1.__anon1.constant = __ecereNameSpace__ecere__sys__CopyString(constant);
+sourceExp->__anon1.__anon1.constant = PrintUInt64(value->data);
}
FreeType(dest);
-return 0x1;
+return 1;
}
}
}
if(dest->classObjectType != 2 && dest->kind == 8 && MatchWithEnums_Module(privateModule, sourceExp, dest, id->string, conversions))
{
FreeType(dest);
-return 0x1;
+return 1;
}
}
FreeType(dest);
}
-return 0x0;
+return 0;
}
static unsigned int IntAdd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntAdd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Add(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Add(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortAdd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortAdd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharAdd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharAdd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatAdd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleAdd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntSub(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntSub(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Sub(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Sub(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortSub(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortSub(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharSub(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharSub(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatSub(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleSub(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntMul(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntMul(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Mul(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Mul(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortMul(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortMul(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharMul(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharMul(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatMul(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleMul(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntDiv(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntDiv(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Div(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Div(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortDiv(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortDiv(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharDiv(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharDiv(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatDiv(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleDiv(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntMod(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntMod(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Mod(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Mod(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortMod(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortMod(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharMod(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharMod(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntNeg(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntNeg(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Neg(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Neg(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortNeg(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortNeg(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharNeg(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharNeg(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatNeg(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleNeg(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntInc(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntInc(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Inc(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Inc(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortInc(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortInc(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharInc(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharInc(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatInc(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleInc(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntDec(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntDec(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Dec(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Dec(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortDec(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortDec(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharDec(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharDec(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatDec(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleDec(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Asign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Asign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntAddAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntAddAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64AddAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64AddAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortAddAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortAddAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharAddAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharAddAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatAddAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleAddAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntSubAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntSubAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64SubAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64SubAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortSubAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortSubAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharSubAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharSubAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatSubAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleSubAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntMulAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntMulAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64MulAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64MulAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortMulAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortMulAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharMulAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharMulAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatMulAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleMulAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntDivAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntDivAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64DivAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64DivAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortDivAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortDivAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharDivAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharDivAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatDivAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleDivAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntModAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntModAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64ModAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64ModAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortModAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortModAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharModAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharModAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntBitAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntBitAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64BitAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64BitAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortBitAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortBitAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharBitAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharBitAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntBitOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntBitOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64BitOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64BitOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortBitOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortBitOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharBitOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharBitOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntBitXor(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntBitXor(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64BitXor(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64BitXor(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortBitXor(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortBitXor(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharBitXor(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharBitXor(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntLShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntLShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64LShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64LShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortLShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortLShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharLShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharLShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntRShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntRShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64RShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64RShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortRShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortRShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharRShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharRShift(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntBitNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntBitNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64BitNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64BitNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortBitNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortBitNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharBitNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharBitNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntAndAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntAndAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64AndAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64AndAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortAndAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortAndAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharAndAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharAndAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntOrAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntOrAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64OrAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64OrAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortOrAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortOrAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharOrAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharOrAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntXorAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntXorAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64XorAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64XorAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortXorAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortXorAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharXorAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharXorAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntLShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntLShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64LShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64LShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortLShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortLShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharLShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharLShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntRShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntRShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64RShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64RShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortRShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortRShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharRShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharRShiftAsign(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Not(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Not(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharNot(struct Expression * exp, struct Operand * op1)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Equ(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Equ(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntNqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntNqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Nqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Nqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortNqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortNqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharNqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharNqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatNqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleNqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64And(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64And(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleAnd(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Or(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Or(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleOr(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntGrt(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntGrt(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Grt(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Grt(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortGrt(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortGrt(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharGrt(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharGrt(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatGrt(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleGrt(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntSma(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntSma(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Sma(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Sma(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortSma(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortSma(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharSma(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharSma(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatSma(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleSma(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntGrtEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntGrtEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64GrtEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64GrtEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortGrtEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortGrtEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharGrtEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharGrtEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatGrtEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleGrtEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntSmaEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntSmaEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64SmaEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64SmaEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortSmaEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortSmaEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharSmaEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharSmaEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int FloatSmaEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int DoubleSmaEqu(struct Expression * exp, struct Operand * op1, struct Operand * op2)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int IntCond(struct Expression * exp, struct Operand * op1, struct Operand * op2, struct Operand * op3)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UIntCond(struct Expression * exp, struct Operand * op1, struct Operand * op2, struct Operand * op3)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int Int64Cond(struct Expression * exp, struct Operand * op1, struct Operand * op2, struct Operand * op3)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UInt64Cond(struct Expression * exp, struct Operand * op1, struct Operand * op2, struct Operand * op3)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int ShortCond(struct Expression * exp, struct Operand * op1, struct Operand * op2, struct Operand * op3)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UShortCond(struct Expression * exp, struct Operand * op1, struct Operand * op2, struct Operand * op3)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int CharCond(struct Expression * exp, struct Operand * op1, struct Operand * op2, struct Operand * op3)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
static unsigned int UCharCond(struct Expression * exp, struct Operand * op1, struct Operand * op2, struct Operand * op3)
if(op1->type)
op1->type->refCount++;
}
-return 0x1;
+return 1;
}
struct OpTable intOps =
{
int len = strlen(string);
int c, d = 0;
-unsigned int quoted = 0x0, escaped = 0x0;
+unsigned int quoted = 0, escaped = 0;
for(c = 0; c < len; c++)
{
output[d] = ch;
}
d++;
-escaped = 0x0;
+escaped = 0;
}
else
{
if(ch == '\"')
-quoted ^= 0x1;
+quoted ^= 1;
else if(quoted)
{
if(ch == '\\')
-escaped = 0x1;
+escaped = 1;
else
output[d++] = ch;
}
while(type->kind == 8 && type->__anon1._class->__anon1.registered && (type->__anon1._class->__anon1.registered->type == 2 || type->__anon1._class->__anon1.registered->type == 3 || type->__anon1._class->__anon1.registered->type == 4))
{
if(!type->__anon1._class->__anon1.registered->dataType)
-type->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type->__anon1._class->__anon1.registered->dataTypeString, 0x0);
+type->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type->__anon1._class->__anon1.registered->dataTypeString, 0);
type = type->__anon1._class->__anon1.registered->dataType;
}
if(exp->type == 3 && op.kind == 13)
else if(exp->isConstant && exp->type == 2)
{
op.kind = type->kind;
-op.type = exp->expType;
+op.type = type;
switch(op.kind)
{
case 24:
return op;
}
+static long long GetEnumValue(struct __ecereNameSpace__ecere__com__Class * _class, void * ptr)
+{
+long long v = 0;
+
+switch(_class->typeSize)
+{
+case 8:
+if(!strcmp(_class->dataTypeString, "uint64"))
+v = (long long)*(uint64 *)ptr;
+else
+v = *(long long *)ptr;
+break;
+case 4:
+if(!strcmp(_class->dataTypeString, "uint"))
+v = (long long)*(unsigned int *)ptr;
+else
+v = (long long)*(int *)ptr;
+break;
+case 2:
+if(!strcmp(_class->dataTypeString, "uint16"))
+v = (long long)*(unsigned short *)ptr;
+else
+v = (long long)*(short *)ptr;
+break;
+case 1:
+if(!strcmp(_class->dataTypeString, "byte"))
+v = (long long)*(unsigned char *)ptr;
+else
+v = (long long)*(char *)ptr;
+break;
+}
+return v;
+}
+
int __ecereVMethodID_class_OnGetString;
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass_int;
exp->loc = member->loc = inst->loc;
((struct Identifier *)(*member->identifiers).first)->loc = inst->loc;
if(!dataMember->dataType)
-dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0x0);
+dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0);
type = dataMember->dataType;
if(type->kind == 8)
{
if(enumClass)
{
struct __ecereNameSpace__ecere__com__EnumClassData * e = (_class ? ((void *)(((char *)_class->data) + enumClass->offsetClass)) : (((void *)0)));
-struct __ecereNameSpace__ecere__sys__NamedLink * item;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * item;
for(item = e->values.first; item; item = item->next)
{
-if((int)item->data == *(int *)ptr)
+if(item->data == GetEnumValue(_class, ptr))
{
result = item->name;
break;
if(_class->type == 4 || _class->type == 3 || _class->type == 2)
{
if(!_class->dataType)
-_class->dataType = ProcessTypeString(_class->dataTypeString, 0x0);
+_class->dataType = ProcessTypeString(_class->dataTypeString, 0);
type = _class->dataType;
}
}
exp->loc = member->loc = inst->loc;
((struct Identifier *)(*member->identifiers).first)->loc = inst->loc;
if(!dataMember->dataType)
-dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0x0);
+dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0);
type = dataMember->dataType;
if(type->kind == 8)
{
if(enumClass)
{
struct __ecereNameSpace__ecere__com__EnumClassData * e = (_class ? ((void *)(((char *)_class->data) + enumClass->offsetClass)) : (((void *)0)));
-struct __ecereNameSpace__ecere__sys__NamedLink * item;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * item;
for(item = e->values.first; item; item = item->next)
{
-if((int)item->data == *(int *)ptr)
+if(item->data == GetEnumValue(_class, ptr))
{
result = item->name;
break;
if(_class->type == 4 || _class->type == 3 || _class->type == 2)
{
if(!_class->dataType)
-_class->dataType = ProcessTypeString(_class->dataTypeString, 0x0);
+_class->dataType = ProcessTypeString(_class->dataTypeString, 0);
type = _class->dataType;
}
}
for(member = (*members->__anon1.dataMembers).first; member; member = member->next)
{
struct Identifier * ident = member->identifiers ? (*member->identifiers).first : (((void *)0));
-unsigned int found = 0x0;
+unsigned int found = 0;
struct __ecereNameSpace__ecere__com__Property * prop = (((void *)0));
struct __ecereNameSpace__ecere__com__DataMember * dataMember = (((void *)0));
unsigned int dataMemberOffset;
if(_class->type == 0)
dataMemberOffset += _class->base->structSize;
}
-found = 0x1;
+found = 1;
}
}
else
prop = __ecereNameSpace__ecere__com__eClass_FindProperty(_class, ident->string, privateModule);
if(prop)
{
-found = 0x1;
+found = 1;
if(prop->memberAccess == 1)
{
curMember = (struct __ecereNameSpace__ecere__com__DataMember *)prop;
dataMember = __ecereNameSpace__ecere__com__eClass_FindDataMemberAndOffset(_class, ident->string, &dataMemberOffset, privateModule, _subMemberStack, &_subMemberStackPos);
if(dataMember)
{
-found = 0x1;
+found = 1;
if(dataMember->memberAccess == 1)
{
curMember = dataMember;
{
struct Expression * value = member->initializer->__anon1.exp;
struct Type * type = (((void *)0));
-unsigned int deepMember = 0x0;
+unsigned int deepMember = 0;
if(prop)
{
else if(dataMember)
{
if(!dataMember->dataType)
-dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0x0);
+dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0);
type = dataMember->dataType;
}
if(ident && ident->next)
{
-deepMember = 0x1;
+deepMember = 1;
for(ident = ident->next; ident && type; ident = ident->next)
{
if(type->kind == 8)
if(_class->type == 2 || _class->type == 3 || _class->type == 4)
{
if(!_class->dataType)
-_class->dataType = ProcessTypeString(_class->dataTypeString, 0x0);
+_class->dataType = ProcessTypeString(_class->dataTypeString, 0);
type = _class->dataType;
}
}
if(_class->type == 3)
{
if(!_class->dataType)
-_class->dataType = ProcessTypeString(_class->dataTypeString, 0x0);
+_class->dataType = ProcessTypeString(_class->dataTypeString, 0);
type = _class->dataType;
}
}
{
struct __ecereNameSpace__ecere__com__BitMember * bitMember = (struct __ecereNameSpace__ecere__com__BitMember *)dataMember;
struct Type * type;
-uint64 part;
+uint64 part = 0;
bits = (bits & ~bitMember->mask);
if(!bitMember->dataType)
-bitMember->dataType = ProcessTypeString(bitMember->dataTypeString, 0x0);
+bitMember->dataType = ProcessTypeString(bitMember->dataTypeString, 0);
type = bitMember->dataType;
if(type->kind == 8 && type->__anon1._class && type->__anon1._class->__anon1.registered)
{
if(!type->__anon1._class->__anon1.registered->dataType)
-type->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type->__anon1._class->__anon1.registered->dataTypeString, 0x0);
+type->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type->__anon1._class->__anon1.registered->dataTypeString, 0);
type = type->__anon1._class->__anon1.registered->dataType;
}
switch(type->kind)
static unsigned int Promote(struct Operand * op, int kind, unsigned int isSigned)
{
-unsigned int result = 0x0;
+unsigned int result = 0;
switch(kind)
{
void ComputeExpression(struct Expression * exp)
{
-char expString[10240];
-
-expString[0] = '\0';
switch(exp->type)
{
case 1:
struct Symbol * classSym;
string[0] = '\0';
-PrintTypeNoConst(type, string, 0x0, 0x1);
+PrintTypeNoConst(type, string, 0, 1);
classSym = FindClass(string);
_class = classSym ? classSym->__anon1.registered : (((void *)0));
}
if(_class->type == 3)
{
if(!_class->dataType)
-_class->dataType = ProcessTypeString(_class->dataTypeString, 0x0);
+_class->dataType = ProcessTypeString(_class->dataTypeString, 0);
type = _class->dataType;
}
}
}
else
{
-exp->isConstant = 0x0;
+exp->isConstant = 0;
}
}
else if(member)
char className[1024];
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
FreeExpContents(exp);
exp->type = 9;
if(_class && (_class->type == 3 || _class->type == 2))
{
if(!_class->dataType)
-_class->dataType = ProcessTypeString(_class->dataTypeString, 0x0);
+_class->dataType = ProcessTypeString(_class->dataTypeString, 0);
type = _class->dataType;
}
}
static unsigned int CheckExpressionType(struct Expression * exp, struct Type * destType, unsigned int skipUnitBla, unsigned int warnConst)
{
-unsigned int result = 0x1;
+unsigned int result = 1;
if(destType)
{
struct Conversion * convert;
if(destType->kind == 0)
-return 0x0;
+return 0;
if(!MatchTypeExpression(exp, destType, &converts, skipUnitBla, warnConst))
-result = 0x0;
+result = 0;
if(converts.count)
{
for(convert = converts.first; convert; convert = convert->next)
if(convert->isGet)
{
exp->type = 8;
-exp->addedThis = 0x1;
+exp->addedThis = 1;
exp->__anon1.member.exp = newExp;
FreeType(exp->__anon1.member.exp->expType);
exp->__anon1.member.exp->expType = MkClassType(convert->convert->_class->fullName);
exp->__anon1.member.member = MkIdentifier(convert->convert->dataTypeString);
exp->__anon1.member.memberType = 1;
exp->expType = convert->resultType ? convert->resultType : convert->convert->dataType;
-exp->needCast = 0x1;
+exp->needCast = 1;
if(exp->expType)
exp->expType->refCount++;
ApplyAnyObjectLogic(exp->__anon1.member.exp);
{
{
exp->type = 8;
-exp->addedThis = 0x1;
+exp->addedThis = 1;
exp->__anon1.member.exp = newExp;
if(newExp->expType && newExp->expType->kind == 8 && newExp->expType->__anon1._class && newExp->expType->__anon1._class->__anon1.registered && newExp->expType->__anon1._class->__anon1.registered->type == 5)
{
-newExp->byReference = 0x1;
+newExp->byReference = 1;
}
FreeType(exp->__anon1.member.exp->expType);
exp->__anon1.member.exp->expType = (((void *)0));
exp->__anon1.member.member = MkIdentifier(convert->convert->_class->fullName);
exp->__anon1.member.memberType = 4;
exp->expType = convert->resultType ? convert->resultType : MkClassType(convert->convert->_class->fullName);
-exp->needCast = 0x1;
+exp->needCast = 1;
if(convert->resultType)
convert->resultType->refCount++;
}
{
exp->expType = convert->resultType ? convert->resultType : convert->convert->dataType;
if(exp->destType->casted)
-exp->needCast = 0x1;
+exp->needCast = 1;
if(exp->expType)
exp->expType->refCount++;
}
{
exp->expType = convert->resultType ? convert->resultType : MkClassType(convert->convert->_class->fullName);
if(exp->destType->casted)
-exp->needCast = 0x1;
+exp->needCast = 1;
if(convert->resultType)
convert->resultType->refCount++;
}
}
if(!result && exp->expType && converts.count)
{
-result = MatchTypes(exp->expType, exp->destType, (((void *)0)), (((void *)0)), (((void *)0)), 0x1, 0x1, 0x0, 0x0, warnConst);
+result = MatchTypes(exp->expType, exp->destType, (((void *)0)), (((void *)0)), (((void *)0)), 1, 1, 0, 0, warnConst);
}
if(!result && exp->expType && exp->destType)
{
if((exp->destType->kind == 8 && exp->expType->kind == 13 && exp->expType->__anon1.type->kind == 8 && exp->expType->__anon1.type->__anon1._class == exp->destType->__anon1._class && exp->destType->__anon1._class->__anon1.registered && exp->destType->__anon1._class->__anon1.registered->type == 1) || (exp->expType->kind == 8 && exp->destType->kind == 13 && exp->destType->__anon1.type->kind == 8 && exp->destType->__anon1.type->__anon1._class == exp->expType->__anon1._class && exp->expType->__anon1._class->__anon1.registered && exp->expType->__anon1._class->__anon1.registered->type == 1))
-result = 0x1;
+result = 1;
}
}
return result;
exp->type = 11;
exp->__anon1.cast.typeName = MkTypeName(MkListOne(MkSpecifierName("uint64")), (((void *)0)));
exp->__anon1.cast.exp = MkExpBrackets(MkListOne(newExp));
-exp->needCast = 0x1;
+exp->needCast = 1;
break;
}
}
exp->type = 5;
exp->__anon1.list = MkListOne(MkExpCast(MkTypeName(MkListOne(MkSpecifierName(exp->expType->__anon1._class->string)), (((void *)0))), newExp));
exp->needTemplateCast = 2;
-newExp->needCast = 0x1;
+newExp->needCast = 1;
newExp->needTemplateCast = 2;
ProcessExpressionType((*exp->__anon1.list).first);
break;
struct __ecereNameSpace__ecere__sys__OldList * specs = MkList();
typeString[0] = '\0';
-PrintType(exp->expType, typeString, 0x0, 0x0);
+PrintType(exp->expType, typeString, 0, 0);
decl = SpecDeclFromString(typeString, specs, (((void *)0)));
exp->type = 11;
exp->__anon1.cast.typeName = MkTypeName(specs, decl);
exp->__anon1.cast.exp = MkExpBrackets(MkListOne(newExp));
-exp->__anon1.cast.exp->needCast = 0x1;
+exp->__anon1.cast.exp->needCast = 1;
}
break;
}
int c;
char nameSpace[1024];
const char * namePart;
-unsigned int gotColon = 0x0;
+unsigned int gotColon = 0;
nameSpace[0] = '\0';
for(c = strlen(name) - 1; c >= 0; c--)
if(name[c] == ':')
{
-gotColon = 0x1;
+gotColon = 1;
break;
}
namePart = name + c + 1;
symbol->__anon2.__anon1.pointerExternal = MkExternalDeclaration(MkDeclaration(CopyList(function->specifiers, CopySpecifier), MkListOne(MkInitDeclarator(CopyDeclarator(function->declarator), (((void *)0))))));
curContext = tmpContext;
symbol->__anon2.__anon1.pointerExternal->symbol = symbol;
-DeclareType(symbol->type, 0x1, 0x1);
+DeclareType(symbol->type, 1, 1);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert((&*ast), curExternal->prev, symbol->__anon2.__anon1.pointerExternal);
symbol->id = curExternal->symbol->idCode;
}
if(type->__anon1._class->__anon1.registered)
{
if(!type->__anon1._class->__anon1.registered->dataType)
-type->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type->__anon1._class->__anon1.registered->dataTypeString, 0x0);
+type->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type->__anon1._class->__anon1.registered->dataTypeString, 0);
GetTypeSpecs(type->__anon1._class->__anon1.registered->dataType, specs);
}
break;
strcat(string, "struct { ");
for(member = type->__anon1.__anon1.members.first; member; member = member->next)
{
-PrintType(member, string, 0x1, fullName);
+PrintType(member, string, 1, fullName);
strcat(string, "; ");
}
strcat(string, "}");
strcat(string, type->name);
else
{
-char * name = __ecereNameSpace__ecere__sys__RSearchString(type->name, "::", strlen(type->name), 0x1, 0x0);
+char * name = __ecereNameSpace__ecere__sys__RSearchString(type->name, "::", strlen(type->name), 1, 0);
if(name)
name += 2;
strcat(string, "(");
for(param = type->__anon1.__anon2.params.first; param; param = param->next)
{
-PrintType(param, string, 0x1, fullName);
+PrintType(param, string, 1, fullName);
if(param->next)
strcat(string, ", ");
}
strcat(string, s);
else
{
-char * name = __ecereNameSpace__ecere__sys__RSearchString(s, "::", strlen(s), 0x1, 0x0);
+char * name = __ecereNameSpace__ecere__sys__RSearchString(s, "::", strlen(s), 1, 0);
if(name)
name += 2;
void PrintType(struct Type * type, char * string, unsigned int printName, unsigned int fullName)
{
-_PrintType(type, string, printName, fullName, 0x1);
+_PrintType(type, string, printName, fullName, 1);
}
void PrintTypeNoConst(struct Type * type, char * string, unsigned int printName, unsigned int fullName)
{
-_PrintType(type, string, printName, fullName, 0x0);
+_PrintType(type, string, printName, fullName, 0);
}
static struct Type * FindMember(struct Type * type, char * string)
struct Expression * ParseExpressionString(char * expression)
{
-parseError = 0x0;
+parseError = 0;
fileInput = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass___ecereNameSpace__ecere__sys__TempFile);
((int (*)(struct __ecereNameSpace__ecere__com__Instance *, const void * buffer, unsigned int size, unsigned int count))__extension__ ({
struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = fileInput;
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Seek])(fileInput, 0, 0);
-echoOn = 0x0;
+echoOn = 0;
parsedExpression = (((void *)0));
resetScanner();
expression_yyparse();
if(_class && _class->type == 4)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * value = (((void *)0));
+struct __ecereNameSpace__ecere__sys__NamedLink64 * value = (((void *)0));
struct __ecereNameSpace__ecere__com__Class * enumClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "enum");
if(enumClass)
FreeExpContents(exp);
exp->type = 2;
-exp->isConstant = 0x1;
-if(!strcmp(baseClass->dataTypeString, "int"))
-sprintf(constant, "%d", (int)value->data);
+exp->isConstant = 1;
+if(!strcmp(baseClass->dataTypeString, "int") || !strcmp(baseClass->dataTypeString, "int64") || !strcmp(baseClass->dataTypeString, "char") || !strcmp(baseClass->dataTypeString, "short"))
+sprintf(constant, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "%I64d" : "%lld"), value->data);
else
-sprintf(constant, "0x%X", (int)value->data);
+sprintf(constant, ((__ecereNameSpace__ecere__com__GetRuntimePlatform() == 1) ? "0x%I64X" : "0x%llX"), value->data);
exp->__anon1.__anon1.constant = __ecereNameSpace__ecere__sys__CopyString(constant);
exp->expType = MkClassType(baseClass->fullName);
break;
}
}
if(value)
-return 0x1;
+return 1;
}
if((method = __ecereNameSpace__ecere__com__eClass_FindMethod(_class, id->string, privateModule)))
{
__ecereInstance1->refCount = 1, __ecereInstance1->kind = 16, __ecereInstance1->__anon1.__anon3.method = method, __ecereInstance1->__anon1.__anon3.methodClass = (skipIDClassCheck || (id && id->_class)) ? _class : (((void *)0)), __ecereInstance1;
});
-return 0x1;
+return 1;
}
else if((prop = __ecereNameSpace__ecere__com__eClass_FindProperty(_class, id->string, privateModule)))
{
exp->expType = prop->dataType;
if(prop->dataType)
prop->dataType->refCount++;
-return 0x1;
+return 1;
}
else if((member = __ecereNameSpace__ecere__com__eClass_FindDataMember(_class, id->string, privateModule, (((void *)0)), (((void *)0)))))
{
if(!member->dataType)
-member->dataType = ProcessTypeString(member->dataTypeString, 0x0);
+member->dataType = ProcessTypeString(member->dataTypeString, 0);
exp->expType = member->dataType;
if(member->dataType)
member->dataType->refCount++;
-return 0x1;
+return 1;
}
else if((classProp = __ecereNameSpace__ecere__com__eClass_FindClassProperty(_class, id->string)))
{
if(!classProp->dataType)
-classProp->dataType = ProcessTypeString(classProp->dataTypeString, 0x0);
+classProp->dataType = ProcessTypeString(classProp->dataTypeString, 0);
if(classProp->constant)
{
FreeExpContents(exp);
-exp->isConstant = 0x1;
+exp->isConstant = 1;
if(classProp->dataType->kind == 13 && classProp->dataType->__anon1.type->kind == 1)
{
exp->type = 3;
exp->expType = classProp->dataType;
if(classProp->dataType)
classProp->dataType->refCount++;
-return 0x1;
+return 1;
}
-return 0x0;
+return 0;
}
static struct GlobalData * ScanGlobalData(struct __ecereNameSpace__ecere__com__NameSpace * nameSpace, char * name)
char string[1024] = "";
struct Symbol * classSym;
-PrintTypeNoConst(type, string, 0x0, 0x1);
+PrintTypeNoConst(type, string, 0, 1);
classSym = FindClass(string);
if(classSym)
_class = classSym->__anon1.registered;
newExp = MkExpBrackets(MkListOne(MkExpOp(MkExpCast(MkTypeName(MkListOne(MkSpecifier(CHAR)), MkDeclaratorPointer(MkPointer((((void *)0)), (((void *)0))), (((void *)0)))), newExp), '+', MkExpCall(MkExpIdentifier(MkIdentifier("__ENDIAN_PAD")), MkListOne(MkExpConstant(size))))));
}
ReplaceExpContents(checkedExp, newExp);
-e->byReference = 0x1;
+e->byReference = 1;
}
else if(!e->byReference || (_class && _class->type == 5))
{
newExp->prev = (((void *)0));
newExp->next = (((void *)0));
newExp->expType = (((void *)0));
-PrintTypeNoConst(e->expType, typeString, 0x0, 0x1);
+PrintTypeNoConst(e->expType, typeString, 0, 1);
decl = SpecDeclFromString(typeString, specs, (((void *)0)));
newExp->destType = ProcessType(specs, decl);
curContext = context;
*operand = *checkedExp;
__ecereMethod_Expression_Clear(checkedExp);
-checkedExp->destType = ProcessTypeString("void *", 0x0);
+checkedExp->destType = ProcessTypeString("void *", 0);
checkedExp->expType = checkedExp->destType;
checkedExp->destType->refCount++;
checkedExp->type = 4;
e->type = 5;
e->__anon1.list = MkListOne(MkExpOp((((void *)0)), '*', thisExp->type == 0 ? thisExp : MkExpBrackets(MkListOne(thisExp))));
if(thisExp->expType->kind == 8 && thisExp->expType->__anon1._class && thisExp->expType->__anon1._class->__anon1.registered && thisExp->expType->__anon1._class->__anon1.registered->type == 5)
-((struct Expression *)(*e->__anon1.list).first)->byReference = 0x1;
+((struct Expression *)(*e->__anon1.list).first)->byReference = 1;
{
e->expType = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
CopyTypeInto(e->expType, thisExp->expType);
-e->expType->byReference = 0x0;
+e->expType->byReference = 0;
e->expType->refCount = 1;
if(e->expType->kind == 8 && e->expType->__anon1._class && e->expType->__anon1._class->__anon1.registered && (e->expType->__anon1._class->__anon1.registered->type == 2 || e->expType->__anon1._class->__anon1.registered->type == 4 || e->expType->__anon1._class->__anon1.registered->type == 3))
{
backupClassObjectType = type->classObjectType;
backupByReference = type->byReference;
type->classObjectType = 0;
-type->byReference = 0x0;
+type->byReference = 0;
typeString[0] = '\0';
-PrintType(type, typeString, 0x0, 0x1);
+PrintType(type, typeString, 0, 1);
decl = SpecDeclFromString(typeString, specs, (((void *)0)));
type->classObjectType = backupClassObjectType;
type->byReference = backupByReference;
e->__anon1.op.exp2 = MkExpCast(MkTypeName(specs, MkDeclaratorPointer(MkPointer((((void *)0)), (((void *)0))), decl)), thisExp);
e->expType = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
CopyTypeInto(e->expType, type);
-e->expType->byReference = 0x0;
+e->expType->byReference = 0;
e->expType->refCount = 1;
}
else
e->type = 11;
e->__anon1.cast.typeName = MkTypeName(specs, decl);
e->__anon1.cast.exp = thisExp;
-e->byReference = 0x1;
+e->byReference = 1;
e->expType = type;
type->refCount++;
}
void ProcessExpressionType(struct Expression * exp)
{
-unsigned int unresolved = 0x0;
+unsigned int unresolved = 0;
struct Location oldyylloc = yylloc;
-unsigned int notByReference = 0x0;
+unsigned int notByReference = 0;
if(!exp || exp->expType)
return ;
}
if(strstr(id->string, "__ecereClass") == id->string)
{
-exp->expType = ProcessTypeString("ecere::com::Class", 0x1);
+exp->expType = ProcessTypeString("ecere::com::Class", 1);
break;
}
else if(id->_class && (id->classSym || (id->_class->__anon1.__anon1.name && !strcmp(id->_class->__anon1.__anon1.name, "property"))))
ProcessExpressionType(exp);
break;
}
-if(id->classSym && ResolveIdWithClass(exp, id->classSym->__anon1.registered, 0x0))
+if(id->classSym && ResolveIdWithClass(exp, id->classSym->__anon1.registered, 0))
break;
}
else
{
-struct Symbol * symbol = FindSymbol(id->string, curContext, topContext, 0x0, id->_class && id->_class->__anon1.__anon1.name == (((void *)0)));
+struct Symbol * symbol = FindSymbol(id->string, curContext, topContext, 0, id->_class && id->_class->__anon1.__anon1.name == (((void *)0)));
if(!symbol)
{
-if(exp->destType && CheckExpressionType(exp, exp->destType, 0x0, 0x0))
+if(exp->destType && CheckExpressionType(exp, exp->destType, 0, 0))
break;
else
{
}
else if(currentClass && !id->_class)
{
-if(ResolveIdWithClass(exp, currentClass, 0x1))
+if(ResolveIdWithClass(exp, currentClass, 1))
break;
}
-symbol = FindSymbol(id->string, topContext->parent, globalContext, 0x0, id->_class && id->_class->__anon1.__anon1.name == (((void *)0)));
+symbol = FindSymbol(id->string, topContext->parent, globalContext, 0, id->_class && id->_class->__anon1.__anon1.name == (((void *)0)));
}
}
if(symbol)
if(type)
type->refCount++;
if(type && (type->kind == 15))
-exp->isConstant = 0x1;
+exp->isConstant = 1;
if(symbol->isParam || !strcmp(id->string, "this"))
{
if(_class && _class->type == 1 && !type->declaredWithStruct)
-exp->byReference = 0x1;
+exp->byReference = 1;
}
if(symbol->isIterator)
{
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Seek])(fileInput, 0, 0);
-echoOn = 0x0;
+echoOn = 0;
parsedExpression = (((void *)0));
resetScanner();
expression_yyparse();
name[0] = (char)0;
if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)function->module + structSize_Instance)))->importType != 1 && (!function->dataType || !function->dataType->dllExport))
strcpy(name, "__ecereFunction_");
-FullClassNameCat(name, id->string, 0x0);
+FullClassNameCat(name, id->string, 0);
if(DeclareFunction(function, name))
{
(__ecereNameSpace__ecere__com__eSystem_Delete(id->string), id->string = 0);
}
}
}
-unresolved = 0x1;
+unresolved = 1;
break;
}
case 1:
if(!exp->expType)
{
char * constant = exp->__anon1.__anon1.constant;
-struct Type * type = (type = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type), type->refCount = 1, type->constant = 0x1, type);
+struct Type * type = (type = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type), type->refCount = 1, type->constant = 1, type);
exp->expType = type;
if(constant[0] == '\'')
exp->__anon1.__anon1.constant = PrintUInt(ch);
type->kind = 8;
type->__anon1._class = FindClass("unichar");
-type->isSigned = 0x0;
+type->isSigned = 0;
}
else
{
type->kind = 1;
-type->isSigned = 0x1;
+type->isSigned = 1;
}
}
else
type->kind = 6;
else
type->kind = 7;
-type->isSigned = 0x1;
+type->isSigned = 1;
}
else
{
if(isSigned)
{
if(i64 < (((int)0x80000000)))
-is64Bit = 0x1;
+is64Bit = 1;
}
else
{
{
if(ui64 > (0xffffffff))
{
-is64Bit = 0x1;
+is64Bit = 1;
if(ui64 <= (((long long)0x7fffffffffffffffLL)) && (constant[0] != '0' || !constant[1]))
-isSigned = 0x1;
+isSigned = 1;
}
}
else if(constant[0] != '0' || !constant[1])
-isSigned = 0x1;
+isSigned = 1;
}
type->kind = is64Bit ? 4 : 3;
type->isSigned = isSigned;
}
}
-exp->isConstant = 0x1;
+exp->isConstant = 1;
if(exp->destType && exp->destType->kind == 7)
type->kind = 7;
else if(exp->destType && exp->destType->kind == 6)
}
case 3:
{
-exp->isConstant = 0x1;
+exp->isConstant = 1;
exp->expType = __extension__ ({
struct Type * __ecereInstance2 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
__ecereInstance2->refCount = 1, __ecereInstance2->kind = 13, __ecereInstance2->__anon1.type = __extension__ ({
struct Type * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
-__ecereInstance1->refCount = 1, __ecereInstance1->kind = 1, __ecereInstance1->constant = 0x1, __ecereInstance1->isSigned = 0x1, __ecereInstance1;
+__ecereInstance1->refCount = 1, __ecereInstance1->kind = 1, __ecereInstance1->constant = 1, __ecereInstance1->isSigned = 1, __ecereInstance1;
}), __ecereInstance2;
});
break;
__ecereInstance1->refCount = 1, __ecereInstance1->kind = 13, __ecereInstance1->__anon1.type = ProcessType(exp->__anon1._new.typeName->qualifiers, exp->__anon1._new.typeName->declarator), __ecereInstance1;
});
-DeclareType(exp->expType->__anon1.type, 0x0, 0x0);
+DeclareType(exp->expType->__anon1.type, 0, 0);
break;
case 14:
case 27:
__ecereInstance1->refCount = 1, __ecereInstance1->kind = 13, __ecereInstance1->__anon1.type = ProcessType(exp->__anon1._renew.typeName->qualifiers, exp->__anon1._renew.typeName->declarator), __ecereInstance1;
});
-DeclareType(exp->expType->__anon1.type, 0x0, 0x0);
+DeclareType(exp->expType->__anon1.type, 0, 0);
break;
case 4:
{
-unsigned int assign = 0x0, boolResult = 0x0, boolOps = 0x0;
+unsigned int assign = 0, boolResult = 0, boolOps = 0;
struct Type * type1 = (((void *)0)), * type2 = (((void *)0));
-unsigned int useDestType = 0x0, useSideType = 0x0;
+unsigned int useDestType = 0, useSideType = 0;
struct Location oldyylloc = yylloc;
-unsigned int useSideUnit = 0x0;
+unsigned int useSideUnit = 0;
struct __ecereNameSpace__ecere__com__Class * destClass = (exp->destType && exp->destType->kind == 8 && exp->destType->__anon1._class) ? exp->destType->__anon1._class->__anon1.registered : (((void *)0));
struct Type * dummy = (dummy = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type), dummy->count = 1, dummy->refCount = 1, dummy);
case AND_ASSIGN:
case XOR_ASSIGN:
case OR_ASSIGN:
-assign = 0x1;
+assign = 1;
break;
case '!':
break;
case AND_OP:
case OR_OP:
-boolOps = 0x1;
-boolResult = 0x1;
+boolOps = 1;
+boolResult = 1;
break;
case EQ_OP:
case '<':
case LE_OP:
case GE_OP:
case NE_OP:
-boolResult = 0x1;
-useSideType = 0x1;
+boolResult = 1;
+useSideType = 1;
break;
case '+':
case '-':
-useSideUnit = 0x1;
-useSideType = 0x1;
-useDestType = 0x1;
+useSideUnit = 1;
+useSideType = 1;
+useDestType = 1;
break;
case LEFT_OP:
case RIGHT_OP:
-useSideType = 0x1;
-useDestType = 0x1;
+useSideType = 1;
+useDestType = 1;
break;
case '|':
case '^':
-useSideType = 0x1;
-useDestType = 0x1;
+useSideType = 1;
+useDestType = 1;
break;
case '/':
case '%':
-useSideType = 0x1;
-useDestType = 0x1;
+useSideType = 1;
+useDestType = 1;
break;
case '&':
case '*':
if(exp->__anon1.op.exp1)
{
-useSideType = 0x1;
-useDestType = 0x1;
+useSideType = 1;
+useDestType = 1;
}
break;
}
if(!exp->__anon1.op.exp1 && exp->__anon1.op.exp2 && exp->__anon1.op.exp2->type == 0 && exp->__anon1.op.exp2->__anon1.__anon1.identifier)
{
struct Identifier * id = exp->__anon1.op.exp2->__anon1.__anon1.identifier;
-struct Symbol * symbol = FindSymbol(id->string, curContext, topContext, 0x0, id->_class && id->_class->__anon1.__anon1.name == (((void *)0)));
+struct Symbol * symbol = FindSymbol(id->string, curContext, topContext, 0, id->_class && id->_class->__anon1.__anon1.name == (((void *)0)));
if(symbol && symbol->isIterator == 2)
{
if(exp->__anon1.op.exp1)
{
if(exp->__anon1.op.exp2 && useSideUnit && useDestType && destClass && destClass->type == 3 && destClass->base->type != 3)
-useDestType = 0x0;
+useDestType = 0;
if(destClass && useDestType && ((destClass->type == 3 && useSideUnit) || destClass->type == 4 || destClass->type == 2))
{
if(exp->__anon1.op.exp1->destType)
FreeType(exp->__anon1.op.exp1->destType);
exp->__anon1.op.exp1->destType = exp->destType;
-exp->__anon1.op.exp1->opDestType = 0x1;
+exp->__anon1.op.exp1->opDestType = 1;
if(exp->destType)
exp->destType->refCount++;
}
ProcessExpressionType(exp->__anon1.op.exp1);
if(exp->__anon1.op.exp1->destType && exp->__anon1.op.op != '=')
exp->__anon1.op.exp1->destType->count--;
-exp->__anon1.op.exp1->opDestType = 0x0;
+exp->__anon1.op.exp1->opDestType = 0;
if(!exp->__anon1.op.exp2 && (exp->__anon1.op.op == INC_OP || exp->__anon1.op.op == DEC_OP) && exp->__anon1.op.exp1->expType && exp->__anon1.op.exp1->expType->kind == 8 && exp->__anon1.op.exp1->expType->__anon1._class && exp->__anon1.op.exp1->expType->__anon1._class->__anon1.registered && exp->__anon1.op.exp1->expType->__anon1._class->__anon1.registered->type == 3)
{
exp->__anon1.op.exp2 = MkExpConstant("1");
exp->__anon1.op.op = exp->__anon1.op.op == INC_OP ? ADD_ASSIGN : SUB_ASSIGN;
-assign = 0x1;
+assign = 1;
}
if(exp->__anon1.op.exp1->destType == dummy)
{
{
exp->__anon1.op.exp2->destType = exp->destType;
if(!exp->__anon1.op.exp1 || exp->__anon1.op.op != '&')
-exp->__anon1.op.exp2->opDestType = 0x1;
+exp->__anon1.op.exp2->opDestType = 1;
if(exp->destType)
exp->destType->refCount++;
}
FreeType(exp->__anon1.op.exp2->destType);
exp->__anon1.op.exp2->destType = exp->destType;
if(exp->__anon1.op.op != '&')
-exp->__anon1.op.exp2->opDestType = 0x1;
+exp->__anon1.op.exp2->opDestType = 1;
if(exp->destType)
exp->destType->refCount++;
}
}
}
if(e->type == 11 && e->__anon1.cast.exp)
-e->__anon1.cast.exp->needCast = 0x1;
+e->__anon1.cast.exp->needCast = 1;
}
ProcessExpressionType(exp->__anon1.op.exp2);
-exp->__anon1.op.exp2->opDestType = 0x0;
+exp->__anon1.op.exp2->opDestType = 0;
if(exp->__anon1.op.exp2->destType && exp->__anon1.op.op != '=')
exp->__anon1.op.exp2->destType->count--;
if(assign && type1 && type1->kind == 13 && exp->__anon1.op.exp2->expType)
type1String[0] = '\0';
type2String[0] = '\0';
-PrintType(exp->__anon1.op.exp2->expType, type1String, 0x0, 0x1);
-PrintType(type1, type2String, 0x0, 0x1);
+PrintType(exp->__anon1.op.exp2->expType, type1String, 0, 1);
+PrintType(type1, type2String, 0, 1);
__ecereNameSpace__ecere__sys__ChangeCh(expString, '\n', ' ');
Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "incompatible expression %s (%s); expected %s\n", (((void *)0))), expString, type1String, type2String);
}
type2 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
type2->refCount = 1;
CopyTypeInto(type2, exp->__anon1.op.exp2->expType);
-type2->isSigned = 0x1;
+type2->isSigned = 1;
}
else if(exp->__anon1.op.op == '~' && !exp->__anon1.op.exp1 && exp->__anon1.op.exp2->expType && (!exp->__anon1.op.exp2->expType->isSigned || exp->__anon1.op.exp2->expType->kind != 3))
{
__ecereInstance1->kind = 3, __ecereInstance1;
});
type2->refCount = 1;
-type2->isSigned = 0x1;
+type2->isSigned = 1;
}
else
{
__ecereInstance1->refCount = 1, __ecereInstance1->kind = 23, __ecereInstance1;
});
-exp->isConstant = 0x1;
+exp->isConstant = 1;
}
else if(exp->__anon1.op.op == '*' && !exp->__anon1.op.exp1)
{
exp->expType = Dereference(type2);
if(type2 && type2->kind == 8)
-notByReference = 0x1;
+notByReference = 1;
}
else if(exp->__anon1.op.op == '&' && !exp->__anon1.op.exp1)
exp->expType = Reference(type2);
if(exp->__anon1.op.exp1->destType)
FreeType(exp->__anon1.op.exp1->destType);
exp->__anon1.op.exp1->destType = MkClassType("bool");
-exp->__anon1.op.exp1->destType->truth = 0x1;
+exp->__anon1.op.exp1->destType->truth = 1;
if(!exp->__anon1.op.exp1->expType)
ProcessExpressionType(exp->__anon1.op.exp1);
else
-CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0x0, 0x0);
+CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0, 0);
FreeType(exp->__anon1.op.exp1->expType);
exp->__anon1.op.exp1->expType = MkClassType("bool");
-exp->__anon1.op.exp1->expType->truth = 0x1;
+exp->__anon1.op.exp1->expType->truth = 1;
}
if(exp->__anon1.op.exp2)
{
if(exp->__anon1.op.exp2->destType)
FreeType(exp->__anon1.op.exp2->destType);
exp->__anon1.op.exp2->destType = MkClassType("bool");
-exp->__anon1.op.exp2->destType->truth = 0x1;
+exp->__anon1.op.exp2->destType->truth = 1;
if(!exp->__anon1.op.exp2->expType)
ProcessExpressionType(exp->__anon1.op.exp2);
else
-CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0x0, 0x0);
+CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0, 0);
FreeType(exp->__anon1.op.exp2->expType);
exp->__anon1.op.exp2->expType = MkClassType("bool");
-exp->__anon1.op.exp2->expType->truth = 0x1;
+exp->__anon1.op.exp2->expType->truth = 1;
}
}
else if(exp->__anon1.op.exp1 && exp->__anon1.op.exp2 && ((useSideType) || ((!type1 || type1->kind != 8 || !strcmp(type1->__anon1._class->string, "String")) && (!type2 || type2->kind != 8 || !strcmp(type2->__anon1._class->string, "String")))))
struct Type * intType;
if(!type1->__anon1._class->__anon1.registered->dataType)
-type1->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type1->__anon1._class->__anon1.registered->dataTypeString, 0x0);
+type1->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type1->__anon1._class->__anon1.registered->dataTypeString, 0);
if(!type2->__anon1._class->__anon1.registered->dataType)
-type2->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type2->__anon1._class->__anon1.registered->dataTypeString, 0x0);
-intType = ProcessTypeString((type1->__anon1._class->__anon1.registered->dataType->kind == 4 || type2->__anon1._class->__anon1.registered->dataType->kind == 4) ? "int64" : "int", 0x0);
+type2->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type2->__anon1._class->__anon1.registered->dataTypeString, 0);
+intType = ProcessTypeString((type1->__anon1._class->__anon1.registered->dataType->kind == 4 || type2->__anon1._class->__anon1.registered->dataType->kind == 4) ? "int64" : "int", 0);
if(exp->__anon1.op.exp1->destType)
FreeType(exp->__anon1.op.exp1->destType);
if(exp->__anon1.op.exp2->destType)
Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "operating on %s and %s with an untyped result, assuming %s\n", (((void *)0))), type1->__anon1._class->string, type2->__anon1._class->string, type1->__anon1._class->string);
if(type1->kind == 13 && type1->__anon1.type->kind == 20 && type2->kind != 13)
{
-struct Expression * argExp = GetTemplateArgExp(type1->__anon1.type->__anon1.templateParameter, thisClass, 0x1);
+struct Expression * argExp = GetTemplateArgExp(type1->__anon1.type->__anon1.templateParameter, thisClass, 1);
if(argExp)
{
{
if(type2)
FreeType(type2);
-type2 = exp->__anon1.op.exp2->expType = ProcessTypeString("int", 0x0);
+type2 = exp->__anon1.op.exp2->expType = ProcessTypeString("int", 0);
type2->refCount++;
}
ProcessExpressionType(exp->__anon1.op.exp2);
}
else
{
-unsigned int success = 0x0;
+unsigned int success = 0;
if(type1->kind == 13 && type2->kind == 13)
{
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "cannot add two pointers\n", (((void *)0))));
else if(exp->__anon1.op.op == '-')
{
-if(MatchTypes(type1->__anon1.type, type2->__anon1.type, (((void *)0)), (((void *)0)), (((void *)0)), 0x0, 0x0, 0x0, 0x0, 0x0))
+if(MatchTypes(type1->__anon1.type, type2->__anon1.type, (((void *)0)), (((void *)0)), (((void *)0)), 0, 0, 0, 0, 0))
{
exp->expType = __extension__ ({
struct Type * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
__ecereInstance1->kind = 3, __ecereInstance1->refCount = 1, __ecereInstance1;
});
-success = 0x1;
+success = 1;
if(type1->__anon1.type->kind == 20)
{
-struct Expression * argExp = GetTemplateArgExp(type1->__anon1.type->__anon1.templateParameter, thisClass, 0x1);
+struct Expression * argExp = GetTemplateArgExp(type1->__anon1.type->__anon1.templateParameter, thisClass, 1);
if(argExp)
{
}
if(!success && exp->__anon1.op.exp1->type == 2)
{
-if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0x0, 0x0))
+if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0, 0))
{
if(exp->expType)
FreeType(exp->expType);
exp->expType = exp->__anon1.op.exp1->destType;
if(exp->__anon1.op.exp1->destType)
exp->__anon1.op.exp1->destType->refCount++;
-success = 0x1;
+success = 1;
}
-else if(CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0x0, 0x0))
+else if(CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0, 0))
{
if(exp->expType)
FreeType(exp->expType);
exp->expType = exp->__anon1.op.exp2->destType;
if(exp->__anon1.op.exp2->destType)
exp->__anon1.op.exp2->destType->refCount++;
-success = 0x1;
+success = 1;
}
}
else if(!success)
{
-if(CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0x0, 0x0))
+if(CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0, 0))
{
if(exp->expType)
FreeType(exp->expType);
exp->expType = exp->__anon1.op.exp2->destType;
if(exp->__anon1.op.exp2->destType)
exp->__anon1.op.exp2->destType->refCount++;
-success = 0x1;
+success = 1;
}
-else if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0x0, 0x0))
+else if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0, 0))
{
if(exp->expType)
FreeType(exp->expType);
exp->expType = exp->__anon1.op.exp1->destType;
if(exp->__anon1.op.exp1->destType)
exp->__anon1.op.exp1->destType->refCount++;
-success = 0x1;
+success = 1;
}
}
if(!success)
__ecereNameSpace__ecere__sys__ChangeCh(expString1, '\n', ' ');
PrintExpression(exp->__anon1.op.exp2, expString2);
__ecereNameSpace__ecere__sys__ChangeCh(expString2, '\n', ' ');
-PrintType(exp->__anon1.op.exp1->expType, type1, 0x0, 0x1);
-PrintType(exp->__anon1.op.exp2->expType, type2, 0x0, 0x1);
+PrintType(exp->__anon1.op.exp1->expType, type1, 0, 1);
+PrintType(exp->__anon1.op.exp2->expType, type2, 0, 1);
}
Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "incompatible expressions %s (%s) and %s (%s)\n", (((void *)0))), expString1, type1, expString2, type2);
}
exp->__anon1.op.exp1->destType = type2->__anon1._class->__anon1.registered->dataType;
if(type2->__anon1._class->__anon1.registered->dataType)
type2->__anon1._class->__anon1.registered->dataType->refCount++;
-CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0x0, 0x0);
+CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0, 0);
exp->expType = type2;
if(type2)
type2->refCount++;
exp->__anon1.op.exp2->destType = type1->__anon1._class->__anon1.registered->dataType;
if(type1->__anon1._class->__anon1.registered->dataType)
type1->__anon1._class->__anon1.registered->dataType->refCount++;
-CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0x0, 0x0);
+CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0, 0);
exp->expType = type1;
if(type1)
type1->refCount++;
}
else if(type1)
{
-unsigned int valid = 0x0;
+unsigned int valid = 0;
if(!boolResult && useSideUnit && type1 && type1->kind == 8 && type1->__anon1._class->__anon1.registered && type1->__anon1._class->__anon1.registered->type == 3 && type2 && type2->kind != 8)
{
if(exp->__anon1.op.exp2->destType)
FreeType(exp->__anon1.op.exp2->destType);
if(!type1->__anon1._class->__anon1.registered->dataType)
-type1->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type1->__anon1._class->__anon1.registered->dataTypeString, 0x0);
+type1->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type1->__anon1._class->__anon1.registered->dataTypeString, 0);
exp->__anon1.op.exp2->destType = type1->__anon1._class->__anon1.registered->dataType;
exp->__anon1.op.exp2->destType->refCount++;
-CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0x0, 0x0);
+CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0, 0);
if(type2)
FreeType(type2);
type2 = exp->__anon1.op.exp2->destType;
if(exp->__anon1.op.exp1->destType)
FreeType(exp->__anon1.op.exp1->destType);
if(!type2->__anon1._class->__anon1.registered->dataType)
-type2->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type2->__anon1._class->__anon1.registered->dataTypeString, 0x0);
+type2->__anon1._class->__anon1.registered->dataType = ProcessTypeString(type2->__anon1._class->__anon1.registered->dataTypeString, 0);
exp->__anon1.op.exp1->destType = type2->__anon1._class->__anon1.registered->dataType;
exp->__anon1.op.exp1->destType->refCount++;
-CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0x0, 0x0);
+CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0, 0);
type1 = exp->__anon1.op.exp1->destType;
exp->expType = type1;
type1->refCount++;
{
if(op1IsEnum && exp->__anon1.op.exp2->expType)
{
-if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp2->expType, 0x0, 0x0))
+if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp2->expType, 0, 0))
{
if(exp->expType)
FreeType(exp->expType);
exp->expType = exp->__anon1.op.exp2->expType;
if(exp->__anon1.op.exp2->expType)
exp->__anon1.op.exp2->expType->refCount++;
-valid = 0x1;
+valid = 1;
}
}
else if(op2IsEnum && exp->__anon1.op.exp1->expType)
{
-if(CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp1->expType, 0x0, 0x0))
+if(CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp1->expType, 0, 0))
{
if(exp->expType)
FreeType(exp->expType);
exp->expType = exp->__anon1.op.exp1->expType;
if(exp->__anon1.op.exp1->expType)
exp->__anon1.op.exp1->expType->refCount++;
-valid = 0x1;
+valid = 1;
}
}
}
{
if(op1IsEnum && exp->__anon1.op.exp2->expType)
{
-if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp2->expType, 0x0, 0x0))
+if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp2->expType, 0, 0))
{
if(exp->expType)
FreeType(exp->expType);
exp->expType = exp->__anon1.op.exp1->expType;
if(exp->__anon1.op.exp1->expType)
exp->__anon1.op.exp1->expType->refCount++;
-valid = 0x1;
+valid = 1;
}
}
else if(op2IsEnum && exp->__anon1.op.exp1->expType)
{
-if(CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp1->expType, 0x0, 0x0))
+if(CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp1->expType, 0, 0))
{
if(exp->expType)
FreeType(exp->expType);
exp->expType = exp->__anon1.op.exp2->expType;
if(exp->__anon1.op.exp2->expType)
exp->__anon1.op.exp2->expType->refCount++;
-valid = 0x1;
+valid = 1;
}
}
}
FreeType(exp->__anon1.op.exp1->destType);
exp->__anon1.op.exp1->destType = type2;
type2->refCount++;
-if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0x0, 0x0))
+if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0, 0))
{
if(exp->expType)
FreeType(exp->expType);
FreeType(exp->__anon1.op.exp2->destType);
exp->__anon1.op.exp2->destType = type1;
type1->refCount++;
-if(CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0x0, 0x0))
+if(CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0, 0))
{
if(exp->expType)
FreeType(exp->expType);
__ecereNameSpace__ecere__sys__ChangeCh(expString1, '\n', ' ');
PrintExpression(exp->__anon1.op.exp2, expString2);
__ecereNameSpace__ecere__sys__ChangeCh(expString2, '\n', ' ');
-PrintType(exp->__anon1.op.exp1->expType, type1String, 0x0, 0x1);
-PrintType(exp->__anon1.op.exp2->expType, type2String, 0x0, 0x1);
+PrintType(exp->__anon1.op.exp1->expType, type1String, 0, 1);
+PrintType(exp->__anon1.op.exp2->expType, type2String, 0, 1);
}
Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "incompatible expressions %s (%s) and %s (%s)\n", (((void *)0))), expString1, type1String, expString2, type2String);
if(type1->kind == 8 && type1->__anon1._class && type1->__anon1._class->__anon1.registered && type1->__anon1._class->__anon1.registered->type == 4)
struct Type * oldType = exp->__anon1.op.exp1->expType;
exp->__anon1.op.exp1->expType = (((void *)0));
-if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0x0, 0x0))
+if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0, 0))
FreeType(oldType);
else
exp->__anon1.op.exp1->expType = oldType;
FreeType(exp->__anon1.op.exp1->destType);
exp->__anon1.op.exp1->destType = type2;
type2->refCount++;
-if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0x0, 0x0))
+if(CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0, 0))
{
if(exp->expType)
FreeType(exp->expType);
exp->__anon1.op.exp1->destType = type2->__anon1._class->__anon1.registered->dataType;
if(type2->__anon1._class->__anon1.registered->dataType)
type2->__anon1._class->__anon1.registered->dataType->refCount++;
-CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0x0, 0x0);
+CheckExpressionType(exp->__anon1.op.exp1, exp->__anon1.op.exp1->destType, 0, 0);
}
if(exp->__anon1.op.op == '!')
{
exp->expType = MkClassType("bool");
-exp->expType->truth = 0x1;
+exp->expType->truth = 1;
}
else
{
exp->__anon1.op.exp2->destType = type1->__anon1._class->__anon1.registered->dataType;
if(type1->__anon1._class->__anon1.registered->dataType)
type1->__anon1._class->__anon1.registered->dataType->refCount++;
-CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0x0, 0x0);
+CheckExpressionType(exp->__anon1.op.exp2, exp->__anon1.op.exp2->destType, 0, 0);
}
exp->expType = type1;
if(type1)
{
FreeType(exp->expType);
exp->expType = MkClassType("bool");
-exp->expType->truth = 0x1;
+exp->expType->truth = 1;
}
if(exp->__anon1.op.op != SIZEOF)
exp->isConstant = (!exp->__anon1.op.exp1 || exp->__anon1.op.exp1->isConstant) && (!exp->__anon1.op.exp2 || exp->__anon1.op.exp2->isConstant);
if(exp->__anon1.op.op == SIZEOF && exp->__anon1.op.exp2->expType)
{
-DeclareType(exp->__anon1.op.exp2->expType, 0x0, 0x0);
+DeclareType(exp->__anon1.op.exp2->expType, 0, 0);
}
if(exp->__anon1.op.op == DELETE && exp->__anon1.op.exp2 && exp->__anon1.op.exp2->expType && __ecereProp_Type_Get_specConst(exp->__anon1.op.exp2->expType))
Compiler_Warning(__ecereNameSpace__ecere__GetTranslatedString("ec", "deleting const qualified object\n", (((void *)0))));
{
struct Expression * e;
-exp->isConstant = 0x1;
+exp->isConstant = 1;
for(e = (*exp->__anon1.list).first; e; e = e->next)
{
-unsigned int inced = 0x0;
+unsigned int inced = 0;
if(!e->next)
{
{
exp->destType->refCount++;
e->destType->count++;
-inced = 0x1;
+inced = 1;
}
}
ProcessExpressionType(e);
e->expType->refCount++;
}
if(!e->isConstant)
-exp->isConstant = 0x0;
+exp->isConstant = 0;
}
e = (*exp->__anon1.list).first;
if(!e->next && e->type == 8)
{
struct Expression * e;
-exp->isConstant = 0x1;
+exp->isConstant = 1;
ProcessExpressionType(exp->__anon1.index.exp);
if(!exp->__anon1.index.exp->isConstant)
-exp->isConstant = 0x0;
+exp->isConstant = 0;
if(exp->__anon1.index.exp->expType)
{
struct Type * source = exp->__anon1.index.exp->expType;
if(_class != containerClass && __ecereNameSpace__ecere__com__eClass_IsDerived(c, containerClass) && _class->templateArgs)
{
-exp->expType = ProcessTypeString(_class->templateArgs[2].__anon1.__anon1.dataTypeString, 0x0);
+exp->expType = ProcessTypeString(_class->templateArgs[2].__anon1.__anon1.dataTypeString, 0);
if(exp->__anon1.index.index && (*exp->__anon1.index.index).last)
{
-struct Type * type = ProcessTypeString(_class->templateArgs[1].__anon1.__anon1.dataTypeString, 0x0);
+struct Type * type = ProcessTypeString(_class->templateArgs[1].__anon1.__anon1.dataTypeString, 0);
if(type->kind == 8)
-type->constant = 0x1;
+type->constant = 1;
else if(type->kind == 13)
{
struct Type * t = type;
while(t->kind == 13)
t = t->__anon1.type;
-t->constant = 0x1;
+t->constant = 1;
}
((struct Expression *)(*exp->__anon1.index.index).last)->destType = type;
}
{
}
if(!e->isConstant)
-exp->isConstant = 0x0;
+exp->isConstant = 0;
}
if(!exp->expType)
exp->expType = Dereference(exp->__anon1.index.exp->expType);
if(exp->expType)
-DeclareType(exp->expType, 0x0, 0x0);
+DeclareType(exp->expType, 0, 0);
break;
}
case 7:
if(!strcmp(id->string, "__builtin_frame_address"))
{
-exp->expType = ProcessTypeString("void *", 0x1);
+exp->expType = ProcessTypeString("void *", 1);
if(exp->__anon1.call.arguments && (*exp->__anon1.call.arguments).first)
ProcessExpressionType((*exp->__anon1.call.arguments).first);
break;
}
else if(!strcmp(id->string, "__ENDIAN_PAD"))
{
-exp->expType = ProcessTypeString("int", 0x1);
+exp->expType = ProcessTypeString("int", 1);
if(exp->__anon1.call.arguments && (*exp->__anon1.call.arguments).first)
ProcessExpressionType((*exp->__anon1.call.arguments).first);
break;
else if(!strcmp(id->string, "Sgn"))
{
ListAdd(exp->__anon1.list, MkExpCondition(MkExpBrackets(MkListOne(MkExpOp((((void *)0)), '!', CopyExpression(tempExp1)))), MkListOne(MkExpConstant("0")), MkExpBrackets(MkListOne(MkExpCondition(MkExpBrackets(MkListOne(MkExpOp(CopyExpression(tempExp1), '<', MkExpConstant("0")))), MkListOne(MkExpConstant("-1")), MkExpConstant("1"))))));
-exp->expType = ProcessTypeString("int", 0x0);
+exp->expType = ProcessTypeString("int", 0);
}
FreeExpression(tempExp1);
if(tempExp2)
struct Symbol * back = functionType->__anon1.__anon2.thisClass;
functionType->__anon1.__anon2.thisClass = (((void *)0));
-PrintType(functionType, typeString, 0x1, 0x1);
+PrintType(functionType, typeString, 1, 1);
functionType->__anon1.__anon2.thisClass = back;
}
if(strstr(typeString, "thisclass"))
decl = SpecDeclFromString(typeString, specs, (((void *)0)));
if(thisClass != (exp->__anon1.call.exp->expType->__anon1.__anon3.usedClass->templateClass ? exp->__anon1.call.exp->expType->__anon1.__anon3.usedClass->templateClass : exp->__anon1.call.exp->expType->__anon1.__anon3.usedClass))
-thisClassParams = 0x0;
+thisClassParams = 0;
ReplaceThisClassSpecifiers(specs, exp->__anon1.call.exp->expType->__anon1.__anon3.usedClass);
{
struct __ecereNameSpace__ecere__com__Class * backupThisClass = thisClass;
ProcessDeclarator(decl);
thisClass = backupThisClass;
}
-thisClassParams = 0x1;
+thisClassParams = 1;
functionType = ProcessType(specs, decl);
functionType->refCount = 0;
FinishTemplatesContext(context);
}
else if(functionType)
{
-unsigned int emptyParams = 0x0, noParams = 0x0;
+unsigned int emptyParams = 0, noParams = 0;
struct Expression * e = exp->__anon1.call.arguments ? (*exp->__anon1.call.arguments).first : (((void *)0));
struct Type * type = functionType->__anon1.__anon2.params.first;
struct Expression * memberExp = (exp->__anon1.call.exp->type == 8) ? exp->__anon1.call.exp : (((void *)0));
struct Location oldyylloc = yylloc;
if(!type)
-emptyParams = 0x1;
+emptyParams = 1;
if(functionType->extraParam && e && functionType->__anon1.__anon2.thisClass)
{
e->destType = MkClassType(functionType->__anon1.__anon2.thisClass->string);
}
if(type && type->kind == 0)
{
-noParams = 0x1;
+noParams = 1;
if(!type->refCount)
FreeType(type);
type = (((void *)0));
{
struct Context * context = SetupTemplatesContext(_class);
-templatedType = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0x0);
+templatedType = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0);
FinishTemplatesContext(context);
}
if(templatedType->kind == 8 && constant)
-templatedType->constant = 0x1;
+templatedType->constant = 1;
else if(templatedType->kind == 13)
{
struct Type * t = templatedType->__anon1.type;
e->destType = templatedType;
if(templatedType)
{
-templatedType->passAsTemplate = 0x1;
+templatedType->passAsTemplate = 1;
}
}
else
symbol = __extension__ ({
struct Symbol * __ecereInstance1 = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Symbol);
-__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(string), __ecereInstance1->type = ProcessTypeString("int()", 0x1), __ecereInstance1;
+__ecereInstance1->string = __ecereNameSpace__ecere__sys__CopyString(string), __ecereInstance1->type = ProcessTypeString("int()", 1), __ecereInstance1;
});
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(&globalContext->symbols, (struct __ecereNameSpace__ecere__sys__BTNode *)symbol);
if(strstr(symbol->string, "::"))
-globalContext->hasNameSpace = 0x1;
+globalContext->hasNameSpace = 1;
yylloc = oldyylloc;
}
}
ProcessExpressionType(exp->__anon1.member.exp);
if(exp->__anon1.member.exp->expType && exp->__anon1.member.exp->expType->kind == 8 && exp->__anon1.member.exp->expType->__anon1._class && exp->__anon1.member.exp->expType->__anon1._class->__anon1.registered && exp->__anon1.member.exp->expType->__anon1._class->__anon1.registered->type == 0)
{
-exp->isConstant = 0x0;
+exp->isConstant = 0;
}
else
exp->isConstant = exp->__anon1.member.exp->isConstant;
struct Context * context = SetupTemplatesContext(_class);
FreeType(exp->expType);
-exp->expType = ProcessTypeString(templateString, 0x0);
+exp->expType = ProcessTypeString(templateString, 0);
FinishTemplatesContext(context);
}
}
{
_class = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "uintptr");
FreeType(exp->expType);
-exp->expType = ProcessTypeString("uintptr", 0x0);
-exp->byReference = 0x1;
+exp->expType = ProcessTypeString("uintptr", 0);
+exp->byReference = 1;
}
else
{
char string[1024] = "";
struct Symbol * classSym;
-PrintTypeNoConst(type, string, 0x0, 0x1);
+PrintTypeNoConst(type, string, 0, 1);
classSym = FindClass(string);
if(classSym)
_class = classSym->__anon1.registered;
if(!member && !prop)
prop = __ecereNameSpace__ecere__com__eClass_FindProperty(_class, id->string, privateModule);
if((member && member->_class == (_class->templateClass ? _class->templateClass : _class)) || (prop && prop->_class == (_class->templateClass ? _class->templateClass : _class)))
-exp->__anon1.member.thisPtr = 0x1;
+exp->__anon1.member.thisPtr = 1;
}
else
{
-unsigned int useMemberForNonConst = 0x0;
+unsigned int useMemberForNonConst = 0;
if(!id->classSym)
{
if(classProp)
{
exp->__anon1.member.memberType = 5;
-exp->expType = ProcessTypeString(classProp->dataTypeString, 0x0);
+exp->expType = ProcessTypeString(classProp->dataTypeString, 0);
}
else
{
type->refCount++;
FreeType(classExp->expType);
-classExp->expType = ProcessTypeString("ecere::com::Class", 0x0);
+classExp->expType = ProcessTypeString("ecere::com::Class", 0);
strcpy(structName, "__ecereClassData_");
-FullClassNameCat(structName, type->__anon1._class->string, 0x0);
+FullClassNameCat(structName, type->__anon1._class->string, 0);
exp->type = 9;
exp->__anon1.member.member = id;
exp->__anon1.member.exp = MkExpBrackets(MkListOne(MkExpCast(MkTypeName(MkListOne(MkStructOrUnion(3, MkIdentifier(structName), (((void *)0)))), MkDeclaratorPointer(MkPointer((((void *)0)), (((void *)0))), (((void *)0)))), MkExpBrackets(MkListOne(MkExpOp(MkExpCast(MkTypeName(MkListOne(MkSpecifier(CHAR)), MkDeclaratorPointer(MkPointer((((void *)0)), (((void *)0))), (((void *)0)))), MkExpMember(classExp, MkIdentifier("data"))), '+', MkExpMember(MkExpClass(MkListOne(MkSpecifierName(type->__anon1._class->string)), (((void *)0))), MkIdentifier("offsetClass"))))))));
CopyTypeInto(type, exp->expType);
type->refCount = 1;
-type->constant = 0x1;
+type->constant = 1;
exp->expType = type;
}
else if(prop->dataType)
return ;
}
exp->__anon1.member.memberType = 3;
-DeclareStruct(_class->fullName, 0x0);
+DeclareStruct(_class->fullName, 0);
if(!member->dataType)
{
struct Context * context = SetupTemplatesContext(_class);
-member->dataType = ProcessTypeString(member->dataTypeString, 0x0);
+member->dataType = ProcessTypeString(member->dataTypeString, 0);
FinishTemplatesContext(context);
}
exp->expType = member->dataType;
unsigned int constant = exp->expType->constant;
FreeType(exp->expType);
-exp->expType = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0x0);
+exp->expType = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0);
if(exp->expType->kind == 8 && constant)
-exp->expType->constant = 0x1;
+exp->expType->constant = 1;
else if(exp->expType->kind == 13)
{
struct Type * t = exp->expType->__anon1.type;
exp->expType = ReplaceThisClassType(_class);
}
if(tClass->templateClass && (exp->expType->kind != 20 || (!exp->expType->__anon1.templateParameter || (!exp->expType->__anon1.templateParameter->dataTypeString && !exp->expType->__anon1.templateParameter->__anon1.dataType))))
-exp->expType->passAsTemplate = 0x1;
+exp->expType->passAsTemplate = 1;
if(!exp->destType)
{
-exp->destType = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0x0);
+exp->destType = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0);
if(exp->destType->kind == 8 && constant)
-exp->destType->constant = 0x1;
+exp->destType->constant = 1;
else if(exp->destType->kind == 13)
{
struct Type * t = exp->destType->__anon1.type;
struct Context * context = SetupTemplatesContext(tClass);
struct Type * basicType;
-basicType = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0x0);
+basicType = ProcessTypeString(arg.__anon1.__anon1.dataTypeString, 0);
if(basicType)
{
if(basicType->kind == 21)
{
struct Context * context = SetupTemplatesContext(tClass);
-exp->expType = ProcessTypeString(templateString, 0x0);
+exp->expType = ProcessTypeString(templateString, 0);
FinishTemplatesContext(context);
}
}
char name[1024];
name[0] = '\0';
-DeclareStruct(classSym->string, 0x0);
+DeclareStruct(classSym->string, 0);
FreeSpecifier(exp->__anon1._class);
exp->type = 10;
-FullClassNameCat(name, classSym->string, 0x0);
+FullClassNameCat(name, classSym->string, 0);
exp->__anon1.typeName = MkTypeName(MkListOne(MkStructOrUnion(3, MkIdentifier(name), (((void *)0)))), (((void *)0)));
}
else
char className[1024];
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
FreeExpContents(exp);
exp->type = 9;
__ecereInstance1->refCount = 1, __ecereInstance1->kind = 23, __ecereInstance1;
});
-exp->isConstant = 0x1;
-DeclareType(type, 0x0, 0x0);
+exp->isConstant = 1;
+DeclareType(type, 0, 0);
FreeType(type);
break;
}
FreeType(exp->__anon1.cast.exp->destType);
exp->__anon1.cast.exp->destType = type;
type->refCount++;
-type->casted = 0x1;
+type->casted = 1;
ProcessExpressionType(exp->__anon1.cast.exp);
-type->casted = 0x0;
+type->casted = 0;
type->count = 0;
exp->expType = type;
if(!exp->__anon1.cast.exp->needCast && !NeedCast(exp->__anon1.cast.exp->expType, type))
{
struct Expression * e;
-exp->isConstant = 0x1;
+exp->isConstant = 1;
FreeType(exp->__anon1.cond.cond->destType);
exp->__anon1.cond.cond->destType = MkClassType("bool");
-exp->__anon1.cond.cond->destType->truth = 0x1;
+exp->__anon1.cond.cond->destType->truth = 1;
ProcessExpressionType(exp->__anon1.cond.cond);
if(!exp->__anon1.cond.cond->isConstant)
-exp->isConstant = 0x0;
+exp->isConstant = 0;
for(e = (*exp->__anon1.cond.exp).first; e; e = e->next)
{
if(!e->next)
e->expType->refCount++;
}
if(!e->isConstant)
-exp->isConstant = 0x0;
+exp->isConstant = 0;
}
FreeType(exp->__anon1.cond.elseExp->destType);
exp->__anon1.cond.elseExp->destType = exp->destType ? exp->destType : exp->expType;
exp->__anon1.cond.elseExp->destType->refCount++;
ProcessExpressionType(exp->__anon1.cond.elseExp);
if(!exp->__anon1.cond.elseExp->isConstant)
-exp->isConstant = 0x0;
+exp->isConstant = 0;
break;
}
case 23:
{
exp->expType = MkClassType(spec->__anon1.__anon1.name);
exp->expType->kind = 19;
-exp->byReference = 0x1;
+exp->byReference = 1;
}
else
{
exp->expType = MkClassType("ecere::com::Class");
-exp->byReference = 0x1;
+exp->byReference = 1;
}
break;
}
struct Expression * classExp;
strcpy(structName, "__ecereClassData_");
-FullClassNameCat(structName, _class->fullName, 0x0);
+FullClassNameCat(structName, _class->fullName, 0);
exp->type = 9;
exp->__anon1.member.member = id;
-if(curCompound && FindSymbol("this", curContext, curCompound->__anon1.compound.context, 0x0, 0x0))
+if(curCompound && FindSymbol("this", curContext, curCompound->__anon1.compound.context, 0, 0))
classExp = MkExpMember(MkExpIdentifier(MkIdentifier("this")), MkIdentifier("_class"));
else
classExp = MkExpIdentifier(MkIdentifier("class"));
}
else
{
-if(!MatchTypeExpression(e, type, (((void *)0)), 0x0, 0x1))
+if(!MatchTypeExpression(e, type, (((void *)0)), 0, 1))
{
FreeType(type);
type = e->expType;
ProcessExpressionType(e);
if(e->expType)
{
-if(!MatchTypeExpression(e, type, (((void *)0)), 0x0, 0x1))
+if(!MatchTypeExpression(e, type, (((void *)0)), 0, 1))
{
FreeType(e->expType);
e->expType = (((void *)0));
if(type)
{
typeStringBuf[0] = '\0';
-PrintTypeNoConst(type, typeStringBuf, 0x0, 0x1);
+PrintTypeNoConst(type, typeStringBuf, 0, 1);
typeString = typeStringBuf;
FreeType(type);
type = (((void *)0));
{
struct Expression * e;
-type = ProcessTypeString(typeString, 0x0);
+type = ProcessTypeString(typeString, 0);
while((e = (*exp->__anon1.list).first))
{
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove((&*exp->__anon1.list), e);
FreeType(type);
(__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.list), exp->__anon1.list = 0);
}
-DeclareStruct("ecere::com::BuiltInContainer", 0x0);
+DeclareStruct("ecere::com::BuiltInContainer", 0);
ListAdd(structInitializers, MkInitializerAssignment(MkExpMember(MkExpClass(MkListOne(MkSpecifierName("BuiltInContainer")), (((void *)0))), MkIdentifier("_vTbl"))));
ProcessExpressionType(((struct Initializer *)(*structInitializers).last)->__anon1.exp);
ListAdd(structInitializers, MkInitializerAssignment(MkExpClass(MkListOne(MkSpecifierName("BuiltInContainer")), (((void *)0)))));
ProcessExpressionType(((struct Initializer *)(*structInitializers).last)->__anon1.exp);
ListAdd(structInitializers, MkInitializerAssignment(MkExpClass(CopyList(specs, CopySpecifier), CopyDeclarator(decl))));
ProcessExpressionType(((struct Initializer *)(*structInitializers).last)->__anon1.exp);
-exp->expType = ProcessTypeString(templateString, 0x0);
+exp->expType = ProcessTypeString(templateString, 0);
exp->type = 5;
exp->__anon1.list = MkListOne(MkExpCast(MkTypeName(MkListOne(MkSpecifierName(templateString)), (((void *)0))), MkExpOp((((void *)0)), '&', expExt = MkExpExtensionInitializer(MkTypeName(MkListOne(MkSpecifierName("BuiltInContainer")), (((void *)0))), MkInitializerList(structInitializers)))));
ProcessExpressionType(expExt);
}
else
{
-exp->expType = ProcessTypeString("Container", 0x0);
+exp->expType = ProcessTypeString("Container", 0);
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "Couldn't determine type of array elements\n", (((void *)0))));
}
break;
}
if(exp->expType && (exp->expType->kind == 9 || exp->expType->kind == 10 || exp->expType->kind == 15) && !exp->expType->__anon1.__anon1.members.first && exp->expType->__anon1.__anon1.enumName)
{
-struct Symbol * symbol = FindSymbol(exp->expType->__anon1.__anon1.enumName, curContext, globalContext, 0x1, 0x0);
+struct Symbol * symbol = FindSymbol(exp->expType->__anon1.__anon1.enumName, curContext, globalContext, 1, 0);
if(symbol)
{
}
else
{
-struct __ecereNameSpace__ecere__sys__NamedLink * member;
+struct __ecereNameSpace__ecere__sys__NamedLink64 * member;
for(member = symbol->type->__anon1.__anon1.members.first; member; member = member->next)
{
-struct __ecereNameSpace__ecere__sys__NamedLink * value = (value = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink), value->name = __ecereNameSpace__ecere__sys__CopyString(member->name), value);
+struct __ecereNameSpace__ecere__sys__NamedLink64 * value = (value = __ecereNameSpace__ecere__com__eSystem_New0(structSize_NamedLink64), value->name = __ecereNameSpace__ecere__sys__CopyString(member->name), value);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&exp->expType->__anon1.__anon1.members, value);
}
exp->needTemplateCast = 1;
if(exp->destType->kind == 0)
;
-else if(!CheckExpressionType(exp, exp->destType, 0x0, !exp->destType->casted))
+else if(!CheckExpressionType(exp, exp->destType, 0, !exp->destType->casted))
{
if(!exp->destType->count || unresolved)
{
char expString[10240];
expString[0] = '\0';
-PrintType(exp->destType, type2, 0x0, 0x1);
+PrintType(exp->destType, type2, 0, 1);
if(inCompiler)
{
PrintExpression(exp, expString);
type2[0] = '\0';
if(inCompiler)
{
-PrintType(exp->expType, type1, 0x0, 0x1);
-PrintType(exp->destType, type2, 0x0, 0x1);
+PrintType(exp->expType, type1, 0, 1);
+PrintType(exp->destType, type2, 0, 1);
}
if(exp->destType->truth && exp->destType->__anon1._class && exp->destType->__anon1._class->__anon1.registered && !strcmp(exp->destType->__anon1._class->__anon1.registered->name, "bool") && exp->expType->kind != 0 && exp->expType->kind != 9 && exp->expType->kind != 10 && (exp->expType->kind != 8 || exp->expType->classObjectType || (exp->expType->__anon1._class && exp->expType->__anon1._class->__anon1.registered && exp->expType->__anon1._class->__anon1.registered->type != 1)))
;
ApplyAnyObjectLogic(exp);
if(!notByReference && exp->expType && exp->expType->kind == 8 && exp->expType->__anon1._class && exp->expType->__anon1._class->__anon1.registered && exp->expType->__anon1._class->__anon1.registered->type == 5 && (!exp->destType || (exp->destType->kind != 3 && exp->destType->kind != 4 && exp->destType->kind != 22 && exp->destType->kind != 23 && exp->destType->kind != 5 && exp->destType->kind != 2 && exp->destType->kind != 1 && exp->destType->kind != 24)))
{
-exp->byReference = 0x1;
+exp->byReference = 1;
}
yylloc = oldyylloc;
}
if(curMember)
{
if(!curMember->dataType)
-curMember->dataType = ProcessTypeString(curMember->dataTypeString, 0x0);
+curMember->dataType = ProcessTypeString(curMember->dataTypeString, 0);
initializerType = curMember->dataType;
}
}
if(initializerType && type && (type->kind == 9 || type->kind == 10))
initializerType = initializerType->next;
if(!i->isConstant)
-init->isConstant = 0x0;
+init->isConstant = 0;
}
if(type && type->kind == 12)
FreeType(initializerType);
struct Symbol * symbol = FindType(curContext, spec->__anon1.__anon1.name);
if(symbol)
-DeclareType(symbol->type, 0x1, 0x1);
+DeclareType(symbol->type, 1, 1);
else if((symbol = spec->__anon1.__anon1.symbol) && symbol->__anon1.registered && symbol->__anon1.registered->type == 1 && declareStruct)
-DeclareStruct(spec->__anon1.__anon1.name, 0x0);
+DeclareStruct(spec->__anon1.__anon1.name, 0);
break;
}
case 2:
spec->type = 1;
spec->__anon1.__anon1.name = ReplaceThisClass(thisClass);
spec->__anon1.__anon1.symbol = FindClass(spec->__anon1.__anon1.name);
-ProcessSpecifier(spec, 0x0);
+ProcessSpecifier(spec, 0);
}
}
}
{
case 1:
{
-unsigned int declareStruct = 0x0;
+unsigned int declareStruct = 0;
if(decl->__anon1.__anon1.declarators)
{
{
if(subType->kind == 8)
{
-declareStruct = 0x1;
+declareStruct = 1;
break;
}
else if(subType->kind == 13)
{
struct Specifier * spec;
struct Declarator * d;
-unsigned int declareStruct = 0x0;
+unsigned int declareStruct = 0;
if(decl->__anon1.__anon1.declarators)
{
{
if(subType->kind == 8)
{
-declareStruct = 0x1;
+declareStruct = 1;
break;
}
else if(subType->kind == 13)
DeclareProperty(prop, setName, getName);
strcpy(propName, "__ecereProp_");
-FullClassNameCat(propName, prop->_class->fullName, 0x0);
+FullClassNameCat(propName, prop->_class->fullName, 0);
strcat(propName, "_");
-FullClassNameCat(propName, prop->name, 0x1);
+FullClassNameCat(propName, prop->name, 1);
strcpy(propNameM, "__ecerePropM_");
-FullClassNameCat(propNameM, prop->_class->fullName, 0x0);
+FullClassNameCat(propNameM, prop->_class->fullName, 0);
strcat(propNameM, "_");
-FullClassNameCat(propNameM, prop->name, 0x1);
+FullClassNameCat(propNameM, prop->name, 1);
if(prop->isWatchable)
{
args = MkList();
ListAdd(stmt->__anon1.expressions, MkExpCall(MkExpIdentifier(MkIdentifier("ecere::com::eInstance_FireSelfWatchers")), args));
}
if(curFunction->propSet && !strcmp(curFunction->propSet->string, prop->name) && (!object || (object->type == 0 && !strcmp(object->__anon1.__anon1.identifier->string, "this"))))
-curFunction->propSet->fireWatchersDone = 0x1;
+curFunction->propSet->fireWatchersDone = 1;
}
extern struct Declaration * MkDeclarationInst(struct Instantiation * inst);
FreeType(((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->destType);
((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->destType = MkClassType("bool");
-((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->destType->truth = 0x1;
+((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->destType->truth = 1;
for(exp = (*stmt->__anon1.ifStmt.exp).first; exp; exp = exp->next)
{
ProcessExpressionType(exp);
FreeType(((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->destType);
((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->destType = MkClassType("bool");
-((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->destType->truth = 0x1;
+((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->destType->truth = 1;
for(exp = (*stmt->__anon1.whileStmt.exp).first; exp; exp = exp->next)
{
ProcessExpressionType(exp);
{
FreeType(((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->destType);
((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->destType = MkClassType("bool");
-((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->destType->truth = 0x1;
+((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->destType->truth = 1;
}
for(exp = (*stmt->__anon1.doWhile.exp).first; exp; exp = exp->next)
{
{
FreeType(((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->destType);
((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->destType = MkClassType("bool");
-((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->destType->truth = 0x1;
+((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->destType->truth = 1;
}
if(stmt->__anon1.forStmt.check)
ProcessStatement(stmt->__anon1.forStmt.check);
if(!e->next)
{
FreeType(e->destType);
-e->destType = ProcessTypeString("Container", 0x0);
+e->destType = ProcessTypeString("Container", 0);
}
if(!isBuiltin || e->next)
ProcessExpressionType(e);
struct __ecereNameSpace__ecere__com__Class * _class = source ? source->__anon1._class->__anon1.registered : (((void *)0));
struct Symbol * symbol;
struct Expression * expIt = (((void *)0));
-unsigned int isMap = 0x0, isArray = 0x0, isLinkList = 0x0, isList = 0x0, isCustomAVLTree = 0x0;
+unsigned int isMap = 0, isArray = 0, isLinkList = 0, isList = 0, isCustomAVLTree = 0;
struct __ecereNameSpace__ecere__com__Class * arrayClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "Array");
struct __ecereNameSpace__ecere__com__Class * linkListClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "LinkList");
struct __ecereNameSpace__ecere__com__Class * customAVLTreeClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "CustomAVLTree");
{
struct __ecereNameSpace__ecere__com__Class * mapClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "Map");
-isCustomAVLTree = 0x1;
+isCustomAVLTree = 1;
if(__ecereNameSpace__ecere__com__eClass_IsDerived(source->__anon1._class->__anon1.registered, mapClass))
-isMap = 0x1;
+isMap = 1;
}
else if(source && __ecereNameSpace__ecere__com__eClass_IsDerived(source->__anon1._class->__anon1.registered, arrayClass))
-isArray = 0x1;
+isArray = 1;
else if(source && __ecereNameSpace__ecere__com__eClass_IsDerived(source->__anon1._class->__anon1.registered, linkListClass))
{
struct __ecereNameSpace__ecere__com__Class * listClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "List");
-isLinkList = 0x1;
+isLinkList = 1;
isList = __ecereNameSpace__ecere__com__eClass_IsDerived(source->__anon1._class->__anon1.registered, listClass);
}
if(isArray)
}
else
{
-if(!MatchTypeExpression(e, type, (((void *)0)), 0x0, 0x1))
+if(!MatchTypeExpression(e, type, (((void *)0)), 0, 1))
{
FreeType(type);
type = e->expType;
ProcessExpressionType(e);
if(e->expType)
{
-if(!MatchTypeExpression(e, type, (((void *)0)), 0x0, 0x1))
+if(!MatchTypeExpression(e, type, (((void *)0)), 0, 1))
{
FreeType(e->expType);
e->expType = (((void *)0));
if(type)
{
typeStringBuf[0] = '\0';
-PrintType(type, typeStringBuf, 0x0, 0x1);
+PrintType(type, typeStringBuf, 0, 1);
typeString = typeStringBuf;
FreeType(type);
}
struct Expression * e;
builtinCount = (*arrayExp->__anon1.list).count;
-type = ProcessTypeString(typeString, 0x0);
+type = ProcessTypeString(typeString, 0);
while((e = (*arrayExp->__anon1.list).first))
{
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove((&*arrayExp->__anon1.list), e);
}
else
{
-arrayExp->expType = ProcessTypeString("Container", 0x0);
+arrayExp->expType = ProcessTypeString("Container", 0);
Compiler_Error(__ecereNameSpace__ecere__GetTranslatedString("ec", "Couldn't determine type of array elements\n", (((void *)0))));
}
}
sprintf(iteratorType, "Iterator<%s, %s >", _class->templateArgs[2].__anon1.__anon1.dataTypeString, _class->templateArgs[1].__anon1.__anon1.dataTypeString);
stmt->__anon1.compound.declarations = MkListOne(MkDeclarationInst(MkInstantiationNamed(MkListOne(MkSpecifierName(iteratorType)), MkExpIdentifier(id), MkListOne(MkMembersInitList(MkListOne(MkMemberInit(isMap ? MkListOne(MkIdentifier("map")) : (((void *)0)), MkInitializerAssignment(MkExpBrackets(exp)))))))));
}
-symbol = FindSymbol(id->string, curContext, curContext, 0x0, 0x0);
+symbol = FindSymbol(id->string, curContext, curContext, 0, 0);
if(block)
{
switch(block->type)
func = MkClassFunction(MkListOne(MkSpecifier(VOID)), (((void *)0)), MkDeclaratorFunction(MkDeclaratorIdentifier(MkIdentifier(watcherName)), MkListOne(MkTypeName(MkListOne(MkSpecifierName(object->expType->__anon1._class->string)), MkDeclaratorIdentifier(MkIdentifier("value"))))), (((void *)0)));
ProcessClassFunctionBody(func, propWatch->compound);
propWatch->compound = (((void *)0));
-createdExternal = ProcessClassFunction(watcherClass, func, ast, curExternal, 0x1);
+createdExternal = ProcessClassFunction(watcherClass, func, ast, curExternal, 1);
createdExternal->symbol->idCode = external->symbol->idCode;
curExternal = createdExternal;
ProcessFunction(createdExternal->__anon1.function);
DeclareProperty(prop, setName, getName);
strcpy(propName, "__ecereProp_");
-FullClassNameCat(propName, prop->_class->fullName, 0x0);
+FullClassNameCat(propName, prop->_class->fullName, 0);
strcat(propName, "_");
-FullClassNameCat(propName, prop->name, 0x1);
+FullClassNameCat(propName, prop->name, 1);
ListAdd(args, CopyExpression(object));
ListAdd(args, MkExpIdentifier(MkIdentifier(propName)));
ListAdd(args, watcher ? CopyExpression(watcher) : MkExpIdentifier(MkIdentifier("this")));
DeclareProperty(prop, setName, getName);
strcpy(propName, "__ecereProp_");
-FullClassNameCat(propName, prop->_class->fullName, 0x0);
+FullClassNameCat(propName, prop->_class->fullName, 0);
strcat(propName, "_");
-FullClassNameCat(propName, prop->name, 0x1);
+FullClassNameCat(propName, prop->name, 1);
ListAdd(args, CopyExpression(object));
ListAdd(args, MkExpIdentifier(MkIdentifier(propName)));
ListAdd(args, watcher ? CopyExpression(watcher) : MkExpIdentifier(MkIdentifier("this")));
char structName[1024];
struct Declarator * funcDecl;
struct Symbol * thisSymbol;
-unsigned int typedObject = 0x0;
+unsigned int typedObject = 0;
if(_class && !_class->base)
{
if(_class && !_class->symbol)
_class->symbol = FindClass(_class->fullName);
classSym = _class ? _class->symbol : (((void *)0));
-typedObject = 0x1;
+typedObject = 1;
}
thisClass = _class;
if(inCompiler && _class)
if(type->classObjectType != 1)
{
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert(&symbol->type->__anon1.__anon2.params, (((void *)0)), MkClassType(_class->fullName));
-symbol->type->__anon1.__anon2.staticMethod = 0x1;
+symbol->type->__anon1.__anon2.staticMethod = 1;
symbol->type->__anon1.__anon2.thisClass = (((void *)0));
-symbol->type->extraParam = 0x0;
+symbol->type->extraParam = 0;
}
}
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, _class->fullName, 0x1);
+FullClassNameCat(className, _class->fullName, 1);
structName[0] = (char)0;
-FullClassNameCat(structName, _class->fullName, 0x0);
+FullClassNameCat(structName, _class->fullName, 0);
funcDecl = GetFuncDecl(function->declarator);
if(funcDecl)
{
}
if(!function->propertyNoThis)
{
-struct TypeName * thisParam;
+struct TypeName * thisParam = (((void *)0));
if(type->classObjectType != 1)
{
struct Expression * exp, * bytePtr;
strcpy(pointerName, "__ecerePointer_");
-FullClassNameCat(pointerName, _class->fullName, 0x0);
+FullClassNameCat(pointerName, _class->fullName, 0);
{
char className[1024];
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
DeclareClass(classSym, className);
}
bytePtr = QBrackets(MkExpCast(QMkType("char", QMkPtrDecl((((void *)0)))), QMkExpId("this")));
name[0] = (char)0;
if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)function->module + structSize_Instance)))->importType != 1 && (!function->dataType || !function->dataType->dllExport))
strcpy(name, "__ecereFunction_");
-FullClassNameCat(name, s, 0x0);
+FullClassNameCat(name, s, 0);
DeclareFunction(function, name);
}
}
DeclareFunctionUtil("eInstance_StopWatching");
DeclareFunctionUtil("eInstance_Watch");
DeclareFunctionUtil("eInstance_FireWatchers");
-DeclareStruct("ecere::com::Class", 0x0);
-DeclareStruct("ecere::com::Instance", 0x0);
-DeclareStruct("ecere::com::Property", 0x0);
-DeclareStruct("ecere::com::DataMember", 0x0);
-DeclareStruct("ecere::com::Method", 0x0);
-DeclareStruct("ecere::com::SerialBuffer", 0x0);
-DeclareStruct("ecere::com::ClassTemplateArgument", 0x0);
+DeclareStruct("ecere::com::Class", 0);
+DeclareStruct("ecere::com::Instance", 0);
+DeclareStruct("ecere::com::Property", 0);
+DeclareStruct("ecere::com::DataMember", 0);
+DeclareStruct("ecere::com::Method", 0);
+DeclareStruct("ecere::com::SerialBuffer", 0);
+DeclareStruct("ecere::com::ClassTemplateArgument", 0);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove((&*ast), temp);
for(external = (*ast).first; external; external = external->next)
{
sprintf(registerName, "__ecereCreateModuleInstances_%s", moduleName);
declarator = MkDeclaratorFunction(MkDeclaratorIdentifier(MkIdentifier(registerName)), (((void *)0)));
{
-struct FunctionDefinition * function = _MkFunction(specifiers, declarator, (((void *)0)), 0x0);
+struct FunctionDefinition * function = _MkFunction(specifiers, declarator, (((void *)0)), 0);
ProcessFunctionBody(function, createInstancesBody);
ListAdd(ast, MkExternalFunction(function));
sprintf(registerName, "__ecereDestroyModuleInstances_%s", moduleName);
declarator = MkDeclaratorFunction(MkDeclaratorIdentifier(MkIdentifier(registerName)), (((void *)0)));
{
-struct FunctionDefinition * function = _MkFunction(specifiers, declarator, (((void *)0)), 0x0);
+struct FunctionDefinition * function = _MkFunction(specifiers, declarator, (((void *)0)), 0);
ProcessFunctionBody(function, destroyInstancesBody);
ListAdd(ast, MkExternalFunction(function));
static unsigned int ProcessInstMembers_SimpleMemberEnsure(struct __ecereNameSpace__ecere__com__DataMember * parentMember, struct Instantiation * inst, struct Expression * instExp, struct __ecereNameSpace__ecere__sys__OldList * list, unsigned int zeroOut)
{
struct Symbol * classSym = inst->_class->__anon1.__anon1.symbol;
-unsigned int fullSet = 0x1;
+unsigned int fullSet = 1;
struct __ecereNameSpace__ecere__com__DataMember * dataMember;
for(dataMember = parentMember->members.first; dataMember; dataMember = dataMember->next)
if(!dataMember->name && (dataMember->type == 1 || dataMember->type == 2))
{
if(!ProcessInstMembers_SimpleMemberEnsure(dataMember, inst, instExp, list, zeroOut))
-fullSet = 0x0;
+fullSet = 0;
}
else
{
-unsigned int memberFilled = 0x0;
+unsigned int memberFilled = 0;
if(inst->members && (*inst->members).first)
{
}
if(!firstID->next && thisMember == dataMember)
{
-memberFilled = 0x1;
+memberFilled = 1;
break;
}
}
__ecereNameSpace__ecere__com__eClass_FindNextMember(classSym->__anon1.registered, &curClass, &curMember, subMemberStack, &subMemberStackPos);
if(curMember == dataMember)
{
-memberFilled = 0x1;
+memberFilled = 1;
break;
}
}
memberExp = MkExpMember(instExpCopy, MkIdentifier(dataMember->name));
memberExp->__anon1.member.memberType = 3;
-value->usage = (value->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+value->usage = (value->usage & ~0x1) | (((unsigned int)(1)) << 0);
setExp = MkExpOp(memberExp, '=', value);
value->loc = inst->loc;
setExp->loc = inst->loc;
ProcessExpression(setExp);
ListAdd(list, setExp);
}
-fullSet = 0x0;
+fullSet = 0;
}
}
}
{
struct MembersInit * members;
struct Symbol * classSym = inst->_class->__anon1.__anon1.symbol;
-unsigned int fullSet = 0x1, convert = 0x0;
+unsigned int fullSet = 1, convert = 0;
if(classSym && classSym->__anon1.registered && classSym->__anon1.registered->type == 2)
{
struct __ecereNameSpace__ecere__com__DataMember * subMemberStack[256];
int subMemberStackPos = 0;
struct MemberInit * member = (((void *)0));
-unsigned int found = 0x0;
+unsigned int found = 0;
for(members = (*inst->members).first; members; members = members->next)
{
}
if(thisMember == bitMember)
{
-found = 0x1;
+found = 1;
break;
}
}
__ecereNameSpace__ecere__com__eClass_FindNextMember(classSym->__anon1.registered, &curClass, (struct __ecereNameSpace__ecere__com__DataMember **)&curMember, subMemberStack, &subMemberStackPos);
if(curMember == bitMember)
{
-found = 0x1;
+found = 1;
break;
}
}
{
struct MemberInit * member = (((void *)0));
struct __ecereNameSpace__ecere__com__Property * prop = (((void *)0));
-unsigned int found = 0x0;
+unsigned int found = 0;
for(members = (*inst->members).first; members; members = members->next)
{
prop = __ecereNameSpace__ecere__com__eClass_FindProperty(_class, firstID->string, privateModule);
if(prop)
{
-found = 0x1;
+found = 1;
break;
}
prop = (((void *)0));
}
else
{
-found = 0x1;
+found = 1;
break;
}
}
for(_class = classSym->__anon1.registered; _class->base != lastClass && _class->base->type != 1000; _class = _class->base)
;
if(_class->structSize != _class->memberOffset)
-fullSet = 0x0;
+fullSet = 0;
for(dataMember = _class->membersAndProperties.first; dataMember; dataMember = dataMember->next)
{
if(!dataMember->isProperty)
if(!dataMember->name && (dataMember->type == 1 || dataMember->type == 2))
{
if(!ProcessInstMembers_SimpleMemberEnsure(dataMember, inst, instExp, list, zeroOut))
-fullSet = 0x0;
+fullSet = 0;
}
else
{
-unsigned int memberFilled = 0x0;
+unsigned int memberFilled = 0;
if(inst->members && (*inst->members).first)
{
}
if(!firstID->next && curMember == dataMember)
{
-memberFilled = 0x1;
+memberFilled = 1;
break;
}
}
__ecereNameSpace__ecere__com__eClass_FindNextMember(classSym->__anon1.registered, &curClass, &curMember, subMemberStack, &subMemberStackPos);
if(curMember == dataMember)
{
-memberFilled = 0x1;
+memberFilled = 1;
break;
}
}
memberExp = MkExpMember(instExpCopy, MkIdentifier(dataMember->name));
memberExp->__anon1.member.memberType = 3;
-value->usage = (value->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+value->usage = (value->usage & ~0x1) | (((unsigned int)(1)) << 0);
setExp = MkExpOp(memberExp, '=', value);
value->loc = inst->loc;
setExp->loc = inst->loc;
ProcessExpression(setExp);
ListAdd(list, setExp);
}
-fullSet = 0x0;
+fullSet = 0;
}
}
}
if(ident)
{
struct Expression * memberExp;
-unsigned int freeMemberExp = 0x0;
+unsigned int freeMemberExp = 0;
if(thisMember && thisMember->isProperty && ((struct __ecereNameSpace__ecere__com__Property *)thisMember)->conversion)
-convert = 0x1;
+convert = 1;
if(member->identifiers && (*member->identifiers).count > 1)
{
struct Identifier * id = (*member->identifiers).first;
memberExp = MkExpMember(instExpCopy, ident);
if(member->initializer && member->initializer->type == 0 && member->initializer->__anon1.exp)
{
-member->initializer->__anon1.exp->usage = (member->initializer->__anon1.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+member->initializer->__anon1.exp->usage = (member->initializer->__anon1.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
setExp = MkExpOp(memberExp, '=', member->initializer->__anon1.exp);
member->initializer->__anon1.exp = (((void *)0));
FreeInitializer(member->initializer);
}
else
{
-freeMemberExp = 0x1;
+freeMemberExp = 1;
}
memberExp->loc = inst->loc;
if(member->identifiers)
});
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add(&classSym->module->classes, classSym->_import);
}
-classSym->_import->itself = 0x1;
+classSym->_import->itself = 1;
specifiers = MkList();
declarators = MkList();
ListAdd(specifiers, MkSpecifier(EXTERN));
0
};
-ProcessInstMembers(inst, (((void *)0)), &list, 0x0);
+ProcessInstMembers(inst, (((void *)0)), &list, 0);
ProcessExpression(inst->exp);
exp->type = 4;
exp->__anon1.op.op = '=';
0, 0, 0, 0, 0
};
-ProcessInstMembers(inst, (((void *)0)), &list, 0x0);
+ProcessInstMembers(inst, (((void *)0)), &list, 0);
FreeType(exp->destType);
*exp = *(struct Expression *)list.first;
{
};
struct Expression * e;
-ProcessInstMembers(inst, (((void *)0)), &list, 0x0);
+ProcessInstMembers(inst, (((void *)0)), &list, 0);
ProcessExpression(inst->exp);
exp->type = 4;
exp->__anon1.op.op = '=';
0
};
-ProcessInstMembers(inst, (((void *)0)), &list, 0x0);
+ProcessInstMembers(inst, (((void *)0)), &list, 0);
if(list.first)
{
struct Expression * e = list.first;
{
exp->type = 5;
exp->__anon1.list = MkList();
-ProcessInstMembers(inst, inst->exp, exp->__anon1.list, 0x0);
+ProcessInstMembers(inst, inst->exp, exp->__anon1.list, 0);
ProcessExpression(inst->exp);
if(!(*exp->__anon1.list).count)
{
instExp = QMkExpId(className);
instExp->loc = exp->loc;
instExp->expType = MkClassType(inst->_class->__anon1.__anon1.name);
-decl->__anon1.inst->fullSet = ProcessInstMembers(inst, instExp, exp->__anon1.list, 0x0);
+decl->__anon1.inst->fullSet = ProcessInstMembers(inst, instExp, exp->__anon1.list, 0);
ListAdd(exp->__anon1.list, instExp);
}
}
sprintf(size, "%d", classSym->__anon1.registered->templateClass ? classSym->__anon1.registered->templateClass->structSize : classSym->__anon1.registered->structSize);
newCall = MkExpCall(QMkExpId("ecere::com::eSystem_New0"), MkListOne(MkExpConstant(size)));
-newCall->byReference = 0x1;
+newCall->byReference = 1;
}
else
{
if(classSym && classSym->__anon1.registered && classSym->__anon1.registered->type == 5 && classSym->__anon1.registered->templateClass)
{
classSym = FindClass(classSym->__anon1.registered->templateClass->fullName);
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
}
else
-FullClassNameCat(className, inst->_class->__anon1.__anon1.name, 0x1);
+FullClassNameCat(className, inst->_class->__anon1.__anon1.name, 1);
DeclareClass(classSym, className);
newCall = MkExpCall(QMkExpId("ecere::com::eInstance_New"), MkListOne(QMkExpId(className)));
newCall->usage = exp->usage;
ProcessExpressionType(newCall);
newCall->expType->passAsTemplate = exp->expType->passAsTemplate;
-newCall->byReference = 0x1;
+newCall->byReference = 1;
}
if(inst->exp)
{
}
else
FreeExpression(newCall);
-ProcessInstMembers(inst, inst->exp, exp->__anon1.list, 0x0);
+ProcessInstMembers(inst, inst->exp, exp->__anon1.list, 0);
if(inst->built)
FreeExpression(inst->exp);
}
instExp = QMkExpId(ecereTemp);
instExp->tempCount = tempCount;
instExp->expType = MkClassType(inst->_class->__anon1.__anon1.name);
-instExp->byReference = 0x1;
-ProcessInstMembers(inst, instExp, expList, 0x0);
+instExp->byReference = 1;
+ProcessInstMembers(inst, instExp, expList, 0);
FreeExpression(instExp);
if(exp->usage)
{
struct Expression * tmpExp = QMkExpId(ecereTemp);
-tmpExp->byReference = 0x1;
+tmpExp->byReference = 1;
ListAdd(expList, tmpExp);
}
exp->tempCount = tempCount;
{
case '=':
if(exp->__anon1.op.exp2)
-exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(1)) << 0);
if(exp->__anon1.op.exp1)
-exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x2) | (((unsigned int)(0x1)) << 1);
+exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x2) | (((unsigned int)(1)) << 1);
break;
case MUL_ASSIGN:
case DIV_ASSIGN:
case XOR_ASSIGN:
case OR_ASSIGN:
if(exp->__anon1.op.exp2)
-exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(1)) << 0);
if(exp->__anon1.op.exp1)
-exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x2) | (((unsigned int)(0x1)) << 1);
+exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x2) | (((unsigned int)(1)) << 1);
break;
case INC_OP:
case DEC_OP:
if(exp->__anon1.op.exp1)
-exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x2) | (((unsigned int)(0x1)) << 1);
+exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x2) | (((unsigned int)(1)) << 1);
case '&':
if(exp->__anon1.op.exp1 && exp->__anon1.op.exp2)
{
-exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
-exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(1)) << 0);
+exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(1)) << 0);
}
break;
case '*':
case '-':
if(exp->__anon1.op.exp1)
{
-exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(1)) << 0);
}
case '~':
case '!':
if(exp->__anon1.op.exp2)
-exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(1)) << 0);
break;
case '/':
case '%':
case AND_OP:
case OR_OP:
if(exp->__anon1.op.exp1)
-exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(1)) << 0);
if(exp->__anon1.op.exp2)
-exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(1)) << 0);
break;
}
if(exp->__anon1.op.exp1)
struct Type * type = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
CopyTypeInto(type, exp->__anon1.op.exp1->destType);
-type->passAsTemplate = 0x0;
+type->passAsTemplate = 0;
FreeType(exp->__anon1.op.exp1->destType);
exp->__anon1.op.exp1->destType = type;
}
struct Type * type = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_Type);
CopyTypeInto(type, exp->__anon1.op.exp2->destType);
-type->passAsTemplate = 0x0;
+type->passAsTemplate = 0;
FreeType(exp->__anon1.op.exp2->destType);
exp->__anon1.op.exp2->destType = type;
}
e->tempCount = (__simpleStruct0 = e->tempCount, __simpleStruct1 = exp->tempCount, (__simpleStruct0 > __simpleStruct1) ? __simpleStruct0 : __simpleStruct1);
if(!e->next)
{
-e->usage |= (exp->usage & ((((unsigned int)(0x1)) | (((unsigned int)(0x1)) << 2))));
+e->usage |= (exp->usage & ((((unsigned int)(1)) | (((unsigned int)(1)) << 2))));
}
ProcessExpression(e);
exp->tempCount = (__simpleStruct2 = exp->tempCount, __simpleStruct3 = e->tempCount, (__simpleStruct2 > __simpleStruct3) ? __simpleStruct2 : __simpleStruct3);
{
struct Expression * e;
-exp->__anon1.index.exp->usage = (exp->__anon1.index.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.index.exp->usage = (exp->__anon1.index.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(exp->__anon1.index.exp);
for(e = (*exp->__anon1.index.index).first; e; e = e->next)
{
if(!e->next)
-e->usage = (e->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+e->usage = (e->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(e);
}
exp->tempCount = exp->__anon1.index.exp->tempCount;
{
for(e = (*exp->__anon1.call.arguments).first; e; e = e->next)
{
-e->usage = (e->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
-e->usage = (e->usage & ~0x4) | (((unsigned int)(0x1)) << 2);
+e->usage = (e->usage & ~0x1) | (((unsigned int)(1)) << 0);
+e->usage = (e->usage & ~0x4) | (((unsigned int)(1)) << 2);
ProcessExpression(e);
}
}
}
case 8:
{
-exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(exp->__anon1.member.exp);
if(!exp->__anon1.member.memberType)
{
{
exp->__anon1.member.memberType = 1;
if(!prop->dataType)
-prop->dataType = ProcessTypeString(prop->dataTypeString, 0x0);
+prop->dataType = ProcessTypeString(prop->dataTypeString, 0);
FreeType(exp->expType);
exp->expType = prop->dataType;
if(prop->dataType)
else if(member)
{
exp->__anon1.member.memberType = 3;
-DeclareStruct(_class->fullName, 0x0);
+DeclareStruct(_class->fullName, 0);
if(!member->dataType)
-member->dataType = ProcessTypeString(member->dataTypeString, 0x0);
+member->dataType = ProcessTypeString(member->dataTypeString, 0);
FreeType(exp->expType);
exp->expType = member->dataType;
if(member->dataType)
struct Expression * e;
if(((unsigned int)((exp->usage & 0x1) >> 0)))
-exp->__anon1.cond.cond->usage = (exp->__anon1.cond.cond->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.cond.cond->usage = (exp->__anon1.cond.cond->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(exp->__anon1.cond.cond);
for(e = (*exp->__anon1.cond.exp).first; e; e = e->next)
{
if(!e->next && ((unsigned int)((exp->usage & 0x1) >> 0)))
-e->usage = (e->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+e->usage = (e->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(e);
}
if(exp->__anon1.cond.elseExp)
{
if(((unsigned int)((exp->usage & 0x1) >> 0)))
-exp->__anon1.cond.elseExp->usage = (exp->__anon1.cond.elseExp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.cond.elseExp->usage = (exp->__anon1.cond.elseExp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(exp->__anon1.cond.elseExp);
}
break;
switch(init->type)
{
case 0:
-init->__anon1.exp->usage = (init->__anon1.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+init->__anon1.exp->usage = (init->__anon1.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(init->__anon1.exp);
break;
case 1:
{
struct Symbol * classSym = inst->_class->__anon1.__anon1.symbol;
struct __ecereNameSpace__ecere__com__DataMember * dataMember = (((void *)0));
-unsigned int someMemberSet = 0x0;
+unsigned int someMemberSet = 0;
int anonID = 1;
for(dataMember = parentMember->members.first; dataMember; dataMember = dataMember->next)
{
if(subList)
FreeList(subList, FreeInitializer);
-return 0x0;
+return 0;
}
if(subList && (*subList).count)
{
sprintf(id, "__anon%d", anonID);
init->id = MkIdentifier(id);
ListAdd(list, init);
-someMemberSet = 0x1;
+someMemberSet = 1;
}
else
{
if(list->count)
-someMemberSet = 0x1;
+someMemberSet = 1;
(__ecereNameSpace__ecere__com__eSystem_Delete(subList), subList = 0);
}
anonID++;
struct __ecereNameSpace__ecere__com__DataMember * curMember = (((void *)0));
struct __ecereNameSpace__ecere__com__DataMember * subMemberStack[256];
int subMemberStackPos = 0;
-unsigned int found = 0x0;
+unsigned int found = 0;
if(inst->members && (*inst->members).first)
{
struct MemberInit * next = member->next;
if(!dataMember->dataType)
-dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0x0);
+dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0);
symbol = (dataMember->dataType && dataMember->dataType->kind == 8) ? dataMember->dataType->__anon1._class : (((void *)0));
spec = _MkSpecifierName(dataMember->dataTypeString, symbol, (((void *)0)));
{
}
member->initializer->__anon1.exp = MkExpInstance(MkInstantiation(spec, (((void *)0)), MkListOne(MkMembersInitList(partList))));
}
-found = 0x1;
+found = 1;
break;
}
}
__ecereNameSpace__ecere__com__eClass_FindNextMember(classSym->__anon1.registered, &curClass, &curMember, subMemberStack, &subMemberStackPos);
if(curMember == dataMember)
{
-found = 0x1;
+found = 1;
break;
}
}
}
else
{
-member->initializer->__anon1.exp->usage = (member->initializer->__anon1.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+member->initializer->__anon1.exp->usage = (member->initializer->__anon1.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(member->initializer->__anon1.exp);
init->type = 0;
init->__anon1.exp = member->initializer->__anon1.exp;
member->initializer->__anon1.exp = (((void *)0));
FreeInitializer(member->initializer);
member->initializer = (((void *)0));
-someMemberSet = 0x1;
+someMemberSet = 1;
}
else if(member && member->initializer && member->initializer->type == 1)
{
member->initializer->id = MkIdentifier(dataMember->name);
ListAdd(list, member->initializer);
member->initializer = (((void *)0));
-someMemberSet = 0x1;
+someMemberSet = 1;
}
else if(dataMember && dataMember->dataTypeString && parentMember->type != 1 && namedParentMember->type != 1)
{
if(namedParentMember->type == 1 && dataMember->name)
init->id = MkIdentifier(dataMember->name);
if(!dataMember->dataType)
-dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0x0);
+dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0);
classSym = (dataMember->dataType && dataMember->dataType->kind == 8) ? dataMember->dataType->__anon1._class : (((void *)0));
if(classSym && classSym->__anon1.registered && classSym->__anon1.registered->type == 1)
{
init->type = 0;
init->__anon1.exp = MkExpConstant("0");
}
-someMemberSet = 0x1;
+someMemberSet = 1;
if(init)
ListAdd(list, init);
}
if(namedParentMember->type == 1 && dataMember->name)
init->id = MkIdentifier(dataMember->name);
if(!dataMember->dataType && dataMember->dataTypeString)
-dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0x0);
+dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0);
classSym = (dataMember->dataType && dataMember->dataType->kind == 8) ? dataMember->dataType->__anon1._class : (((void *)0));
if(classSym && classSym->__anon1.registered && classSym->__anon1.registered->type == 1)
{
}
ListAdd(list, init);
}
-return 0x1;
+return 1;
}
extern void Compiler_Error(const char * format, ...);
int anonID = 1;
if(recursionCount > 500)
-return 0x0;
+return 0;
recursionCount++;
while(_class != classSym->__anon1.registered)
{
{
struct __ecereNameSpace__ecere__sys__OldList * subList = MkList();
-if(!ProcessBracketInst_DataMember(dataMember, inst, subList ? subList : list, dataMember, 0x0))
+if(!ProcessBracketInst_DataMember(dataMember, inst, subList ? subList : list, dataMember, 0))
{
if(subList)
FreeList(subList, FreeInitializer);
recursionCount--;
-return 0x0;
+return 0;
}
if(dataMember->type == 2 || (subList && (*subList).count))
{
{
struct MembersInit * members;
struct MemberInit * member = (((void *)0));
-unsigned int found = 0x0;
+unsigned int found = 0;
if(inst->members && (*inst->members).first)
{
continue;
}
recursionCount--;
-return 0x0;
+return 0;
}
if((*member->identifiers).count > 1 && member->initializer && member->initializer->type == 0)
{
struct Symbol * symbol;
if(!dataMember->dataType)
-dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0x0);
+dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0);
symbol = (dataMember->dataType && dataMember->dataType->kind == 8) ? dataMember->dataType->__anon1._class : (((void *)0));
spec = _MkSpecifierName(dataMember->dataTypeString, symbol, (((void *)0)));
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove((&*member->identifiers), firstID);
member->initializer->__anon1.exp = MkExpInstance(MkInstantiation(spec, (((void *)0)), MkListOne(MkMembersInitList(partList))));
member->identifiers = (((void *)0));
}
-found = 0x1;
+found = 1;
break;
}
}
continue;
}
recursionCount--;
-return 0x0;
+return 0;
}
-found = 0x1;
+found = 1;
break;
}
}
}
else
{
-member->initializer->__anon1.exp->usage = (member->initializer->__anon1.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+member->initializer->__anon1.exp->usage = (member->initializer->__anon1.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(member->initializer->__anon1.exp);
ListAdd(list, MkInitializerAssignment(CopyExpression(member->initializer->__anon1.exp)));
}
-member->takeOutExp = 0x1;
+member->takeOutExp = 1;
}
else if(member && member->initializer && member->initializer->type == 1)
{
struct Symbol * classSym;
if(!dataMember->dataType)
-dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0x0);
+dataMember->dataType = ProcessTypeString(dataMember->dataTypeString, 0);
classSym = (dataMember->dataType && dataMember->dataType->kind == 8) ? dataMember->dataType->__anon1._class : (((void *)0));
if(classSym && classSym->__anon1.registered && classSym->__anon1.registered->type == 1)
{
}
}
recursionCount--;
-return 0x1;
+return 1;
}
static void ProcessDeclaration(struct Declaration * decl)
0
};
-ProcessInstMembers(inst, inst->exp, &list, 0x0);
+ProcessInstMembers(inst, inst->exp, &list, 0);
ProcessExpression(inst->exp);
ListAdd(decl->__anon1.__anon1.specifiers, MkSpecifierName(inst->_class->__anon1.__anon1.name));
ListAdd(decl->__anon1.__anon1.declarators, MkInitDeclarator(MkDeclaratorIdentifier(inst->exp->__anon1.__anon1.identifier), MkInitializerAssignment(list.first)));
0
};
-ProcessInstMembers(inst, inst->exp, &list, 0x0);
+ProcessInstMembers(inst, inst->exp, &list, 0);
ProcessExpression(inst->exp);
ListAdd(decl->__anon1.__anon1.specifiers, MkSpecifierName(inst->_class->__anon1.__anon1.name));
ListAdd(decl->__anon1.__anon1.declarators, MkInitDeclarator(MkDeclaratorIdentifier(inst->exp->__anon1.__anon1.identifier), MkInitializerAssignment(list.first)));
{
struct Expression * exp;
-DeclareStruct(inst->_class->__anon1.__anon1.name, 0x0);
+DeclareStruct(inst->_class->__anon1.__anon1.name, 0);
ProcessExpression(inst->exp);
{
if(inst->fullSet)
{
FreeList(list, FreeInitializer);
exp = MkExpBrackets(MkList());
-ProcessInstMembers(inst, inst->exp, exp->__anon1.list, 0x1);
+ProcessInstMembers(inst, inst->exp, exp->__anon1.list, 1);
ListAdd(exp->__anon1.list, CopyExpression(inst->exp));
ListAdd(decl->__anon1.__anon1.specifiers, MkSpecifierName(inst->_class->__anon1.__anon1.name));
ListAdd(decl->__anon1.__anon1.declarators, MkInitDeclarator(MkDeclaratorIdentifier(inst->exp->__anon1.__anon1.identifier), MkInitializerAssignment(exp)));
if(classSym && classSym->__anon1.registered && classSym->__anon1.registered->type == 5 && classSym->__anon1.registered->templateClass)
{
classSym = FindClass(classSym->__anon1.registered->templateClass->fullName);
-FullClassNameCat(className, classSym->string, 0x1);
+FullClassNameCat(className, classSym->string, 1);
}
else
-FullClassNameCat(className, inst->_class->__anon1.__anon1.name, 0x1);
+FullClassNameCat(className, inst->_class->__anon1.__anon1.name, 1);
if(classSym)
DeclareClass(classSym, className);
if(classSym && classSym->__anon1.registered && classSym->__anon1.registered->type == 5 && (classSym->__anon1.registered->templateClass ? classSym->__anon1.registered->templateClass->fixed : classSym->__anon1.registered->fixed))
{
newCall = MkExpCall(QMkExpId("ecere::com::eInstance_New"), MkListOne(QMkExpId(className)));
ProcessExpressionType(newCall);
-newCall->byReference = 0x1;
+newCall->byReference = 1;
}
if(inst->exp)
{
newExp = MkExpOp(CopyExpression(inst->exp), '=', newCall);
exp = MkExpBrackets(MkList());
ListAdd(exp->__anon1.list, newExp);
-ProcessInstMembers(inst, inst->exp, exp->__anon1.list, 0x0);
+ProcessInstMembers(inst, inst->exp, exp->__anon1.list, 0);
ListAdd(exp->__anon1.list, inst->exp);
ProcessExpression(inst->exp);
inst->exp = (((void *)0));
{
struct Expression * exp;
-((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
for(exp = (*stmt->__anon1.ifStmt.exp).first; exp; exp = exp->next)
{
ProcessExpression(exp);
{
struct Expression * exp;
-((struct Expression *)(*stmt->__anon1.switchStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.switchStmt.exp).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.switchStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.switchStmt.exp).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
for(exp = (*stmt->__anon1.switchStmt.exp).first; exp; exp = exp->next)
ProcessExpression(exp);
ProcessStatement(stmt->__anon1.switchStmt.stmt);
{
struct Expression * exp;
-((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
for(exp = (*stmt->__anon1.whileStmt.exp).first; exp; exp = exp->next)
{
ProcessExpression(exp);
{
struct Expression * exp;
-((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
for(exp = (*stmt->__anon1.doWhile.exp).first; exp; exp = exp->next)
{
ProcessExpression(exp);
ProcessStatement(stmt->__anon1.forStmt.init);
if(stmt->__anon1.forStmt.check && stmt->__anon1.forStmt.check->__anon1.expressions)
{
-((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->usage = (((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->usage = (((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
}
if(stmt->__anon1.forStmt.check)
ProcessStatement(stmt->__anon1.forStmt.check);
if(stmt->__anon1.expressions && (*stmt->__anon1.expressions).last)
{
-((struct Expression *)(*stmt->__anon1.expressions).last)->usage = (((struct Expression *)(*stmt->__anon1.expressions).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.expressions).last)->usage = (((struct Expression *)(*stmt->__anon1.expressions).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
for(exp = (*stmt->__anon1.expressions).first; exp; exp = exp->next)
{
ProcessExpression(exp);
if(e->expType && e->type != 2)
{
struct Type * type = e->expType;
-unsigned int isPointer = 0x0;
+unsigned int isPointer = 0;
if(type->kind == 8)
{
static unsigned int FixMember(struct Expression * exp)
{
-unsigned int byReference = 0x0;
+unsigned int byReference = 0;
for(; exp; )
{
if(exp->type == 5 || exp->type == 32)
{
if((*exp->__anon1.list).count > 1)
-byReference = 0x1;
+byReference = 1;
exp = (*exp->__anon1.list).last;
}
else if(exp->type == 11)
else
{
if(byReference)
-FixReference(exp, 0x1);
+FixReference(exp, 1);
else
byReference = exp->byReference;
break;
struct __ecereNameSpace__ecere__sys__OldList * specs = MkList();
strcpy(name, "__ecereVMethodID_");
-FullClassNameCat(name, method->_class->fullName, 0x0);
+FullClassNameCat(name, method->_class->fullName, 0);
strcat(name, "_");
strcat(name, method->name);
DeclareMethod(method, name);
char className[1024];
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, _class->fullName, 0x1);
+FullClassNameCat(className, _class->fullName, 1);
if(!_class->symbol)
_class->symbol = FindClass(_class->fullName);
DeclareClass(_class->symbol, className);
char name[1024];
strcpy(name, "__ecereMethod_");
-FullClassNameCat(name, method->_class->fullName, 0x0);
+FullClassNameCat(name, method->_class->fullName, 0);
strcat(name, "_");
strcat(name, method->name);
(__ecereNameSpace__ecere__com__eSystem_Delete(exp->__anon1.__anon1.identifier->string), exp->__anon1.__anon1.identifier->string = 0);
{
case '=':
if(exp->__anon1.op.exp2)
-exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(1)) << 0);
break;
case MUL_ASSIGN:
case DIV_ASSIGN:
case AND_ASSIGN:
case XOR_ASSIGN:
case OR_ASSIGN:
-exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(1)) << 0);
break;
case INC_OP:
case DEC_OP:
case '&':
if(exp->__anon1.op.exp1 && exp->__anon1.op.exp2)
{
-exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
-exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(1)) << 0);
+exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(1)) << 0);
}
else if(exp->__anon1.op.exp2)
{
-exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x40) | (((unsigned int)(0x1)) << 6);
+exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x40) | (((unsigned int)(1)) << 6);
}
break;
case '*':
case '-':
if(exp->__anon1.op.exp1)
{
-exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(1)) << 0);
}
case '~':
case '!':
if(exp->__anon1.op.exp2)
-exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(1)) << 0);
break;
case '/':
case '%':
case AND_OP:
case OR_OP:
if(exp->__anon1.op.exp1)
-exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp1->usage = (exp->__anon1.op.exp1->usage & ~0x1) | (((unsigned int)(1)) << 0);
if(exp->__anon1.op.exp2)
-exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.op.exp2->usage = (exp->__anon1.op.exp2->usage & ~0x1) | (((unsigned int)(1)) << 0);
break;
}
if(exp->__anon1.op.op == '=' || exp->__anon1.op.op == MUL_ASSIGN || exp->__anon1.op.op == DIV_ASSIGN || exp->__anon1.op.op == ADD_ASSIGN || exp->__anon1.op.op == MOD_ASSIGN || exp->__anon1.op.op == SUB_ASSIGN || exp->__anon1.op.op == LEFT_ASSIGN || exp->__anon1.op.op == RIGHT_ASSIGN || exp->__anon1.op.op == AND_ASSIGN || exp->__anon1.op.op == OR_ASSIGN || exp->__anon1.op.op == XOR_ASSIGN || exp->__anon1.op.op == INC_OP || exp->__anon1.op.op == DEC_OP)
char setName[1024], getName[1024];
testExp = exp->__anon1.op.exp1->__anon1.member.exp;
-while(0x1)
+while(1)
{
while(testExp)
{
parentExp->__anon1.member.exp = tempExp;
value = MkExpBrackets(MkList());
copy = CopyExpression(topExp);
-copy->usage = (copy->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
-copy->usage = (copy->usage & ~0x20) | (((unsigned int)(0x1)) << 5);
+copy->usage = (copy->usage & ~0x1) | (((unsigned int)(1)) << 0);
+copy->usage = (copy->usage & ~0x20) | (((unsigned int)(1)) << 5);
ListAdd(value->__anon1.list, copy);
ListAdd(value->__anon1.list, MkExpOp(exp->__anon1.op.exp1, exp->__anon1.op.op, exp->__anon1.op.exp2));
ListAdd(value->__anon1.list, CopyExpression(tempExp));
parentExp->__anon1.member.exp = tempExp;
value = MkExpBrackets(MkList());
copy = CopyExpression(topExp);
-copy->usage = (copy->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
-copy->usage = (copy->usage & ~0x20) | (((unsigned int)(0x1)) << 5);
+copy->usage = (copy->usage & ~0x1) | (((unsigned int)(1)) << 0);
+copy->usage = (copy->usage & ~0x20) | (((unsigned int)(1)) << 5);
ListAdd(value->__anon1.list, copy);
ListAdd(value->__anon1.list, MkExpOp(exp->__anon1.op.exp1, exp->__anon1.op.op, exp->__anon1.op.exp2));
ListAdd(value->__anon1.list, CopyExpression(tempExp));
char setName[1024], getName[1024];
char * setToUse = convertTo ? getName : setName;
char * getToUse = convertTo ? setName : getName;
-unsigned int needAddress = 0x0;
+unsigned int needAddress = 0;
int operator = exp->__anon1.op.op;
switch(operator)
}
value->expType = memberExp->expType;
memberExp->expType->refCount++;
-value->usage = (value->usage & ~0x4) | (((unsigned int)(0x1)) << 2);
+value->usage = (value->usage & ~0x4) | (((unsigned int)(1)) << 2);
}
else if(value)
{
exp2 = (((void *)0));
}
if(value)
-value->usage = (value->usage & ~0x4) | (((unsigned int)(0x1)) << 2);
+value->usage = (value->usage & ~0x4) | (((unsigned int)(1)) << 2);
DeclareProperty(prop, setName, getName);
if(memberExp->__anon1.member.exp)
ProcessExpression(memberExp->__anon1.member.exp);
if(convertTo)
{
ListAdd(newExp->__anon1.call.arguments, value);
-ListAdd(newExp->__anon1.call.arguments, FixReference(memberExp->__anon1.member.exp, 0x1));
+ListAdd(newExp->__anon1.call.arguments, FixReference(memberExp->__anon1.member.exp, 1));
}
else
{
-ListAdd(newExp->__anon1.call.arguments, FixReference(memberExp->__anon1.member.exp, 0x1));
+ListAdd(newExp->__anon1.call.arguments, FixReference(memberExp->__anon1.member.exp, 1));
ListAdd(newExp->__anon1.call.arguments, value);
}
-needAddress = 0x1;
+needAddress = 1;
}
memberExp->__anon1.member.exp = (((void *)0));
if(value)
value->tempCount = exp->tempCount;
ProcessExpression(value);
if(needAddress)
-FixReference(value, 0x1);
+FixReference(value, 1);
}
FreeExpression(memberExp);
}
exp->type = 5;
exp->__anon1.list = MkList();
-object->usage = (object->usage & ~0x80) | (((unsigned int)(0x1)) << 7);
+object->usage = (object->usage & ~0x80) | (((unsigned int)(1)) << 7);
ProcessExpression(object);
ListAdd(args, object);
if(exp->expType && exp->expType->kind == 8 && exp->expType->__anon1._class && exp->expType->__anon1._class->__anon1.registered && exp->expType->__anon1._class->__anon1.registered->type == 0 && strcmp(exp->expType->__anon1._class->__anon1.registered->dataTypeString, "char *"))
if(_class->templateClass)
_class = _class->templateClass;
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, _class->fullName, 0x0);
+FullClassNameCat(className, _class->fullName, 0);
if(!_class->symbol)
_class->symbol = FindClass(_class->fullName);
DeclareClass(_class->symbol, className);
ListAdd(list, MkExpCall(QMkExpId("ecere::com::eSystem_Delete"), args));
o = CopyExpression(object);
ProcessExpressionType(o);
-o->usage = (o->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+o->usage = (o->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(o);
ListAdd(exp->__anon1.list, MkExpBrackets(MkListOne(MkExpCondition(o, MkListOne(MkExpBrackets(list)), MkExpConstant("0")))));
}
else if(exp->expType && exp->expType->kind == 20)
{
-struct Expression * argExp = GetTemplateArgExp(exp->expType->__anon1.templateParameter, thisClass, 0x0);
+struct Expression * argExp = GetTemplateArgExp(exp->expType->__anon1.templateParameter, thisClass, 0);
if(argExp)
{
{
if(exp->__anon1.op.op == '=' && exp->__anon1.op.exp1 && exp->__anon1.op.exp1->expType && exp->__anon1.op.exp1->expType->kind == 20 && (exp->__anon1.op.exp1->type == 6 || (exp->__anon1.op.exp1->type == 4 && exp->__anon1.op.exp1->__anon1.op.op == '*' && !exp->__anon1.op.exp1->__anon1.op.exp1)))
{
-struct Expression * argExp = GetTemplateArgExp(exp->__anon1.op.exp1->expType->__anon1.templateParameter, thisClass, 0x0);
+struct Expression * argExp = GetTemplateArgExp(exp->__anon1.op.exp1->expType->__anon1.templateParameter, thisClass, 0);
if(argExp)
{
}
else if(exp->__anon1.op.op == '*' && !exp->__anon1.op.exp1 && exp->__anon1.op.exp2 && exp->__anon1.op.exp2->expType && exp->__anon1.op.exp2->expType->kind == 13 && exp->__anon1.op.exp2->expType->__anon1.type && exp->__anon1.op.exp2->expType->__anon1.type->kind == 20)
{
-struct Expression * argExp = GetTemplateArgExp(exp->__anon1.op.exp2->expType->__anon1.type->__anon1.templateParameter, thisClass, 0x0);
+struct Expression * argExp = GetTemplateArgExp(exp->__anon1.op.exp2->expType->__anon1.type->__anon1.templateParameter, thisClass, 0);
if(argExp)
{
exp->__anon1.op.exp1->tempCount = exp->__anon1.op.exp2->tempCount;
ProcessExpression(exp->__anon1.op.exp1);
if(exp->__anon1.op.op == '=' && exp->__anon1.op.exp2 && (!exp->__anon1.op.exp2->byReference || (exp->__anon1.op.exp2->expType && exp->__anon1.op.exp2->expType->kind == 8 && exp->__anon1.op.exp2->expType->__anon1._class && exp->__anon1.op.exp2->expType->__anon1._class->__anon1.registered && exp->__anon1.op.exp2->expType->__anon1._class->__anon1.registered->type == 1)) && exp->__anon1.op.exp2->expType && (exp->__anon1.op.exp2->expType->kind != 13 && exp->__anon1.op.exp2->expType->kind != 20))
-FixReference(exp->__anon1.op.exp1, 0x0);
+FixReference(exp->__anon1.op.exp1, 0);
}
if(exp->__anon1.op.exp2)
{
{
if((!exp->__anon1.op.exp1 && (!exp->__anon1.op.exp2 || !exp->__anon1.op.exp2->expType || exp->__anon1.op.exp2->expType->kind != 8 || !exp->__anon1.op.exp2->expType->__anon1._class || !exp->__anon1.op.exp2->expType->__anon1._class->__anon1.registered || (exp->__anon1.op.exp2->expType->__anon1._class->__anon1.registered->type != 0 && exp->__anon1.op.exp2->expType->__anon1._class->__anon1.registered->type != 1 && exp->__anon1.op.exp2->expType->__anon1._class->__anon1.registered->type != 5))) || (exp->__anon1.op.exp1 && exp->__anon1.op.exp1->expType && exp->__anon1.op.exp1->expType->kind != 13 && exp->__anon1.op.exp1->expType->kind != 20))
{
-FixReference(exp->__anon1.op.exp2, exp->__anon1.op.exp1 ? exp->__anon1.op.exp1->byReference : 0x0);
+FixReference(exp->__anon1.op.exp2, exp->__anon1.op.exp1 ? exp->__anon1.op.exp1->byReference : 0);
}
}
}
if(exp->__anon1.op.op == '&' && !exp->__anon1.op.exp1 && exp->__anon1.op.exp2 && exp->__anon1.op.exp2->expType && exp->__anon1.op.exp2->expType->kind == 20 && !exp->__anon1.op.exp2->expType->passAsTemplate)
{
struct Expression * exp2 = exp->__anon1.op.exp2;
-struct Expression * argExp = GetTemplateArgExp(exp2->expType->__anon1.templateParameter, thisClass, 0x0);
+struct Expression * argExp = GetTemplateArgExp(exp2->expType->__anon1.templateParameter, thisClass, 0);
if(argExp)
{
{
if(!e->next)
{
-e->usage |= (exp->usage & (((unsigned int)(0x1)) | (((unsigned int)(0x1)) << 2) | (((unsigned int)(0x1)) << 4)));
+e->usage |= (exp->usage & (((unsigned int)(1)) | (((unsigned int)(1)) << 2) | (((unsigned int)(1)) << 4)));
}
e->tempCount = exp->tempCount;
ProcessExpression(e);
{
struct Expression * e;
struct Expression * checkedExp = exp->__anon1.index.exp;
-unsigned int isBuiltin = 0x0;
+unsigned int isBuiltin = 0;
while(checkedExp->type == 23 || checkedExp->type == 5 || checkedExp->type == 11)
{
if(checkedExp->type == 23)
{
-isBuiltin = 0x1;
+isBuiltin = 1;
break;
}
else if(checkedExp->type == 5)
checkedExp = checkedExp->__anon1.cast.exp;
}
exp->__anon1.index.exp->tempCount = exp->tempCount;
-exp->__anon1.index.exp->usage = (exp->__anon1.index.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.index.exp->usage = (exp->__anon1.index.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(exp->__anon1.index.exp);
if(exp->__anon1.index.exp->expType && exp->__anon1.index.exp->expType->kind == 13 && exp->__anon1.index.exp->expType->__anon1.type && exp->__anon1.index.exp->expType->__anon1.type->kind == 20)
{
-struct Expression * argExp = GetTemplateArgExp(exp->__anon1.index.exp->expType->__anon1.type->__anon1.templateParameter, thisClass, 0x0);
+struct Expression * argExp = GetTemplateArgExp(exp->__anon1.index.exp->expType->__anon1.type->__anon1.templateParameter, thisClass, 0);
if(argExp)
{
for(e = (*exp->__anon1.index.index).first; e; e = e->next)
{
if(!e->next)
-e->usage = (e->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+e->usage = (e->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(e);
}
exp->tempCount = exp->__anon1.index.exp->tempCount;
if(source->kind == 8 && source->__anon1._class && source->__anon1._class->__anon1.registered && source->__anon1._class->__anon1.registered != containerClass && __ecereNameSpace__ecere__com__eClass_IsDerived(source->__anon1._class->__anon1.registered, containerClass))
{
struct __ecereNameSpace__ecere__com__Class * _class = source->__anon1._class->__anon1.registered;
-unsigned int isArray = 0x0;
+unsigned int isArray = 0;
struct __ecereNameSpace__ecere__com__Class * arrayClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "Array");
if(source && __ecereNameSpace__ecere__com__eClass_IsDerived(source->__anon1._class->__anon1.registered, arrayClass))
-isArray = 0x1;
+isArray = 1;
if(isArray && _class->templateArgs)
{
struct __ecereNameSpace__ecere__sys__OldList * specs = MkList();
case 7:
{
struct Expression * e;
-unsigned int typedObject = 0x0;
+unsigned int typedObject = 0;
struct Type * ellipsisDestType = (((void *)0));
-unsigned int usedEllipsis = 0x0;
+unsigned int usedEllipsis = 0;
if(exp->__anon1.call.arguments)
{
int __simpleStruct2, __simpleStruct3;
int __simpleStruct0, __simpleStruct1;
-e->usage = (e->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
-e->usage = (e->usage & ~0x4) | (((unsigned int)(0x1)) << 2);
+e->usage = (e->usage & ~0x1) | (((unsigned int)(1)) << 0);
+e->usage = (e->usage & ~0x4) | (((unsigned int)(1)) << 2);
e->tempCount = (__simpleStruct0 = e->tempCount, __simpleStruct1 = exp->tempCount, (__simpleStruct0 > __simpleStruct1) ? __simpleStruct0 : __simpleStruct1);
ProcessExpression(e);
exp->tempCount = (__simpleStruct2 = exp->tempCount, __simpleStruct3 = e->tempCount, (__simpleStruct2 > __simpleStruct3) ? __simpleStruct2 : __simpleStruct3);
}
}
-exp->__anon1.call.exp->usage = (exp->__anon1.call.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
-exp->__anon1.call.exp->usage = (exp->__anon1.call.exp->usage & ~0x8) | (((unsigned int)(0x1)) << 3);
+exp->__anon1.call.exp->usage = (exp->__anon1.call.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
+exp->__anon1.call.exp->usage = (exp->__anon1.call.exp->usage & ~0x8) | (((unsigned int)(1)) << 3);
exp->__anon1.call.exp->tempCount = exp->tempCount;
ProcessExpression(exp->__anon1.call.exp);
if(exp->__anon1.call.exp->expType && exp->__anon1.call.exp->expType->kind == 16)
{
-unsigned int nullMemberExp = 0x0;
+unsigned int nullMemberExp = 0;
struct Expression * memberExp = (exp->__anon1.call.exp->type == 8) ? exp->__anon1.call.exp : (((void *)0));
struct __ecereNameSpace__ecere__com__Class * _class = exp->__anon1.call.exp->expType->__anon1.__anon3.methodClass;
struct __ecereNameSpace__ecere__com__Class * argClass = exp->__anon1.call.exp->expType->__anon1.__anon3.methodClass;
struct __ecereNameSpace__ecere__sys__OldList * specs = MkList();
strcpy(name, "__ecereVMethodID_");
-FullClassNameCat(name, method->_class->fullName, 0x0);
+FullClassNameCat(name, method->_class->fullName, 0);
strcat(name, "_");
strcat(name, method->name);
DeclareMethod(method, name);
{
struct TypeName * param;
-typedObject = 0x1;
+typedObject = 1;
param = MkTypeName(MkListOne(MkSpecifier(VOID)), MkDeclaratorPointer(MkPointer((((void *)0)), (((void *)0))), (((void *)0))));
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert((&*param->qualifiers), (((void *)0)), MkSpecifier(CONST));
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert((&*funcDecl->__anon1.function.parameters), (((void *)0)), param);
{
argClass = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "uintptr");
FreeType(memberExp->__anon1.member.exp->expType);
-memberExp->__anon1.member.exp->expType = ProcessTypeString("uintptr", 0x0);
-memberExp->__anon1.member.exp->byReference = 0x1;
+memberExp->__anon1.member.exp->expType = ProcessTypeString("uintptr", 0);
+memberExp->__anon1.member.exp->byReference = 1;
}
else
{
char string[1024] = "";
struct Symbol * classSym;
-PrintTypeNoConst(type, string, 0x0, 0x1);
+PrintTypeNoConst(type, string, 0, 1);
classSym = FindClass(string);
if(classSym)
argClass = classSym->__anon1.registered;
if(cl->templateClass && !_class && exp->__anon1.call.exp->expType->__anon1._class && !exp->__anon1.call.exp->expType->__anon1.__anon3.methodClass && (type->kind == 19 || (regClass && regClass->type == 0 && strcmp(regClass->dataTypeString, "char *"))))
cl = cl->templateClass;
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, cl->fullName, 0x1);
+FullClassNameCat(className, cl->fullName, 1);
if(!cl->symbol)
cl->symbol = FindClass(cl->fullName);
DeclareClass(cl->symbol, className);
char name[1024];
strcpy(name, "__ecereMethod_");
-FullClassNameCat(name, method->_class->fullName, 0x0);
+FullClassNameCat(name, method->_class->fullName, 0);
strcat(name, "_");
strcat(name, method->name);
if(!memberExp)
exp->__anon1.call.arguments = MkList();
if(typedObject && memberExp->__anon1.member.exp && memberExp->__anon1.member.exp->expType)
{
-unsigned int changeReference = 0x0;
+unsigned int changeReference = 0;
struct Expression * memberExpMemberExp = CopyExpression(memberExp->__anon1.member.exp);
if(argClass && (argClass->type == 4 || argClass->type == 3 || argClass->type == 2 || argClass->type == 1000) && strcmp(argClass->fullName, "class") && strcmp(argClass->fullName, "uintptr") && strcmp(argClass->fullName, "intptr"))
-changeReference = 0x1;
+changeReference = 1;
if(!memberExp->__anon1.member.exp->expType->classObjectType && ((((memberExp->__anon1.member.exp->expType->kind != 13 && (memberExp->__anon1.member.exp->expType->kind != 8 || !memberExp->__anon1.member.exp->expType->__anon1._class || !memberExp->__anon1.member.exp->expType->__anon1._class->__anon1.registered || memberExp->__anon1.member.exp->expType->__anon1._class->__anon1.registered->type == 1)))) || method->dataType->byReference))
-changeReference = 0x1;
+changeReference = 1;
if(typedObject && memberExp->__anon1.member.exp->expType->classObjectType && memberExp->__anon1.member.exp->expType->byReference != method->dataType->byReference)
-changeReference = 0x1;
+changeReference = 1;
if(changeReference)
{
if(memberExp->__anon1.member.exp->type == 5 && memberExp->__anon1.member.exp->__anon1.list && (*memberExp->__anon1.member.exp->__anon1.list).count == 1 && ((struct Expression *)(*memberExp->__anon1.member.exp->__anon1.list).first)->type == 4 && ((struct Expression *)(*memberExp->__anon1.member.exp->__anon1.list).first)->__anon1.op.op == '*' && !((struct Expression *)(*memberExp->__anon1.member.exp->__anon1.list).first)->__anon1.op.exp1)
struct Expression * checkedExp = memberExp->__anon1.member.exp;
struct Expression * parentExp = (((void *)0));
struct Expression * newExp;
-unsigned int disconnected = 0x0;
+unsigned int disconnected = 0;
while(((checkedExp->type == 5 || checkedExp->type == 32) && checkedExp->__anon1.list) || checkedExp->type == 11)
{
if(checkedExp && !disconnected)
{
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove((&*parentExp->__anon1.list), checkedExp);
-disconnected = 0x1;
+disconnected = 1;
}
}
else if(checkedExp->type == 11)
if(checkedExp && !disconnected)
{
checkedExp->__anon1.cast.exp = (((void *)0));
-disconnected = 0x1;
+disconnected = 1;
}
}
}
if(!parentExp)
-nullMemberExp = 0x1;
+nullMemberExp = 1;
newExp = (typedObject && !memberExp->__anon1.member.exp->expType->classObjectType) ? checkedExp : MkExpOp((((void *)0)), '&', checkedExp);
if(parentExp && (parentExp->type == 5 || parentExp->type == 32))
{
else
{
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert((&*exp->__anon1.call.arguments), (((void *)0)), memberExp->__anon1.member.exp);
-nullMemberExp = 0x1;
+nullMemberExp = 1;
}
}
else
{
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert((&*exp->__anon1.call.arguments), (((void *)0)), memberExp->__anon1.member.exp);
-nullMemberExp = 0x1;
+nullMemberExp = 1;
}
{
char className[1024];
else if(cl)
{
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, cl->fullName, 0x1);
+FullClassNameCat(className, cl->fullName, 1);
if(!cl->symbol)
cl->symbol = FindClass(cl->fullName);
DeclareClass(cl->symbol, className);
}
if(className[0])
{
-if(memberExp && cl && cl->type == 0 && (!type || type->byReference == 0x0) && strcmp(cl->dataTypeString, "char *"))
+if(memberExp && cl && cl->type == 0 && (!type || type->byReference == 0) && strcmp(cl->dataTypeString, "char *"))
{
struct Expression * c;
struct Context * context = PushContext();
else
{
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert((&*exp->__anon1.call.arguments), (((void *)0)), memberExp->__anon1.member.exp);
-nullMemberExp = 0x1;
+nullMemberExp = 1;
}
}
}
if(destType && (destType->classObjectType == 2 || destType->classObjectType == 3))
{
if(e->destType && e->destType->kind == 14)
-usedEllipsis = 0x1;
+usedEllipsis = 1;
ellipsisDestType = destType;
if(e && e->expType)
{
{
_class = __ecereNameSpace__ecere__com__eSystem_FindClass(privateModule, "uintptr");
FreeType(e->expType);
-e->expType = ProcessTypeString("uintptr", 0x0);
-e->byReference = 0x1;
+e->expType = ProcessTypeString("uintptr", 0);
+e->byReference = 1;
}
else
{
char string[1024] = "";
struct Symbol * classSym;
-PrintTypeNoConst(type, string, 0x0, 0x1);
+PrintTypeNoConst(type, string, 0, 1);
classSym = FindClass(string);
if(classSym)
_class = classSym->__anon1.registered;
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Remove((&*((struct Statement *)(*parentExp->__anon1.compound->__anon1.compound.statements).last)->__anon1.expressions), checkedExp);
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Add((&*((struct Statement *)(*parentExp->__anon1.compound->__anon1.compound.statements).last)->__anon1.expressions), newExp);
}
-e->byReference = 0x1;
+e->byReference = 1;
FreeType(checkedExp->expType);
FreeType(checkedExp->destType);
((checkedExp ? (__ecereClass_Expression->Destructor ? __ecereClass_Expression->Destructor((void *)checkedExp) : 0, __ecereNameSpace__ecere__com__eSystem_Delete(checkedExp)) : 0), checkedExp = 0);
newExp->prev = (((void *)0));
newExp->next = (((void *)0));
newExp->expType = (((void *)0));
-PrintTypeNoConst(e->expType, typeString, 0x0, 0x1);
+PrintTypeNoConst(e->expType, typeString, 0, 1);
decl = SpecDeclFromString(typeString, specs, (((void *)0)));
newExp->destType = ProcessType(specs, decl);
curContext = context;
checkedExp = checkedExp->__anon1.cast.exp;
}
newExp = MkExpOp((((void *)0)), '&', checkedExp);
-newExp->byReference = 0x1;
+newExp->byReference = 1;
if(parentExp->type == 7)
{
__ecereMethod___ecereNameSpace__ecere__sys__OldList_Insert((&*exp->__anon1.call.arguments), e->prev, newExp);
else
{
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, _class->fullName, 0x1);
+FullClassNameCat(className, _class->fullName, 1);
if(!_class->symbol)
_class->symbol = FindClass(_class->fullName);
DeclareClass(_class->symbol, className);
}
-if(_class->type == 0 && destType->byReference == 0x0 && strcmp(_class->dataTypeString, "char *"))
+if(_class->type == 0 && destType->byReference == 0 && strcmp(_class->dataTypeString, "char *"))
{
struct Expression * c;
struct Context * context = PushContext();
}
case 8:
{
-unsigned int changeToPtr = 0x0;
-unsigned int noHead = 0x0;
+unsigned int changeToPtr = 0;
+unsigned int noHead = 0;
struct Type * type = exp->__anon1.member.exp ? exp->__anon1.member.exp->expType : (((void *)0));
struct Specifier * memberClassSpecifier = exp->__anon1.member.member ? exp->__anon1.member.member->_class : (((void *)0));
char string[2048] = "";
struct Symbol * classSym;
-PrintTypeNoConst(type, string, 0x0, 0x1);
+PrintTypeNoConst(type, string, 0, 1);
classSym = FindClass(string);
_class = classSym ? classSym->__anon1.registered : (((void *)0));
}
char * nameToUse = convertTo ? setName : getName;
FreeIdentifier(exp->__anon1.member.member);
-exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(exp->__anon1.member.exp);
DeclareProperty(prop, setName, getName);
propertyClass = convertTo ? _class : ((((struct Symbol *)prop->symbol)->type && ((struct Symbol *)prop->symbol)->type->kind == 8) ? ((struct Symbol *)prop->symbol)->type->__anon1._class->__anon1.registered : ((struct Symbol *)prop->symbol)->_class);
exp->__anon1.call.exp = QMkExpId(nameToUse);
exp->__anon1.call.arguments = args;
}
-ListAdd(args, FixReference(ptr, 0x1));
+ListAdd(args, FixReference(ptr, 1));
}
else if(propertyClass && propertyClass->type == 3)
{
struct __ecereNameSpace__ecere__sys__OldList * args = MkList();
-ListAdd(args, FixReference(ptr, 0x1));
+ListAdd(args, FixReference(ptr, 1));
exp->type = 7;
exp->__anon1.call.exp = QMkExpId(nameToUse);
exp->__anon1.call.arguments = args;
struct Expression * tempExp;
className[0] = (char)0;
-FullClassNameCat(className, propertyClass->fullName, 0x0);
+FullClassNameCat(className, propertyClass->fullName, 0);
ListAdd(specs, MkStructOrUnion(3, MkIdentifier(className), (((void *)0))));
sprintf(className, "__simpleStruct%d", curContext->simpleID++);
ListAdd(decls, MkInitDeclarator(MkDeclaratorIdentifier(MkIdentifier(className)), (((void *)0))));
tempExp->expType = MkClassType(propertyClass->fullName);
if(convertTo)
{
-ListAdd(args, FixReference(CopyExpression(tempExp), 0x1));
-ListAdd(args, FixReference(ptr, 0x1));
+ListAdd(args, FixReference(CopyExpression(tempExp), 1));
+ListAdd(args, FixReference(ptr, 1));
}
else
{
-ListAdd(args, FixReference(ptr, 0x1));
-ListAdd(args, FixReference(CopyExpression(tempExp), 0x1));
+ListAdd(args, FixReference(ptr, 1));
+ListAdd(args, FixReference(CopyExpression(tempExp), 1));
}
if(((unsigned int)((exp->usage & 0x20) >> 5)))
{
ListAdd(exp->__anon1.list, MkExpCall(QMkExpId(nameToUse), args));
if(((unsigned int)((exp->usage & 0x10) >> 4)))
{
-ListAdd(exp->__anon1.list, FixReference(tempExp, 0x1));
-exp->byReference = 0x1;
+ListAdd(exp->__anon1.list, FixReference(tempExp, 1));
+exp->byReference = 1;
}
else
ListAdd(exp->__anon1.list, tempExp);
exp->type = 7;
exp->__anon1.call.exp = QMkExpId(nameToUse);
exp->__anon1.call.arguments = MkList();
-ListAdd(exp->__anon1.call.arguments, FixReference(ptr, 0x1));
+ListAdd(exp->__anon1.call.arguments, FixReference(ptr, 1));
}
}
else if(prop->conversion)
struct Declarator * decl;
typeString[0] = (char)0;
-PrintType(exp->expType, typeString, 0x0, 0x0);
+PrintType(exp->expType, typeString, 0, 0);
decl = SpecDeclFromString(typeString, specs, (((void *)0)));
exp->__anon1.cast.typeName = MkTypeName(specs, decl);
}
char name[1024];
FreeIdentifier(exp->__anon1.member.member);
-exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(exp->__anon1.member.exp);
if(method->type == 1)
{
strcpy(name, "__ecereVMethodID_");
-FullClassNameCat(name, method->_class->fullName, 0x0);
+FullClassNameCat(name, method->_class->fullName, 0);
strcat(name, "_");
strcat(name, method->name);
exp->type = 6;
char className[1024];
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, _class->fullName, 0x1);
+FullClassNameCat(className, _class->fullName, 1);
if(!_class->symbol)
_class->symbol = FindClass(_class->fullName);
DeclareClass(_class->symbol, className);
FreeExpression(exp->__anon1.member.exp);
exp->type = 0;
strcpy(name, "__ecereMethod_");
-FullClassNameCat(name, method->_class->fullName, 0x0);
+FullClassNameCat(name, method->_class->fullName, 0);
strcat(name, "_");
strcat(name, method->name);
exp->__anon1.__anon1.identifier = MkIdentifier(name);
}
if(((unsigned int)((exp->usage & 0x1) >> 0)))
{
-exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
}
ProcessExpression(exp->__anon1.member.exp);
if(type->kind == 8 && type->__anon1._class && type->__anon1._class->__anon1.registered)
-DeclareStruct(type->__anon1._class->__anon1.registered->fullName, 0x0);
+DeclareStruct(type->__anon1._class->__anon1.registered->fullName, 0);
if(_class->type == 5)
{
-noHead = 0x1;
+noHead = 1;
}
else if(_class->type == 1)
{
-changeToPtr = 0x1;
+changeToPtr = 1;
}
else if(_class->type == 2)
{
char pointerName[1024];
strcpy(pointerName, "__ecerePointer_");
-FullClassNameCat(pointerName, type->__anon1._class->__anon1.registered->fullName, 0x0);
+FullClassNameCat(pointerName, type->__anon1._class->__anon1.registered->fullName, 0);
if(exp->__anon1.member.exp->__anon1.__anon1.identifier)
FreeIdentifier(exp->__anon1.member.exp->__anon1.__anon1.identifier);
exp->__anon1.member.exp->__anon1.__anon1.identifier = MkIdentifier(pointerName);
char className[1024];
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, member->_class->fullName, 0x1);
+FullClassNameCat(className, member->_class->fullName, 1);
if(!member->_class->symbol)
member->_class->symbol = FindClass(member->_class->fullName);
DeclareClass(member->_class->symbol, className);
-DeclareStruct(member->_class->fullName, 0x0);
+DeclareStruct(member->_class->fullName, 0);
structName[0] = (char)0;
-FullClassNameCat(structName, member->_class->fullName, 0x0);
+FullClassNameCat(structName, member->_class->fullName, 0);
checkedExp = exp->__anon1.member.exp;
while(((checkedExp->type == 5 || checkedExp->type == 32) && checkedExp->__anon1.list && (*checkedExp->__anon1.list).count == 1) || checkedExp->type == 11)
{
FreeSpecifier(memberClassSpecifier);
if(exp->__anon1.member.exp && (exp->type == 8 || exp->type == 9))
{
-exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
-exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x10) | (((unsigned int)(0x1)) << 4);
+exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
+exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x10) | (((unsigned int)(1)) << 4);
exp->__anon1.member.exp->tempCount = exp->tempCount;
ProcessExpression(exp->__anon1.member.exp);
exp->tempCount = exp->__anon1.member.exp->tempCount;
struct Expression * e = (*((struct Statement *)(*exp->__anon1.compound->__anon1.compound.statements).last)->__anon1.expressions).last;
if(e)
-e->usage |= exp->usage & (((unsigned int)(0x1)) | (((unsigned int)(0x1)) << 2) | (((unsigned int)(0x1)) << 4));
+e->usage |= exp->usage & (((unsigned int)(1)) | (((unsigned int)(1)) << 2) | (((unsigned int)(1)) << 4));
ProcessStatement(exp->__anon1.compound);
break;
}
case 9:
{
-exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.member.exp->usage = (exp->__anon1.member.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(exp->__anon1.member.exp);
break;
}
if(spec && spec->type == 8 && !exp->__anon1.typeName->declarator)
{
-struct Expression * argExp = GetTemplateArgExp(spec->__anon1.templateParameter, thisClass, 0x0);
+struct Expression * argExp = GetTemplateArgExp(spec->__anon1.templateParameter, thisClass, 0);
if(argExp)
{
{
if(exp->__anon1.cast.exp)
{
-exp->__anon1.cast.exp->usage |= exp->usage & (((unsigned int)(0x1)) | (((unsigned int)(0x1)) << 4));
+exp->__anon1.cast.exp->usage |= exp->usage & (((unsigned int)(1)) | (((unsigned int)(1)) << 4));
ProcessExpression(exp->__anon1.cast.exp);
if(exp->__anon1.cast.exp->byReference)
exp->byReference = exp->__anon1.cast.exp->byReference;
if(exp->expType && exp->expType->kind == 8 && exp->expType->__anon1._class && exp->expType->__anon1._class->__anon1.registered && exp->expType->__anon1._class->__anon1.registered->type == 1 && exp->__anon1.cast.exp->expType && (exp->__anon1.cast.exp->expType->kind == 13 || exp->__anon1.cast.exp->expType->kind == 12 || (exp->__anon1.cast.exp->expType->kind == 8 && exp->__anon1.cast.exp->expType->__anon1._class && exp->__anon1.cast.exp->expType->__anon1._class->__anon1.registered && !strcmp(exp->__anon1.cast.exp->expType->__anon1._class->__anon1.registered->dataTypeString, "char *"))))
-exp->byReference = 0x1;
+exp->byReference = 1;
}
break;
}
struct Expression * e;
if(((unsigned int)((exp->usage & 0x1) >> 0)))
-exp->__anon1.cond.cond->usage = (exp->__anon1.cond.cond->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.cond.cond->usage = (exp->__anon1.cond.cond->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(exp->__anon1.cond.cond);
for(e = (*exp->__anon1.cond.exp).first; e; e = e->next)
{
if(!e->next && ((unsigned int)((exp->usage & 0x1) >> 0)))
-e->usage = (e->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+e->usage = (e->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(e);
}
if(((unsigned int)((exp->usage & 0x1) >> 0)))
-exp->__anon1.cond.elseExp->usage = (exp->__anon1.cond.elseExp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+exp->__anon1.cond.elseExp->usage = (exp->__anon1.cond.elseExp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(exp->__anon1.cond.elseExp);
break;
}
if(exp->__anon1._classExp.specifiers && (*exp->__anon1._classExp.specifiers).first && ((struct Specifier *)(*exp->__anon1._classExp.specifiers).first)->type == 8)
{
struct Specifier * spec = (*exp->__anon1._classExp.specifiers).first;
-struct Expression * argExp = GetTemplateArgExp(spec->__anon1.templateParameter, thisClass, 0x1);
+struct Expression * argExp = GetTemplateArgExp(spec->__anon1.templateParameter, thisClass, 1);
if(argExp)
{
struct Symbol * classSym = FindClass(string);
strcpy(className, "__ecereClass_");
-FullClassNameCat(className, string, 0x1);
+FullClassNameCat(className, string, 1);
DeclareClass(classSym, className);
(__ecereNameSpace__ecere__com__eSystem_Delete(string), string = 0);
FreeList(exp->__anon1._classExp.specifiers, FreeSpecifier);
if(((unsigned int)((exp->usage & 0x80) >> 7)))
strcpy(typeString, "void *");
else
-PrintType(exp->expType, typeString, 0x0, 0x0);
+PrintType(exp->expType, typeString, 0, 0);
decl = SpecDeclFromString(typeString, specs, (((void *)0)));
if(specs && (*specs).first && ((struct Specifier *)(*specs).first)->type == 8 && exp->destType && !exp->destType->passAsTemplate && exp->destType->kind == 20 && exp->destType->__anon1.templateParameter && (exp->destType->__anon1.templateParameter->dataTypeString || exp->destType->__anon1.templateParameter->__anon1.dataType) && !((unsigned int)((exp->usage & 0x4) >> 2)))
{
case 0:
if(init->__anon1.exp)
{
-init->__anon1.exp->usage = (init->__anon1.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+init->__anon1.exp->usage = (init->__anon1.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(init->__anon1.exp);
if(init->__anon1.exp->destType && init->__anon1.exp->destType->kind == 8 && init->__anon1.exp->destType->__anon1._class && init->__anon1.exp->destType->__anon1._class->__anon1.registered && init->__anon1.exp->destType->__anon1._class->__anon1.registered->type == 5)
{
-FixReference(init->__anon1.exp, 0x1);
+FixReference(init->__anon1.exp, 1);
}
else if(init->__anon1.exp->destType && init->__anon1.exp->destType->kind == 8)
-FixReference(init->__anon1.exp, 0x0);
+FixReference(init->__anon1.exp, 0);
}
break;
case 1:
case 1:
if(stmt->__anon1.caseStmt.exp)
{
-stmt->__anon1.caseStmt.exp->usage = (stmt->__anon1.caseStmt.exp->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+stmt->__anon1.caseStmt.exp->usage = (stmt->__anon1.caseStmt.exp->usage & ~0x1) | (((unsigned int)(1)) << 0);
ProcessExpression(stmt->__anon1.caseStmt.exp);
}
if(stmt->__anon1.caseStmt.stmt)
{
struct Expression * exp;
-((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.ifStmt.exp).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
for(exp = (*stmt->__anon1.ifStmt.exp).first; exp; exp = exp->next)
{
ProcessExpression(exp);
if(stmt->__anon1.switchStmt.exp && (*stmt->__anon1.switchStmt.exp).last)
{
-((struct Expression *)(*stmt->__anon1.switchStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.switchStmt.exp).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.switchStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.switchStmt.exp).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
for(exp = (*stmt->__anon1.switchStmt.exp).first; exp; exp = exp->next)
{
ProcessExpression(exp);
if(stmt->__anon1.whileStmt.exp && (*stmt->__anon1.whileStmt.exp).last)
{
-((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.whileStmt.exp).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
for(exp = (*stmt->__anon1.whileStmt.exp).first; exp; exp = exp->next)
{
ProcessExpression(exp);
if(stmt->__anon1.doWhile.exp && (*stmt->__anon1.doWhile.exp).last)
{
-((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->usage = (((struct Expression *)(*stmt->__anon1.doWhile.exp).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
for(exp = (*stmt->__anon1.doWhile.exp).first; exp; exp = exp->next)
{
ProcessExpression(exp);
{
if(stmt->__anon1.forStmt.check->__anon1.expressions)
{
-((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->usage = (((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->usage = (((struct Expression *)(*stmt->__anon1.forStmt.check->__anon1.expressions).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
}
ProcessStatement(stmt->__anon1.forStmt.check);
}
if(stmt->__anon1.expressions)
{
-((struct Expression *)(*stmt->__anon1.expressions).last)->usage = (((struct Expression *)(*stmt->__anon1.expressions).last)->usage & ~0x1) | (((unsigned int)(0x1)) << 0);
+((struct Expression *)(*stmt->__anon1.expressions).last)->usage = (((struct Expression *)(*stmt->__anon1.expressions).last)->usage & ~0x1) | (((unsigned int)(1)) << 0);
for(exp = (*stmt->__anon1.expressions).first; exp; exp = exp->next)
{
ProcessExpression(exp);
if(!exp->next && exp->destType && exp->destType->byReference)
-FixReference(exp, 0x1);
+FixReference(exp, 1);
}
}
break;
char name[1024];
name[0] = (char)0;
-FullClassNameCat(name, _class->fullName, 0x0);
+FullClassNameCat(name, _class->fullName, 0);
FreeSpecifierContents(spec);
spec->type = 3;
spec->__anon1.__anon2.baseSpecs = (((void *)0));
spec->__anon1.__anon2.list = (((void *)0));
spec->__anon1.__anon2.definitions = (((void *)0));
spec->__anon1.__anon2.ctx = (((void *)0));
-spec->__anon1.__anon2.addNameSpace = 0x0;
+spec->__anon1.__anon2.addNameSpace = 0;
}
else if(_class && _class->type == 5)
{
char name[1024] = "";
-FullClassNameCat(name, _class->fullName, 0x0);
+FullClassNameCat(name, _class->fullName, 0);
spec->type = 3;
spec->__anon1.__anon2.baseSpecs = (((void *)0));
spec->__anon1.__anon2.id = MkIdentifier(name);
spec->__anon1.__anon2.list = (((void *)0));
spec->__anon1.__anon2.definitions = (((void *)0));
spec->__anon1.__anon2.ctx = (((void *)0));
-spec->__anon1.__anon2.addNameSpace = 0x0;
+spec->__anon1.__anon2.addNameSpace = 0;
}
else if(_class)
{
if(!strcmp(_class->dataTypeString, "uint64") || !strcmp(_class->dataTypeString, "uint32") || !strcmp(_class->dataTypeString, "uint16") || !strcmp(_class->dataTypeString, "uintptr") || !strcmp(_class->dataTypeString, "intptr") || !strcmp(_class->dataTypeString, "uintsize") || !strcmp(_class->dataTypeString, "intsize") || !strcmp(_class->dataTypeString, "uint") || !strcmp(_class->dataTypeString, "byte"))
{
if(!_class->dataType)
-_class->dataType = ProcessTypeString(_class->dataTypeString, 0x0);
+_class->dataType = ProcessTypeString(_class->dataTypeString, 0);
if(_class->dataType && _class->dataType->kind == 8)
classSym = _class->dataType->__anon1._class;
else
spec->__anon1.__anon2.baseSpecs = (((void *)0));
spec->__anon1.__anon2.definitions = (((void *)0));
spec->__anon1.__anon2.ctx = (((void *)0));
-spec->__anon1.__anon2.addNameSpace = 0x0;
+spec->__anon1.__anon2.addNameSpace = 0;
}
if(_class && _class->dataTypeString && !strcmp(_class->dataTypeString, "char *"))
return 1;
InstDeclPassDeclarator(decl->declarator);
for(type = (*decl->__anon1.function.parameters).first; type; type = type->next)
{
-unsigned int typedObject = 0x0;
+unsigned int typedObject = 0;
struct Specifier * spec = (((void *)0));
if(type->qualifiers)
{
spec = (struct Specifier *)(*type->qualifiers).first;
if(spec && spec->type == 1 && !strcmp(spec->__anon1.__anon1.name, "class"))
-typedObject = 0x1;
+typedObject = 1;
}
-InstDeclPassTypeName(type, 0x1);
+InstDeclPassTypeName(type, 1);
if(typedObject)
{
struct TypeName * _class = (_class = __ecereNameSpace__ecere__com__eInstance_New(__ecereClass_TypeName), _class->qualifiers = MkListOne(MkStructOrUnion(3, MkIdentifier("__ecereNameSpace__ecere__com__Class"), (((void *)0)))), _class->declarator = MkDeclaratorPointer(MkPointer((((void *)0)), (((void *)0))), MkDeclaratorIdentifier(MkIdentifier("class"))), _class);
static unsigned int IsVoidPtrCast(struct TypeName * typeName)
{
-unsigned int result = 0x0;
+unsigned int result = 0;
struct Declarator * d = typeName->declarator;
if(d && d->type == 5 && d->__anon1.pointer.pointer == (((void *)0)))
for(s = (*typeName->qualifiers).first; s; s = s->next)
{
if(s->type == 0 && s->__anon1.specifier == VOID)
-result = 0x1;
+result = 1;
}
}
}
struct Type * newType = (((void *)0));
if(src->__anon1.templateParameter->dataTypeString)
-newType = ProcessTypeString(src->__anon1.templateParameter->dataTypeString, 0x0);
+newType = ProcessTypeString(src->__anon1.templateParameter->dataTypeString, 0);
else if(src->__anon1.templateParameter->__anon1.dataType)
newType = ProcessType(src->__anon1.templateParameter->__anon1.dataType->specifiers, src->__anon1.templateParameter->__anon1.dataType->decl);
if(newType)
struct Type * newType = (((void *)0));
if(dest->__anon1.templateParameter->dataTypeString)
-newType = ProcessTypeString(dest->__anon1.templateParameter->dataTypeString, 0x0);
+newType = ProcessTypeString(dest->__anon1.templateParameter->dataTypeString, 0);
else if(dest->__anon1.templateParameter->__anon1.dataType)
newType = ProcessType(dest->__anon1.templateParameter->__anon1.dataType->specifiers, dest->__anon1.templateParameter->__anon1.dataType->decl);
if(newType)
break;
}
case 10:
-InstDeclPassTypeName(exp->__anon1.typeName, 0x0);
+InstDeclPassTypeName(exp->__anon1.typeName, 0);
break;
case 11:
{
}
case 33:
{
-InstDeclPassTypeName(exp->__anon1.initializer.typeName, 0x0);
+InstDeclPassTypeName(exp->__anon1.initializer.typeName, 0);
InstDeclPassInitializer(exp->__anon1.initializer.initializer);
break;
}
{
int type;
-if((type = ReplaceClassSpec(decl->__anon1.__anon1.specifiers, spec, 0x0)))
+if((type = ReplaceClassSpec(decl->__anon1.__anon1.specifiers, spec, 0)))
{
struct InitDeclarator * d;
ReplaceByInstancePtr(spec, &d->declarator, type);
}
}
-InstDeclPassSpecifier(spec, 0x0);
+InstDeclPassSpecifier(spec, 0);
}
}
if(decl->__anon1.__anon1.declarators)
{
int type;
-if((type = ReplaceClassSpec(decl->__anon1.__anon1.specifiers, spec, 0x0)))
+if((type = ReplaceClassSpec(decl->__anon1.__anon1.specifiers, spec, 0)))
{
if(decl->__anon1.__anon1.declarators)
{
ReplaceByInstancePtr(spec, &d, type);
}
}
-InstDeclPassSpecifier(spec, 0x0);
+InstDeclPassSpecifier(spec, 0);
}
}
if(decl->__anon1.__anon1.declarators)
{
int type;
-if((type = ReplaceClassSpec(func->specifiers, spec, 0x0)))
+if((type = ReplaceClassSpec(func->specifiers, spec, 0)))
ReplaceByInstancePtr(spec, &func->declarator, type);
-InstDeclPassSpecifier(spec, 0x0);
+InstDeclPassSpecifier(spec, 0);
}
}
InstDeclPassDeclarator(func->declarator);
__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__File->_vTbl;
})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Seek])(fileInput, 0, 0);
-echoOn = 0x0;
-parseTypeError = 0x0;
+echoOn = 0;
+parseTypeError = 0;
parsedType = (((void *)0));
declMode = structDeclMode = 0;
resetScanner();
{
unsigned int oldParsingType = parsingType;
-parsingType = 0x1;
+parsingType = 1;
type_yyparse();
parsingType = oldParsingType;
}
declMode = structDeclMode = 2;
-type_yydebug = 0x0;
+type_yydebug = 0;
(__ecereNameSpace__ecere__com__eInstance_DecRef(fileInput), fileInput = 0);
if(parsedType)
{
case 13:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isConstructor = 0x1;
+yyval.classFunction->isConstructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
FreeList(yyvsp[(1) - (3)].list, FreeSpecifier);
case 14:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isDestructor = 0x1;
+yyval.classFunction->isDestructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
FreeList(yyvsp[(2) - (4)].list, FreeSpecifier);
case 15:
{
yyval.classFunction = MkClassFunction(yyvsp[(2) - (3)].list, (((void *)0)), yyvsp[(3) - (3)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 16:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), yyvsp[(2) - (2)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 78:
{
yyval.exp = yyvsp[(1) - (2)].exp;
-skipErrors = 0x1;
+skipErrors = 1;
;
}
break;
case 80:
{
-skipErrors = 0x0;
+skipErrors = 0;
yyval.exp = MkExpOp(yyvsp[(1) - (2)].exp, '<', yyvsp[(2) - (2)].exp);
yyval.exp->loc = (yyloc);
;
{
Type destType
{
- kind = intType;
+ kind = int64Type;
refCount = 1;
};
e.exp.destType = destType;
if(e.exp.type == identifierExp && e.exp.expType && e.exp.identifier && e.exp.identifier.string && e.exp.expType.kind == enumType)
{
// Resolve enums here
- NamedLink l;
+ NamedLink64 l;
char * string = e.exp.identifier.string;
for(l = e.exp.expType.members.first; l; l = l.next)
{
{
FreeExpContents(e.exp);
e.exp.type = constantExp;
- e.exp.constant = PrintUInt((uint)l.data);
+ e.exp.constant = PrintInt64(l.data);
FreeType(e.exp.expType);
- e.exp.expType = ProcessTypeString("uint", false);
+ e.exp.expType = ProcessTypeString("int64", false);
}
break;
}
if(e.exp.isConstant && e.exp.type == constantExp)
{
Operand op = GetOperand(e.exp);
- int value;
+ int64 value;
//value = strtol(e.exp.string, null, 0);
switch(op.kind)
{
case charType:
- value = op.type.isSigned ? (int)op.c : (int)op.uc;
+ value = op.type.isSigned ? (int64)op.c : (int64)op.uc;
break;
case shortType:
- value = op.type.isSigned ? (int)op.s : (int) op.us;
+ value = op.type.isSigned ? (int64)op.s : (int64)op.us;
break;
+ case int64Type:
+ value = op.type.isSigned ? (int64)op.i64 : (int64)op.ui64;
+ break;
+ case intType:
default:
- value = op.i;
+ value = op.type.isSigned ? (int64)op.i : (int)op.ui;
}
eEnum_AddFixedValue(regClass, e.id.string, value);
}
if(_class.type == enumClass)
{
- NamedLink value;
+ NamedLink64 value;
Class enumClass = eSystem_FindClass(privateModule, "enum");
EnumClassData e = ACCESS_CLASSDATA(_class, enumClass);
f.Printf(" [Enum Values]\n");
for(value = e.values.first; value; value = value.next)
{
- f.Printf(" %s = %d\n", value.name, value.data);
+ f.Printf(" %s = ", value.name);
+ if(!strcmp(_class.dataTypeString, "uint64") && *(uint64 *)&value.data > MAXINT64)
+ f.Printf(FORMAT64HEX, *(uint64 *)&value.data);
+ else
+ f.Printf(FORMAT64D, value.data);
+ f.Printf("\n");
}
f.Printf(" .\n");
}
case 401:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isConstructor = 0x1;
+yyval.classFunction->isConstructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
FreeList(yyvsp[(1) - (3)].list, FreeSpecifier);
case 402:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isDestructor = 0x1;
+yyval.classFunction->isDestructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
FreeList(yyvsp[(2) - (4)].list, FreeSpecifier);
case 403:
{
yyval.classFunction = MkClassFunction(yyvsp[(2) - (3)].list, (((void *)0)), yyvsp[(3) - (3)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 404:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), yyvsp[(2) - (2)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
unsigned int guess;
-unsigned int deleteWatchable = 0x0;
+unsigned int deleteWatchable = 0;
int memberAccessStack[256];
case 13:
{
yyval.classFunction = MkClassFunction(yyvsp[(1) - (3)].list, (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isConstructor = 0x1;
+yyval.classFunction->isConstructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 14:
{
yyval.classFunction = MkClassFunction(yyvsp[(2) - (4)].list, (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isDestructor = 0x1;
+yyval.classFunction->isDestructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 15:
{
yyval.classFunction = MkClassFunction(yyvsp[(2) - (3)].list, (((void *)0)), yyvsp[(3) - (3)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 16:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), yyvsp[(2) - (2)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 19:
{
yyval.classFunction = MkClassFunction(yyvsp[(2) - (3)].list, (((void *)0)), yyvsp[(3) - (3)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 20:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), yyvsp[(2) - (2)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
break;
case 132:
{
-yyvsp[(1) - (2)].prop->__anon1.isWatchable = 0x1;
+yyvsp[(1) - (2)].prop->__anon1.isWatchable = 1;
;
}
break;
case 168:
{
yyval.classDef = (((void *)0));
-deleteWatchable = 0x1;
+deleteWatchable = 1;
;
}
break;
FreeIdentifier(yyvsp[(1) - (3)].id);
FreeIdentifier(yyvsp[(3) - (3)].id);
yyval.symbol->nameLoc = (yylsp[(3) - (3)]);
-yyval.symbol->isRemote = 0x1;
+yyval.symbol->isRemote = 1;
memberAccessStack[++defaultMemberAccess] = 2;
;
}
yyval.symbol = DeclClass(globalContext->nextID++, yyvsp[(3) - (3)].specifier->__anon1.__anon1.name);
FreeIdentifier(yyvsp[(1) - (3)].id);
yyval.symbol->nameLoc = (yylsp[(3) - (3)]);
-yyval.symbol->isRemote = 0x1;
+yyval.symbol->isRemote = 1;
FreeSpecifier(yyvsp[(3) - (3)].specifier);
memberAccessStack[++defaultMemberAccess] = 2;
;
FreeIdentifier(yyvsp[(1) - (6)].id);
FreeIdentifier(yyvsp[(3) - (6)].id);
yyval.symbol->nameLoc = (yylsp[(3) - (6)]);
-yyval.symbol->isRemote = 0x1;
+yyval.symbol->isRemote = 1;
memberAccessStack[++defaultMemberAccess] = 2;
;
}
yyval.symbol->templateParams = yyvsp[(5) - (6)].list;
FreeIdentifier(yyvsp[(1) - (6)].id);
yyval.symbol->nameLoc = (yylsp[(3) - (6)]);
-yyval.symbol->isRemote = 0x1;
+yyval.symbol->isRemote = 1;
FreeSpecifier(yyvsp[(3) - (6)].specifier);
memberAccessStack[++defaultMemberAccess] = 2;
;
{
yyval._class = MkClass(yyvsp[(1) - (3)].symbol, (((void *)0)), yyvsp[(3) - (3)].list);
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
yyval._class = yyvsp[(1) - (3)]._class;
yyval._class->definitions = yyvsp[(3) - (3)].list;
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
{
yyval._class = MkClass(yyvsp[(1) - (3)].symbol, (((void *)0)), yyvsp[(3) - (3)].list);
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
yyval._class = yyvsp[(1) - (3)]._class;
yyval._class->definitions = yyvsp[(3) - (3)].list;
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
{
yyval._class = MkClass(yyvsp[(1) - (3)].symbol, (((void *)0)), MkList());
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
yyval._class = yyvsp[(1) - (3)]._class;
yyval._class->definitions = MkList();
yyval._class->deleteWatchable = deleteWatchable;
-deleteWatchable = 0x0;
+deleteWatchable = 0;
yyval._class->blockStart = (yylsp[(2) - (3)]);
yyval._class->loc = (yyloc);
yyval._class->loc.end.charPos++;
case 371:
{
yyval.exp = yyvsp[(1) - (2)].exp;
-skipErrors = 0x1;
+skipErrors = 1;
;
}
break;
case 373:
{
-skipErrors = 0x0;
+skipErrors = 0;
yyval.exp = MkExpOp(yyvsp[(1) - (2)].exp, '<', yyvsp[(2) - (2)].exp);
yyval.exp->loc = (yyloc);
;
}
else
_DeclClass(0, yyvsp[(1) - (2)].exp->__anon1.__anon1.identifier->string);
-skipErrors = 0x0;
+skipErrors = 0;
FreeExpression(yyvsp[(1) - (2)].exp);
FreeExpression(yyvsp[(2) - (2)].exp);
((unsigned int (*)(struct __ecereNameSpace__ecere__com__Instance *, int pos, int mode))__extension__ ({
yyval.exp = MkExpOp(yyvsp[(1) - (2)].exp, '<', yyvsp[(2) - (2)].exp);
yyval.exp->loc = (yyloc);
}
-skipErrors = 0x0;
+skipErrors = 0;
;
}
break;
case 720:
{
yyval.specifier = MkStructOrUnion(yyvsp[(1) - (2)].specifierType, yyvsp[(2) - (2)].id, (((void *)0)));
-yyval.specifier->__anon1.__anon2.addNameSpace = 0x1;
+yyval.specifier->__anon1.__anon2.addNameSpace = 1;
yyval.specifier->__anon1.__anon2.ctx = PushContext();
;
}
{
yyval.specifier = MkStructOrUnion(yyvsp[(1) - (3)].specifierType, yyvsp[(3) - (3)].id, (((void *)0)));
yyval.specifier->__anon1.__anon2.extDeclStruct = yyvsp[(2) - (3)].extDecl;
-yyval.specifier->__anon1.__anon2.addNameSpace = 0x1;
+yyval.specifier->__anon1.__anon2.addNameSpace = 1;
yyval.specifier->__anon1.__anon2.ctx = PushContext();
;
}
break;
case 868:
{
-char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (1)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (1)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (1)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (1)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (1)].specifier->__anon1.__anon1.name;
yyval.declarator = MkDeclaratorIdentifier(MkIdentifier(s));
case 870:
{
struct Declarator * decl;
-char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (4)].specifier->__anon1.__anon1.name;
decl = MkDeclaratorIdentifier(MkIdentifier(s));
case 871:
{
struct Declarator * decl;
-char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (4)].specifier->__anon1.__anon1.name;
decl = MkDeclaratorIdentifier(MkIdentifier(s));
case 872:
{
struct Declarator * decl;
-char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (4)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (4)].specifier->__anon1.__anon1.name;
decl = MkDeclaratorIdentifier(MkIdentifier(s));
case 873:
{
struct Declarator * decl;
-char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (3)].specifier->__anon1.__anon1.name;
decl = MkDeclaratorIdentifier(MkIdentifier(s));
break;
case 1024:
{
-char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name), 0x1, 0x0);
+char * colon = __ecereFunction___ecereNameSpace__ecere__sys__RSearchString(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name, "::", strlen(yyvsp[(1) - (3)].specifier->__anon1.__anon1.name), 1, 0);
char * s = colon ? colon + 2 : yyvsp[(1) - (3)].specifier->__anon1.__anon1.name;
yyval.list = MkList();
case 13:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isConstructor = 0x1;
+yyval.classFunction->isConstructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
FreeList(yyvsp[(1) - (3)].list, FreeSpecifier);
case 14:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), (((void *)0)), (((void *)0)));
-yyval.classFunction->isDestructor = 0x1;
+yyval.classFunction->isDestructor = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
FreeList(yyvsp[(2) - (4)].list, FreeSpecifier);
case 15:
{
yyval.classFunction = MkClassFunction(yyvsp[(2) - (3)].list, (((void *)0)), yyvsp[(3) - (3)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 16:
{
yyval.classFunction = MkClassFunction((((void *)0)), (((void *)0)), yyvsp[(2) - (2)].declarator, (((void *)0)));
-yyval.classFunction->isVirtual = 0x1;
+yyval.classFunction->isVirtual = 1;
yyval.classFunction->loc = (yyloc);
yyval.classFunction->id = ++globalContext->nextID;
;
case 78:
{
yyval.exp = yyvsp[(1) - (2)].exp;
-skipErrors = 0x1;
+skipErrors = 1;
;
}
break;
case 80:
{
-skipErrors = 0x0;
+skipErrors = 0;
yyval.exp = MkExpOp(yyvsp[(1) - (2)].exp, '<', yyvsp[(2) - (2)].exp);
yyval.exp->loc = (yyloc);
;
if(src.kind == enumType)
{
- NamedLink member;
+ NamedLink64 member;
type.members.Clear();
// This must have been a mistake: member = **type**.members.first
for(member = src.members.first; member; member = member.next)
{
- type.members.Add(NamedLink { name = CopyString(member.name), data = member.data });
+ type.members.Add(NamedLink64 { name = CopyString(member.name), data = member.data });
}
type.enumName = CopyString(src.enumName);
}
Enumerator e;
for(e = spec.list->first; e; e = e.next)
{
- NamedLink i { name = CopyString(e.id.string) };
+ NamedLink64 i { name = CopyString(e.id.string) };
if(e.exp && e.exp.type == constantExp && e.exp.constant)
- i.data = (void *)strtol(e.exp.constant, null, 0);
+ i.data = strtoll(e.exp.constant, null, 0);
specType.members.Add(i);
}
}
if(symbol.type.kind == enumType)
{
- NamedLink member;
+ NamedLink64 member;
specType.members.Clear();
for(member = symbol.type.members.first; member; member = member.next)
{
- NamedLink item { name = CopyString(member.name), data = member.data };
+ NamedLink64 item { name = CopyString(member.name), data = member.data };
specType.members.Add(item);
}
}
{
case enumType:
{
- NamedLink member, next;
+ NamedLink64 member, next;
if(type.enumName)
delete type.enumName;
for(member = type.members.first; member; member = next)
name[equal - line] = '\0';
TrimLSpaces(name, name);
TrimRSpaces(name, name);
- eEnum_AddFixedValue(regClass, name, atoi(equal + 1));
+ eEnum_AddFixedValue(regClass, name, strtoll(equal + 1, null, 0));
}
else
{
{
Type destType
{
- kind = intType;
+ kind = int64Type;
refCount = 1;
};
e.exp.destType = destType;
if(e.exp.type == identifierExp && e.exp.expType && e.exp.identifier && e.exp.identifier.string && e.exp.expType.kind == enumType)
{
// Resolve enums here
- NamedLink l;
+ NamedLink64 l;
char * string = e.exp.identifier.string;
for(l = e.exp.expType.members.first; l; l = l.next)
{
{
FreeExpContents(e.exp);
e.exp.type = constantExp;
- e.exp.constant = PrintUInt((uint)l.data);
+ e.exp.constant = PrintInt64(l.data);
FreeType(e.exp.expType);
- e.exp.expType = ProcessTypeString("uint", false);
+ e.exp.expType = ProcessTypeString("int64", false);
}
break;
}
}
else
ComputeExpression(e.exp);
- if(e.exp.isConstant && /*e.exp.expType.kind == intType*/ e.exp.type == constantExp)
+ if(e.exp.isConstant && e.exp.type == constantExp)
{
Operand op = GetOperand(e.exp);
- int value;
- // TODO: 64 BIT ENUM SUPPORT...
+ int64 value;
switch(op.kind)
{
- case charType: value = op.c; break;
- case shortType: value = op.s; break;
- default: value = op.i;
+ case charType:
+ value = op.type.isSigned ? (int64)op.c : (int64)op.uc;
+ break;
+ case shortType:
+ value = op.type.isSigned ? (int64)op.s : (int64)op.us;
+ break;
+ case int64Type:
+ value = op.type.isSigned ? (int64)op.i64 : (int64)op.ui64;
+ break;
+ case intType:
+ default:
+ value = op.type.isSigned ? (int64)op.i : (int)op.ui;
}
- // value = op.i; //strtol(e.exp.string, null, 0);
eEnum_AddFixedValue(regClass, e.id.string, value);
}
else
// Add Enumeration Values
if(classType == enumClass)
{
- NamedLink value;
+ NamedLink64 value;
Class enumClass = eSystem_FindClass(privateModule, "enum");
EnumClassData e = ACCESS_CLASSDATA(regClass, enumClass);
ListAdd(args, MkExpString(string));
delete string;
}
- // uint value
+ // int64 value
{
- char temp[1024];
- // TODO: Support 64 bit enums
- sprintf(temp, "%d", (int)value.data);
+ char * temp;
+ if(!strcmp(regClass.dataTypeString, "uint64"))
+ temp = PrintUInt64(value.data);
+ else
+ temp = PrintInt64(value.data);
ListAdd(args, MkExpConstant(temp));
+ delete temp;
}
stmt = MkExpressionStmt(MkListOne(
{
char temp[100];
if(result > MAXDWORD)
- sprintf(temp, FORMAT64HEXLL /*"0x%I64XLL"*/, result);
+ sprintf(temp, FORMAT64HEXLL /*"0x%I64X"*/, result);
else if(result > MAXINT)
sprintf(temp, FORMAT64HEX /*"0x%I64X"*/, result);
else
return CopyString(temp);
}
-public char * PrintInt64(int64 result)
+public char * PrintInt64(int64 result)
{
char temp[100];
- sprintf(temp, FORMAT64DLL /*"%I64d"*/, result);
+ if(result > MAXINT || result < MININT)
+ sprintf(temp, FORMAT64DLL /*"%I64d"*/, result);
+ else
+ sprintf(temp, FORMAT64D /*"%I64d"*/, result);
return CopyString(temp);
}
public char * PrintUInt64(uint64 result)
{
char temp[100];
- if(result > MAXINT64)
+ if(result > MAXDWORD)
sprintf(temp, FORMAT64HEXLL /*"0x%I64XLL"*/, result);
+ else if(result > MAXINT)
+ sprintf(temp, FORMAT64HEX /*"0x%I64XLL"*/, result);
else
- sprintf(temp, FORMAT64DLL /*"%I64d"*/, result);
+ sprintf(temp, FORMAT64D /*"%I64d"*/, result);
return CopyString(temp);
}
return GetOp##name(op2, value2); \
}
-// To help the deubugger currently not preprocessing...
+// To help the debugger currently not preprocessing...
#define HELP(x) x
GETVALUE(Int, HELP(int));
if(MatchTypes(type, dest, &converts, null, null, true, false, false, false, false))
{
- NamedLink value;
+ NamedLink64 value;
Class enumClass = eSystem_FindClass(privateModule, "enum");
if(enumClass)
{
{
char constant[256];
sourceExp.type = constantExp;
- if(!strcmp(baseClass.dataTypeString, "int"))
- sprintf(constant, "%d",(int)value.data);
+ if(!strcmp(baseClass.dataTypeString, "int") || !strcmp(baseClass.dataTypeString, "int64") || !strcmp(baseClass.dataTypeString, "short") || !strcmp(baseClass.dataTypeString, "char"))
+ sprintf(constant, FORMAT64D, value.data);
else
- sprintf(constant, "0x%X",(int)value.data);
+ sprintf(constant, FORMAT64HEXLL, value.data);
sourceExp.constant = CopyString(constant);
//for(;baseClass.base && baseClass.base.type != systemClass; baseClass = baseClass.base);
}
{
for( ; _class && _class.type == ClassType::enumClass; _class = _class.base)
{
- NamedLink value;
+ NamedLink64 value;
EnumClassData e = ACCESS_CLASSDATA(_class, enumClass);
for(value = e.values.first; value; value = value.next)
{
sourceExp.expType = MkClassType(_class.fullName);
//if(inCompiler)
{
- char constant[256];
sourceExp.type = constantExp;
- if(/*_class && */_class.dataTypeString && !strcmp(_class.dataTypeString, "int")) // _class cannot be null here!
- sprintf(constant, "%d", (int) value.data);
+ if(_class.dataTypeString && (!strcmp(_class.dataTypeString, "int") || !strcmp(_class.dataTypeString, "int64") || !strcmp(_class.dataTypeString, "short") || !strcmp(_class.dataTypeString, "char"))) // _class cannot be null here!
+ sourceExp.constant = PrintInt64(value.data);
else
- sprintf(constant, "0x%X", (int) value.data);
- sourceExp.constant = CopyString(constant);
+ sourceExp.constant = PrintUInt64(value.data);
//for(;_class.base && _class.base.type != systemClass; _class = _class.base);
}
FreeType(dest);
else if(exp.isConstant && exp.type == constantExp)
{
op.kind = type.kind;
- op.type = exp.expType;
+ op.type = type;
switch(op.kind)
{
return op;
}
+static int64 GetEnumValue(Class _class, void * ptr)
+{
+ int64 v = 0;
+ switch(_class.typeSize)
+ {
+ case 8:
+ if(!strcmp(_class.dataTypeString, "uint64"))
+ v = (int64)*(uint64 *)ptr;
+ else
+ v = (int64)*(int64 *)ptr;
+ break;
+ case 4:
+ if(!strcmp(_class.dataTypeString, "uint"))
+ v = (int64)*(uint *)ptr;
+ else
+ v = (int64)*(int *)ptr;
+ break;
+ case 2:
+ if(!strcmp(_class.dataTypeString, "uint16"))
+ v = (int64)*(uint16 *)ptr;
+ else
+ v = (int64)*(short *)ptr;
+ break;
+ case 1:
+ if(!strcmp(_class.dataTypeString, "byte"))
+ v = (int64)*(byte *)ptr;
+ else
+ v = (int64)*(char *)ptr;
+ break;
+ }
+ return v;
+}
+
static __attribute__((unused)) void UnusedFunction()
{
int a;
if(enumClass)
{
EnumClassData e = ACCESS_CLASSDATA(_class, enumClass);
- NamedLink item;
+ NamedLink64 item;
for(item = e.values.first; item; item = item.next)
{
- if((int)item.data == *(int *)ptr)
+ if(item.data == GetEnumValue(_class, ptr))
{
result = item.name;
break;
if(enumClass)
{
EnumClassData e = ACCESS_CLASSDATA(_class, enumClass);
- NamedLink item;
+ NamedLink64 item;
for(item = e.values.first; item; item = item.next)
{
- if((int)item.data == *(int *)ptr)
+ if(item.data == GetEnumValue(_class, ptr))
{
result = item.name;
break;
{
BitMember bitMember = (BitMember) dataMember;
Type type;
- uint64 part;
+ uint64 part = 0;
bits = (bits & ~bitMember.mask);
if(!bitMember.dataType)
bitMember.dataType = ProcessTypeString(bitMember.dataTypeString, false);
void ComputeExpression(Expression exp)
{
+#ifdef _DEBUG
char expString[10240];
expString[0] = '\0';
-#ifdef _DEBUG
PrintExpression(exp, expString);
#endif
if(_class && _class.type == enumClass)
{
- NamedLink value = null;
+ NamedLink64 value = null;
Class enumClass = eSystem_FindClass(privateModule, "enum");
if(enumClass)
{
exp.type = constantExp;
exp.isConstant = true;
- if(!strcmp(baseClass.dataTypeString, "int"))
- sprintf(constant, "%d",(int)value.data);
+ if(!strcmp(baseClass.dataTypeString, "int") || !strcmp(baseClass.dataTypeString, "int64") || !strcmp(baseClass.dataTypeString, "char") || !strcmp(baseClass.dataTypeString, "short"))
+ sprintf(constant, FORMAT64D, value.data);
else
- sprintf(constant, "0x%X",(int)value.data);
+ sprintf(constant, FORMAT64HEX, value.data);
exp.constant = CopyString(constant);
//for(;_class.base && _class.base.type != systemClass; _class = _class.base);
exp.expType = MkClassType(baseClass.fullName);
}
else
{
- NamedLink member;
+ NamedLink64 member;
for(member = symbol.type.members.first; member; member = member.next)
{
- NamedLink value { name = CopyString(member.name) };
+ NamedLink64 value { name = CopyString(member.name) };
exp.expType.members.Add(value);
}
}
// WAS TRYING THIS FOR CONVERSION PROPERTIES ON NOHEAD CLASSES: if((_class.type == structClass) || function != (FunctionDefinition)symbol.externalSet)
if(!function.propertyNoThis)
{
- TypeName thisParam;
+ TypeName thisParam = null;
if(type.classObjectType != classPointer)
{
}
};
-/*static */const char * Enum_OnGetString(Class _class, int * data, char * tempString, void * fieldData, bool * needClass)
+/*static */const char * Enum_OnGetString(Class _class, void * data, char * tempString, void * fieldData, bool * needClass)
{
- NamedLink item = null;
+ NamedLink64 item = null;
Class b;
+ int64 i64Data;
+ switch(_class.typeSize)
+ {
+ case 1:
+ i64Data = !strcmp(_class.dataTypeString, "byte") ? *(byte *)data : *(char *)data;
+ break;
+ case 2:
+ i64Data = !strcmp(_class.dataTypeString, "uint16") ? *(uint16 *)data : *(short *)data;
+ break;
+ case 4:
+ i64Data = !strcmp(_class.dataTypeString, "uint") ? *(uint *)data : *(int *)data;
+ break;
+ case 8:
+ i64Data = !strcmp(_class.dataTypeString, "uint64") ? *(int64 *)data : *(int64 *)data;
+ break;
+ }
for(b = _class; !item && b && b.type == enumClass; b = b.base)
{
EnumClassData enumeration = (EnumClassData)b.data;
for(item = enumeration.values.first; item; item = item.next)
- if((int)item.data == *data)
+ if(item.data == i64Data)
break;
}
if(item)
return null;
}
-static bool Enum_OnGetDataFromString(Class _class, int * data, const char * string)
+static bool Enum_OnGetDataFromString(Class _class, void * data, const char * string)
{
- NamedLink item = null;
+ NamedLink64 item = null;
Class b;
for(b = _class; !item && b && b.type == enumClass; b = b.base)
{
}
if(item)
{
- *data = (int)item.data;
+ switch(_class.typeSize)
+ {
+ case 1:
+ if(!strcmp(_class.dataTypeString, "byte"))
+ *(byte *)data = (byte)item.data;
+ else
+ *(char *)data = (char)item.data;
+ break;
+ case 2:
+ if(!strcmp(_class.dataTypeString, "uint16"))
+ *(uint16 *)data = (uint16)item.data;
+ else
+ *(short *)data = (short)item.data;
+ break;
+ case 4:
+ if(!strcmp(_class.dataTypeString, "uint"))
+ *(uint *)data = (uint)item.data;
+ else
+ *(int *)data = (int)item.data;
+ break;
+ case 8:
+ if(!strcmp(_class.dataTypeString, "uint64"))
+ *(uint64 *)data = *(uint64 *)&item.data;
+ else
+ *(int64 *)data = item.data;
+ break;
+ }
return true;
}
else
- return Integer_OnGetDataFromString(_class, data, string);
+ return Int64_OnGetDataFromString(_class, data, string);
return false;
}
bool result;
Module module = _class.module;
if(_class.type == enumClass)
- result = Enum_OnGetDataFromString(_class, (int *)data, string);
+ result = Enum_OnGetDataFromString(_class, (int64 *)data, string);
else if(_class.type == unitClass)
{
Class dataType;
public:
class_fixed
OldList values;
- int largest;
+ int64 largest;
};
class Watcher : struct
else if(!strcmp(name, "ecere::sys::OldList")) size = 0; // 32
else if(!strcmp(name, "ecere::sys::Item")) size = 0;
else if(!strcmp(name, "ecere::sys::NamedLink")) size = 0;
+ else if(!strcmp(name, "ecere::sys::NamedLink64")) size = 0;
else if(!strcmp(name, "ecere::sys::OldLink")) size = 0;
else if(!strcmp(name, "ecere::sys::NamedItem")) size = 0;
else if(!strcmp(name, "ecere::sys::NamedItem64")) size = 0;
}
}
-static void FreeEnumValue(NamedLink value)
+static void FreeEnumValue(NamedLink64 value)
{
delete value.name;
}
}
}
-public dllexport void eEnum_AddFixedValue(Class _class, const char * string, int value)
+public dllexport void eEnum_AddFixedValue(Class _class, const char * string, int64 value)
{
if(_class && _class.type == enumClass)
{
EnumClassData data = (EnumClassData)_class.data;
- NamedLink item;
+ NamedLink64 item;
for(item = data.values.first; item; item = item.next)
if(!strcmp(item.name, string))
break;
if(!item)
{
- data.values.Add(NamedLink { data = (void *)value, name = CopyString(string) });
+ data.values.Add(NamedLink64 { data = value, name = CopyString(string) });
if(value > data.largest)
data.largest = value;
}
}
}
-public dllexport int eEnum_AddValue(Class _class, const char * string)
+public dllexport int64 eEnum_AddValue(Class _class, const char * string)
{
if(_class && _class.type == enumClass)
{
EnumClassData data = (EnumClassData)_class.data;
- int value = ((int) data.largest) + 1;
- NamedLink item;
+ int64 value = data.largest + 1;
+ NamedLink64 item;
for(item = data.values.first; item; item = item.next)
if(!strcmp(item.name, string))
break;
if(!item)
{
- data.values.Add(NamedLink { data = (void *)value, name = CopyString(string) });
+ data.values.Add(NamedLink64 { data = value, name = CopyString(string) });
if(value > data.largest)
data.largest = value;
return value;
eSystem_RegisterFunction("qsort", "void qsort(void *, uintsize, uintsize, int (*)(void *, void *))", qsort, module, baseSystemAccess);
eSystem_RegisterFunction("strtod", "double strtod(const char*, char**)", strtod, module, baseSystemAccess);
eSystem_RegisterFunction("strtol", "int strtol(const char*, char**, int base)", strtol, module, baseSystemAccess);
+ eSystem_RegisterFunction("strtoul", "unsigned long strtoul(const char * nptr, char ** endptr, int base)", strtoul, module, baseSystemAccess);
+ eSystem_RegisterFunction("strtoll", "int64 strtoll(const char * nptr, char ** endptr, int base)", strtoll, module, baseSystemAccess);
+ eSystem_RegisterFunction("strtoull", "uint64 strtoull(const char * nptr, char ** endptr, int base)", strtoull, module, baseSystemAccess);
eSystem_RegisterFunction("system", "int system(const char*)", system, module, baseSystemAccess);
eSystem_RegisterFunction("atoi", "int atoi(const char*)", atoi, module, baseSystemAccess);
eSystem_RegisterFunction("atof", "double atof(const char*)", atof, module, baseSystemAccess);
eSystem_RegisterFunction("islower", "int islower(int c)", islower, module, baseSystemAccess);
eSystem_RegisterFunction("isupper", "int isupper(int c)", isupper, module, baseSystemAccess);
eSystem_RegisterFunction("isprint", "int isprint(int c)", isprint, module, baseSystemAccess);
- eSystem_RegisterFunction("strtoul", "unsigned long strtoul(const char * nptr, char ** endptr, int base)", strtoul, module, baseSystemAccess);
- eSystem_RegisterFunction("strtoll", "int64 strtoll(const char * nptr, char ** endptr, int base)", strtoul, module, baseSystemAccess);
- eSystem_RegisterFunction("strtoull", "uint64 strtoull(const char * nptr, char ** endptr, int base)", strtoul, module, baseSystemAccess);
}
pullDown.Create();
{
- NamedLink item;
+ NamedLink64 item;
bool found = false;
DataRow currentRow = null;
}
{
bool found = false;
- NamedLink item;
+ NamedLink64 item;
DataRow currentRow = null;
system.Clear();
int x, int y, int w, int h, void * userData)
{
Enumeration enumeration = _class.data;
- NamedLink item;
+ NamedLink64 item;
DropBox dropBox
{
window, master = master,
for(item = enumeration.values.first; item; item = item.next)
{
DataRow row = dropBox.AddRow();
- row.SetData(null, (uint)item.data); //name);
- if(data && (int)item.data == *data)
+ row.SetData(null, item.data); //name);
+ if(data && item.data == *data)
dropBox.currentRow = row;
}
}
else if(wh.type && wh.type.kind == classType && wh.type._class &&
wh.type._class.registered && wh.type._class.registered.type == enumClass)
{
- uint64 value = strtoul(exp.constant, null, 0);
Class enumClass = eSystem_FindClass(GetPrivateModule(), wh.type._class.registered.name);
EnumClassData enumeration = (EnumClassData)enumClass.data;
- NamedLink item;
+ NamedLink64 item;
+ int64 value;
+
+ if(!strcmp(enumClass.dataTypeString, "uint64"))
+ {
+ uint64 v = strtoull(exp.constant, null, 0);
+ value = *(int64*)&v;
+ }
+ else
+ value = strtoll(exp.constant, null, 0);
+
for(item = enumeration.values.first; item; item = item.next)
- if((int)item.data == value)
+ if(item.data == value)
break;
if(item)
wh.value = CopyString(item.name);
f.Printf(""); // Make the stream point to where the editbox is
}
+static int64 GetI64EnumValue(Class dataType, DataValue dataForm)
+{
+ int64 i64Value = 0;
+ switch(dataType.typeSize)
+ {
+ case 1:
+ if(!strcmp(dataType.dataTypeString, "byte"))
+ i64Value = dataForm.uc;
+ else
+ i64Value = dataForm.c;
+ break;
+ case 2:
+ if(!strcmp(dataType.dataTypeString, "uint16"))
+ i64Value = dataForm.us;
+ else
+ i64Value = dataForm.s;
+ break;
+ case 4:
+ if(!strcmp(dataType.dataTypeString, "uint"))
+ i64Value = dataForm.ui;
+ else
+ i64Value = dataForm.i;
+ break;
+ case 8:
+ if(!strcmp(dataType.dataTypeString, "uint64"))
+ i64Value = *(int64 *)&dataForm.ui64;
+ else
+ i64Value = dataForm.i64;
+ break;
+ }
+ return i64Value;
+}
+
void Code_FixProperty(Property prop, Instance object)
{
Designer::FixProperty(prop, object);
if(dataType.type == enumClass)
{
- NamedLink value;
+ NamedLink64 value;
Class enumClass = eSystem_FindClass(privateModule, "enum");
EnumClassData e = ACCESS_CLASSDATA(dataType, enumClass);
+ int64 i64Value = GetI64EnumValue(dataType, dataForm);
for(value = e.values.first; value; value = value.next)
{
- if((int)value.data == dataForm.i)
+ if(value.data == i64Value)
{
string = value.name;
break;
bool needClass = true;
if(dataType.type == enumClass)
{
- NamedLink value;
+ NamedLink64 value;
Class enumClass = eSystem_FindClass(privateModule, "enum");
EnumClassData e = ACCESS_CLASSDATA(dataType, enumClass);
+ int64 i64Value = GetI64EnumValue(dataType, dataForm);
for(value = e.values.first; value; value = value.next)
{
- if((int)value.data == dataForm.i)
+ if(value.data == i64Value)
{
string = value.name;
break;