X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=compiler%2Fbootstrap%2Fecere%2Fbootstrap%2FTempFile.c;h=6529facd440ffbeb9becac2d69e4ef7a8420b291;hb=4dcd178c144c44b52f38f5786f0a25e6eb6cd8ef;hp=a4bf3505620f7d6f8e074fdd950e3cd03b9cc764;hpb=a19af535e0cc8467c3a471476e74c7ad9108ea9e;p=sdk diff --git a/compiler/bootstrap/ecere/bootstrap/TempFile.c b/compiler/bootstrap/ecere/bootstrap/TempFile.c index a4bf350..6529fac 100644 --- a/compiler/bootstrap/ecere/bootstrap/TempFile.c +++ b/compiler/bootstrap/ecere/bootstrap/TempFile.c @@ -1,4 +1,11 @@ /* Code generated from eC source file: TempFile.ec */ +#if defined(_WIN32) +#define __runtimePlatform 1 +#elif defined(__APPLE__) +#define __runtimePlatform 3 +#else +#define __runtimePlatform 2 +#endif #if defined(__GNUC__) typedef long long int64; typedef unsigned long long uint64; @@ -28,17 +35,66 @@ typedef unsigned __int64 uint64; #else #define __ENDIAN_PAD(x) 0 #endif +#if defined(_WIN32) +# if defined(__GNUC__) || defined(__TINYC__) +# define ecere_stdcall __attribute__((__stdcall__)) +# define ecere_gcc_struct __attribute__((gcc_struct)) +# else +# define ecere_stdcall __stdcall +# define ecere_gcc_struct +# endif +#else +# define ecere_stdcall +# define ecere_gcc_struct +#endif #include #include +struct __ecereNameSpace__ecere__sys__TempFile +{ +unsigned char * buffer; +unsigned int size; +unsigned int position; +unsigned int eof; +int openMode; +unsigned int allocated; +} ecere_gcc_struct; -#if /*defined(_W64) || */(defined(__WORDSIZE) && __WORDSIZE == 8) || defined(__x86_64__) -#define _64BIT 1 -#else -#define _64BIT 0 -#endif +struct __ecereNameSpace__ecere__sys__BTNode; + +struct __ecereNameSpace__ecere__sys__OldList +{ +void * first; +void * last; +int count; +unsigned int offset; +unsigned int circ; +} ecere_gcc_struct; + +struct __ecereNameSpace__ecere__com__DataValue +{ +union +{ +char c; +unsigned char uc; +short s; +unsigned short us; +int i; +unsigned int ui; +void * p; +float f; +double d; +long long i64; +uint64 ui64; +} ecere_gcc_struct __anon1; +} ecere_gcc_struct; -#define arch_PointerSize sizeof(void *) -#define structSize_Instance (_64BIT ? 24 : 12) +struct __ecereNameSpace__ecere__com__SerialBuffer +{ +unsigned char * _buffer; +unsigned int count; +unsigned int _size; +unsigned int pos; +} ecere_gcc_struct; extern void * __ecereNameSpace__ecere__com__eSystem_New(unsigned int size); @@ -48,113 +104,45 @@ extern void * __ecereNameSpace__ecere__com__eSystem_Renew(void * memory, unsig extern void * __ecereNameSpace__ecere__com__eSystem_Renew0(void * memory, unsigned int size); -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__BTNode; +extern void __ecereNameSpace__ecere__com__eSystem_Delete(void * memory); -struct __ecereNameSpace__ecere__sys__BTNode; +extern void * memcpy(void * , const void * , size_t size); -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__BinaryTree; +extern size_t strlen(const char * ); -struct __ecereNameSpace__ecere__sys__BinaryTree -{ -struct __ecereNameSpace__ecere__sys__BTNode * root; -int count; -int (* CompareKey)(struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t a, uintptr_t b); -void (* FreeKey)(void * key); -} __attribute__ ((gcc_struct)); +struct __ecereNameSpace__ecere__com__Property; -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__OldList; +extern void __ecereNameSpace__ecere__com__eInstance_Watch(void * instance, struct __ecereNameSpace__ecere__com__Property * _property, void * object, void (* callback)(void * , void * )); -struct __ecereNameSpace__ecere__sys__OldList -{ -void * first; -void * last; -int count; -unsigned int offset; -unsigned int circ; -} __attribute__ ((gcc_struct)); +static __attribute__((unused)) struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__TempFile_openMode, * __ecerePropM___ecereNameSpace__ecere__sys__TempFile_openMode; -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Class; +static __attribute__((unused)) struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__TempFile_buffer, * __ecerePropM___ecereNameSpace__ecere__sys__TempFile_buffer; -struct __ecereNameSpace__ecere__com__Class -{ -struct __ecereNameSpace__ecere__com__Class * prev; -struct __ecereNameSpace__ecere__com__Class * next; -char * name; -int offset; -int structSize; -int (* * _vTbl)(); -int vTblSize; -int (* Constructor)(struct __ecereNameSpace__ecere__com__Instance *); -void (* Destructor)(struct __ecereNameSpace__ecere__com__Instance *); -int offsetClass; -int sizeClass; -struct __ecereNameSpace__ecere__com__Class * base; -struct __ecereNameSpace__ecere__sys__BinaryTree methods; -struct __ecereNameSpace__ecere__sys__BinaryTree members; -struct __ecereNameSpace__ecere__sys__BinaryTree prop; -struct __ecereNameSpace__ecere__sys__OldList membersAndProperties; -struct __ecereNameSpace__ecere__sys__BinaryTree classProperties; -struct __ecereNameSpace__ecere__sys__OldList derivatives; -int memberID; -int startMemberID; -int type; -struct __ecereNameSpace__ecere__com__Instance * module; -struct __ecereNameSpace__ecere__com__NameSpace * nameSpace; -char * dataTypeString; -struct __ecereNameSpace__ecere__com__Instance * dataType; -int typeSize; -int defaultAlignment; -void (* Initialize)(); -int memberOffset; -struct __ecereNameSpace__ecere__sys__OldList selfWatchers; -char * designerClass; -unsigned int noExpansion; -char * defaultProperty; -unsigned int comRedefinition; -int count; -unsigned int isRemote; -unsigned int internalDecl; -void * data; -unsigned int computeSize; -int structAlignment; -int destructionWatchOffset; -unsigned int fixed; -struct __ecereNameSpace__ecere__sys__OldList delayedCPValues; -int inheritanceAccess; -char * fullName; -void * symbol; -struct __ecereNameSpace__ecere__sys__OldList conversions; -struct __ecereNameSpace__ecere__sys__OldList templateParams; -struct __ecereNameSpace__ecere__com__ClassTemplateArgument * templateArgs; -struct __ecereNameSpace__ecere__com__Class * templateClass; -struct __ecereNameSpace__ecere__sys__OldList templatized; -int numParams; -unsigned int isInstanceClass; -} __attribute__ ((gcc_struct)); - -extern long long __ecereNameSpace__ecere__com__eClass_GetProperty(struct __ecereNameSpace__ecere__com__Class * _class, char * name); - -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Instance; +struct __ecereNameSpace__ecere__com__Class; struct __ecereNameSpace__ecere__com__Instance { -int (* * _vTbl)(); +void * * _vTbl; struct __ecereNameSpace__ecere__com__Class * _class; int _refCount; -} __attribute__ ((gcc_struct)); +} ecere_gcc_struct; + +extern long long __ecereNameSpace__ecere__com__eClass_GetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name); + +extern void __ecereNameSpace__ecere__com__eClass_SetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, long long value); -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Property; +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__Property { struct __ecereNameSpace__ecere__com__Property * prev; struct __ecereNameSpace__ecere__com__Property * next; -char * name; +const char * name; unsigned int isProperty; int memberAccess; int id; struct __ecereNameSpace__ecere__com__Class * _class; -char * dataTypeString; +const char * dataTypeString; struct __ecereNameSpace__ecere__com__Class * dataTypeClass; struct __ecereNameSpace__ecere__com__Instance * dataType; void (* Set)(void * , int); @@ -165,24 +153,52 @@ void * symbol; int vid; unsigned int conversion; unsigned int watcherOffset; -char * category; +const char * category; unsigned int compiled; unsigned int selfWatchable; unsigned int isWatchable; -} __attribute__ ((gcc_struct)); +} ecere_gcc_struct; -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__DataMember; +extern void __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property); + +extern void __ecereNameSpace__ecere__com__eInstance_SetMethod(struct __ecereNameSpace__ecere__com__Instance * instance, const char * name, void * function); + +extern void __ecereNameSpace__ecere__com__eInstance_IncRef(struct __ecereNameSpace__ecere__com__Instance * instance); + +extern void __ecereNameSpace__ecere__com__eInstance_StopWatching(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property, struct __ecereNameSpace__ecere__com__Instance * object); + +extern void __ecereNameSpace__ecere__com__eInstance_FireWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property); + +int __ecereProp___ecereNameSpace__ecere__sys__TempFile_Get_openMode(struct __ecereNameSpace__ecere__com__Instance * this); + +void __ecereProp___ecereNameSpace__ecere__sys__TempFile_Set_openMode(struct __ecereNameSpace__ecere__com__Instance * this, int value); + +int __ecereVMethodID___ecereNameSpace__ecere__sys__File_Read; + +int __ecereVMethodID___ecereNameSpace__ecere__sys__File_Write; + +struct __ecereNameSpace__ecere__sys__BinaryTree; + +struct __ecereNameSpace__ecere__sys__BinaryTree +{ +struct __ecereNameSpace__ecere__sys__BTNode * root; +int count; +int (* CompareKey)(struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t a, uintptr_t b); +void (* FreeKey)(void * key); +} ecere_gcc_struct; + +struct __ecereNameSpace__ecere__com__DataMember; struct __ecereNameSpace__ecere__com__DataMember { struct __ecereNameSpace__ecere__com__DataMember * prev; struct __ecereNameSpace__ecere__com__DataMember * next; -char * name; +const char * name; unsigned int isProperty; int memberAccess; int id; struct __ecereNameSpace__ecere__com__Class * _class; -char * dataTypeString; +const char * dataTypeString; struct __ecereNameSpace__ecere__com__Class * dataTypeClass; struct __ecereNameSpace__ecere__com__Instance * dataType; int type; @@ -191,14 +207,38 @@ int memberID; struct __ecereNameSpace__ecere__sys__OldList members; struct __ecereNameSpace__ecere__sys__BinaryTree membersAlpha; int memberOffset; -int structAlignment; -} __attribute__ ((gcc_struct)); +short structAlignment; +short pointerAlignment; +} ecere_gcc_struct; -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Method; +struct __ecereNameSpace__ecere__com__Method; + +struct __ecereNameSpace__ecere__com__ClassTemplateArgument +{ +union +{ +struct +{ +const char * dataTypeString; +struct __ecereNameSpace__ecere__com__Class * dataTypeClass; +} ecere_gcc_struct __anon1; +struct __ecereNameSpace__ecere__com__DataValue expression; +struct +{ +const char * memberString; +union +{ +struct __ecereNameSpace__ecere__com__DataMember * member; +struct __ecereNameSpace__ecere__com__Property * prop; +struct __ecereNameSpace__ecere__com__Method * method; +} ecere_gcc_struct __anon1; +} ecere_gcc_struct __anon2; +} ecere_gcc_struct __anon1; +} ecere_gcc_struct; struct __ecereNameSpace__ecere__com__Method { -char * name; +const char * name; struct __ecereNameSpace__ecere__com__Method * parent; struct __ecereNameSpace__ecere__com__Method * left; struct __ecereNameSpace__ecere__com__Method * right; @@ -208,119 +248,162 @@ int vid; int type; struct __ecereNameSpace__ecere__com__Class * _class; void * symbol; -char * dataTypeString; +const char * dataTypeString; struct __ecereNameSpace__ecere__com__Instance * dataType; int memberAccess; -} __attribute__ ((gcc_struct)); +} ecere_gcc_struct; -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__SerialBuffer; +extern struct __ecereNameSpace__ecere__com__Method * __ecereNameSpace__ecere__com__eClass_AddMethod(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, const char * type, void * function, int declMode); -struct __ecereNameSpace__ecere__com__SerialBuffer -{ -unsigned char * _buffer; -unsigned int count; -unsigned int _size; -unsigned int pos; -} __attribute__ ((gcc_struct)); +struct __ecereNameSpace__ecere__com__Module; -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__DataValue; +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); -struct __ecereNameSpace__ecere__com__DataValue -{ -union -{ -char c; -unsigned char uc; -short s; -unsigned short us; -int i; -unsigned int ui; -void * p; -float f; -double d; -long long i64; -uint64 ui64; -} __attribute__ ((gcc_struct)); -} __attribute__ ((gcc_struct)); +extern struct __ecereNameSpace__ecere__com__Instance * __thisModule; -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__ClassTemplateArgument; +struct __ecereNameSpace__ecere__com__NameSpace; -struct __ecereNameSpace__ecere__com__ClassTemplateArgument -{ -union -{ -struct +struct __ecereNameSpace__ecere__com__NameSpace { -char * dataTypeString; -struct __ecereNameSpace__ecere__com__Class * dataTypeClass; -} __attribute__ ((gcc_struct)); -struct __ecereNameSpace__ecere__com__DataValue expression; -struct +const char * name; +struct __ecereNameSpace__ecere__com__NameSpace * btParent; +struct __ecereNameSpace__ecere__com__NameSpace * left; +struct __ecereNameSpace__ecere__com__NameSpace * right; +int depth; +struct __ecereNameSpace__ecere__com__NameSpace * parent; +struct __ecereNameSpace__ecere__sys__BinaryTree nameSpaces; +struct __ecereNameSpace__ecere__sys__BinaryTree classes; +struct __ecereNameSpace__ecere__sys__BinaryTree defines; +struct __ecereNameSpace__ecere__sys__BinaryTree functions; +} ecere_gcc_struct; + +struct __ecereNameSpace__ecere__com__Class { -char * memberString; -union +struct __ecereNameSpace__ecere__com__Class * prev; +struct __ecereNameSpace__ecere__com__Class * next; +const char * name; +int offset; +int structSize; +void * * _vTbl; +int vTblSize; +unsigned int (* Constructor)(void * ); +void (* Destructor)(void * ); +int offsetClass; +int sizeClass; +struct __ecereNameSpace__ecere__com__Class * base; +struct __ecereNameSpace__ecere__sys__BinaryTree methods; +struct __ecereNameSpace__ecere__sys__BinaryTree members; +struct __ecereNameSpace__ecere__sys__BinaryTree prop; +struct __ecereNameSpace__ecere__sys__OldList membersAndProperties; +struct __ecereNameSpace__ecere__sys__BinaryTree classProperties; +struct __ecereNameSpace__ecere__sys__OldList derivatives; +int memberID; +int startMemberID; +int type; +struct __ecereNameSpace__ecere__com__Instance * module; +struct __ecereNameSpace__ecere__com__NameSpace * nameSpace; +const char * dataTypeString; +struct __ecereNameSpace__ecere__com__Instance * dataType; +int typeSize; +int defaultAlignment; +void (* Initialize)(); +int memberOffset; +struct __ecereNameSpace__ecere__sys__OldList selfWatchers; +const char * designerClass; +unsigned int noExpansion; +const char * defaultProperty; +unsigned int comRedefinition; +int count; +int isRemote; +unsigned int internalDecl; +void * data; +unsigned int computeSize; +short structAlignment; +short pointerAlignment; +int destructionWatchOffset; +unsigned int fixed; +struct __ecereNameSpace__ecere__sys__OldList delayedCPValues; +int inheritanceAccess; +const char * fullName; +void * symbol; +struct __ecereNameSpace__ecere__sys__OldList conversions; +struct __ecereNameSpace__ecere__sys__OldList templateParams; +struct __ecereNameSpace__ecere__com__ClassTemplateArgument * templateArgs; +struct __ecereNameSpace__ecere__com__Class * templateClass; +struct __ecereNameSpace__ecere__sys__OldList templatized; +int numParams; +unsigned int isInstanceClass; +unsigned int byValueSystemClass; +} ecere_gcc_struct; + +struct __ecereNameSpace__ecere__com__Application { -struct __ecereNameSpace__ecere__com__DataMember * member; -struct __ecereNameSpace__ecere__com__Property * prop; -struct __ecereNameSpace__ecere__com__Method * method; -} __attribute__ ((gcc_struct)); -} __attribute__ ((gcc_struct)); -} __attribute__ ((gcc_struct)); -} __attribute__ ((gcc_struct)); +int argc; +const char * * argv; +int exitCode; +unsigned int isGUIApp; +struct __ecereNameSpace__ecere__sys__OldList allModules; +char * parsedCommand; +struct __ecereNameSpace__ecere__com__NameSpace systemNameSpace; +} ecere_gcc_struct; -static struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__TempFile_openMode, * __ecerePropM___ecereNameSpace__ecere__sys__TempFile_openMode; +static struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__TempFile; -static struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__TempFile_buffer, * __ecerePropM___ecereNameSpace__ecere__sys__TempFile_buffer; +extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Module; -struct __ecereNameSpace__ecere__sys__TempFile +struct __ecereNameSpace__ecere__com__Module { -unsigned char * buffer; -unsigned int size; -unsigned int position; -unsigned int eof; -int openMode; -unsigned int allocated; -} __attribute__ ((gcc_struct)); - -static struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__TempFile; +struct __ecereNameSpace__ecere__com__Instance * application; +struct __ecereNameSpace__ecere__sys__OldList classes; +struct __ecereNameSpace__ecere__sys__OldList defines; +struct __ecereNameSpace__ecere__sys__OldList functions; +struct __ecereNameSpace__ecere__sys__OldList modules; +struct __ecereNameSpace__ecere__com__Instance * prev; +struct __ecereNameSpace__ecere__com__Instance * next; +const char * name; +void * library; +void * Unload; +int importType; +int origImportType; +struct __ecereNameSpace__ecere__com__NameSpace privateNameSpace; +struct __ecereNameSpace__ecere__com__NameSpace publicNameSpace; +} ecere_gcc_struct; unsigned int __ecereConstructor___ecereNameSpace__ecere__sys__TempFile(struct __ecereNameSpace__ecere__com__Instance * this) { -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); +__attribute__((unused)) 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) { -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); +__attribute__((unused)) 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); { (__ecereNameSpace__ecere__com__eSystem_Delete(__ecerePointer___ecereNameSpace__ecere__sys__TempFile->buffer), __ecerePointer___ecereNameSpace__ecere__sys__TempFile->buffer = 0); } } -extern void * memcpy(void * , const void * , size_t size); - int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Read(struct __ecereNameSpace__ecere__com__Instance * this, unsigned char * buffer, unsigned int size, unsigned int count) { int __simpleStruct0; -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); +__attribute__((unused)) 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); int readSize = size * count; 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; return read / size; } -int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Write(struct __ecereNameSpace__ecere__com__Instance * this, unsigned char * buffer, unsigned int size, unsigned int count) +int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Write(struct __ecereNameSpace__ecere__com__Instance * this, const unsigned char * buffer, unsigned int size, unsigned int count) { -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); +__attribute__((unused)) 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); int writeSize = size * count; int written = writeSize; @@ -340,41 +423,62 @@ __ecerePointer___ecereNameSpace__ecere__sys__TempFile->position += written; return written / size; } -int __ecereVMethodID___ecereNameSpace__ecere__sys__File_Read; - unsigned int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Getc(struct __ecereNameSpace__ecere__com__Instance * this, char * ch) { -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); -int read = ((int (*)(struct __ecereNameSpace__ecere__com__Instance *, void * buffer, unsigned int size, unsigned int count))this->_vTbl[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Read])(this, ch, 1, 1); +__attribute__((unused)) 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); +int read = (__extension__ ({ +int (* __internal_VirtualMethod)(struct __ecereNameSpace__ecere__com__Instance *, void * buffer, unsigned int size, unsigned int count); + +__internal_VirtualMethod = ((int (*)(struct __ecereNameSpace__ecere__com__Instance *, void * buffer, unsigned int size, unsigned int count))__extension__ ({ +struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = this; + +__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__TempFile->_vTbl; +})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Read]); +__internal_VirtualMethod ? __internal_VirtualMethod(this, ch, 1, 1) : (int)1; +})); return !__ecerePointer___ecereNameSpace__ecere__sys__TempFile->eof && read != 0; } -int __ecereVMethodID___ecereNameSpace__ecere__sys__File_Write; - unsigned int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Putc(struct __ecereNameSpace__ecere__com__Instance * this, char ch) { -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); -int written = ((int (*)(struct __ecereNameSpace__ecere__com__Instance *, void * buffer, unsigned int size, unsigned int count))this->_vTbl[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write])(this, &ch, 1, 1); +__attribute__((unused)) 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); +int written = (__extension__ ({ +int (* __internal_VirtualMethod)(struct __ecereNameSpace__ecere__com__Instance *, const void * buffer, unsigned int size, unsigned int count); + +__internal_VirtualMethod = ((int (*)(struct __ecereNameSpace__ecere__com__Instance *, const void * buffer, unsigned int size, unsigned int count))__extension__ ({ +struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = this; + +__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__TempFile->_vTbl; +})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write]); +__internal_VirtualMethod ? __internal_VirtualMethod(this, &ch, 1, 1) : (int)1; +})); return written != 0; } -extern size_t strlen(const char * ); - -unsigned int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Puts(struct __ecereNameSpace__ecere__com__Instance * this, char * string) +unsigned int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Puts(struct __ecereNameSpace__ecere__com__Instance * this, const char * string) { -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); -int len = strlen(string); -int written = ((int (*)(struct __ecereNameSpace__ecere__com__Instance *, void * buffer, unsigned int size, unsigned int count))this->_vTbl[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write])(this, string, 1, len); +__attribute__((unused)) 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); +int len = string ? strlen(string) : 0; +int written = (__extension__ ({ +int (* __internal_VirtualMethod)(struct __ecereNameSpace__ecere__com__Instance *, const void * buffer, unsigned int size, unsigned int count); + +__internal_VirtualMethod = ((int (*)(struct __ecereNameSpace__ecere__com__Instance *, const void * buffer, unsigned int size, unsigned int count))__extension__ ({ +struct __ecereNameSpace__ecere__com__Instance * __internal_ClassInst = this; + +__internal_ClassInst ? __internal_ClassInst->_vTbl : __ecereClass___ecereNameSpace__ecere__sys__TempFile->_vTbl; +})[__ecereVMethodID___ecereNameSpace__ecere__sys__File_Write]); +__internal_VirtualMethod ? __internal_VirtualMethod(this, string, 1, len) : (int)1; +})); return written == len; } 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; +__attribute__((unused)) 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 = 1; unsigned int increase = 0; switch(mode) @@ -391,13 +495,13 @@ increase = pos - __ecerePointer___ecereNameSpace__ecere__sys__TempFile->size; 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; @@ -415,13 +519,13 @@ increase = __ecerePointer___ecereNameSpace__ecere__sys__TempFile->position - __e 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) +else if((int)__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; @@ -439,13 +543,13 @@ increase = __ecerePointer___ecereNameSpace__ecere__sys__TempFile->position - __e 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; @@ -453,7 +557,7 @@ break; } } 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; @@ -464,47 +568,47 @@ return result; unsigned int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Tell(struct __ecereNameSpace__ecere__com__Instance * this) { -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); +__attribute__((unused)) 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); return __ecerePointer___ecereNameSpace__ecere__sys__TempFile->position; } unsigned int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Eof(struct __ecereNameSpace__ecere__com__Instance * this) { -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); +__attribute__((unused)) 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); return __ecerePointer___ecereNameSpace__ecere__sys__TempFile->eof; } unsigned int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_GetSize(struct __ecereNameSpace__ecere__com__Instance * this) { -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); +__attribute__((unused)) 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); -return (unsigned int)__ecerePointer___ecereNameSpace__ecere__sys__TempFile->size; +return __ecerePointer___ecereNameSpace__ecere__sys__TempFile->size; } unsigned int __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Truncate(struct __ecereNameSpace__ecere__com__Instance * this, unsigned int size) { -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); +__attribute__((unused)) 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->buffer = __ecereNameSpace__ecere__com__eSystem_Renew(__ecerePointer___ecereNameSpace__ecere__sys__TempFile->buffer, sizeof(unsigned char) * (size)); __ecerePointer___ecereNameSpace__ecere__sys__TempFile->size = (unsigned int)size; __ecerePointer___ecereNameSpace__ecere__sys__TempFile->allocated = (unsigned int)size; -if(__ecerePointer___ecereNameSpace__ecere__sys__TempFile->position > (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) { -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); +__attribute__((unused)) 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); return __ecerePointer___ecereNameSpace__ecere__sys__TempFile->openMode; } void __ecereProp___ecereNameSpace__ecere__sys__TempFile_Set_openMode(struct __ecereNameSpace__ecere__com__Instance * this, int value) { -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); +__attribute__((unused)) 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 = value; __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(this, __ecereProp___ecereNameSpace__ecere__sys__TempFile_openMode), __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(this, __ecerePropM___ecereNameSpace__ecere__sys__TempFile_openMode); @@ -512,61 +616,24 @@ __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(this, __ecereProp___ece unsigned char * __ecereProp___ecereNameSpace__ecere__sys__TempFile_Get_buffer(struct __ecereNameSpace__ecere__com__Instance * this) { -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); +__attribute__((unused)) 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); return __ecerePointer___ecereNameSpace__ecere__sys__TempFile->buffer; } -extern struct __ecereNameSpace__ecere__com__Class * __ecereNameSpace__ecere__com__eSystem_RegisterClass(int type, char * name, char * baseName, int size, int sizeClass, unsigned int (* Constructor)(void * ), void (* Destructor)(void * ), struct __ecereNameSpace__ecere__com__Instance * module, int declMode, int inheritanceAccess); - -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__NameSpace; - -struct __ecereNameSpace__ecere__com__NameSpace -{ -char * name; -struct __ecereNameSpace__ecere__com__NameSpace * btParent; -struct __ecereNameSpace__ecere__com__NameSpace * left; -struct __ecereNameSpace__ecere__com__NameSpace * right; -int depth; -struct __ecereNameSpace__ecere__com__NameSpace * parent; -struct __ecereNameSpace__ecere__sys__BinaryTree nameSpaces; -struct __ecereNameSpace__ecere__sys__BinaryTree classes; -struct __ecereNameSpace__ecere__sys__BinaryTree defines; -struct __ecereNameSpace__ecere__sys__BinaryTree functions; -} __attribute__ ((gcc_struct)); - -extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Module; - -struct __ecereNameSpace__ecere__com__Module +void __ecereUnregisterModule_TempFile(struct __ecereNameSpace__ecere__com__Instance * module) { -struct __ecereNameSpace__ecere__com__Instance * application; -struct __ecereNameSpace__ecere__sys__OldList classes; -struct __ecereNameSpace__ecere__sys__OldList defines; -struct __ecereNameSpace__ecere__sys__OldList functions; -struct __ecereNameSpace__ecere__sys__OldList modules; -struct __ecereNameSpace__ecere__com__Instance * prev; -struct __ecereNameSpace__ecere__com__Instance * next; -char * name; -void * library; -void * Unload; -int importType; -int origImportType; -struct __ecereNameSpace__ecere__com__NameSpace privateNameSpace; -struct __ecereNameSpace__ecere__com__NameSpace publicNameSpace; -} __attribute__ ((gcc_struct)); - -extern struct __ecereNameSpace__ecere__com__Instance * __thisModule; -extern struct __ecereNameSpace__ecere__com__Method * __ecereNameSpace__ecere__com__eClass_AddMethod(struct __ecereNameSpace__ecere__com__Class * _class, char * name, char * type, void * function, int declMode); - -extern struct __ecereNameSpace__ecere__com__Property * __ecereNameSpace__ecere__com__eClass_AddProperty(struct __ecereNameSpace__ecere__com__Class * _class, char * name, char * dataType, void * setStmt, void * getStmt, int declMode); +__ecerePropM___ecereNameSpace__ecere__sys__TempFile_openMode = (void *)0; +__ecerePropM___ecereNameSpace__ecere__sys__TempFile_buffer = (void *)0; +} void __ecereRegisterModule_TempFile(struct __ecereNameSpace__ecere__com__Instance * module) { -struct __ecereNameSpace__ecere__com__Class * class; +struct __ecereNameSpace__ecere__com__Class __attribute__((unused)) * class; -class = __ecereNameSpace__ecere__com__eSystem_RegisterClass(0, "ecere::sys::TempFile", "ecere::sys::File", sizeof(struct __ecereNameSpace__ecere__sys__TempFile), 0, __ecereConstructor___ecereNameSpace__ecere__sys__TempFile, __ecereDestructor___ecereNameSpace__ecere__sys__TempFile, module, 1, 1); -if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + structSize_Instance)))->application && class) +class = __ecereNameSpace__ecere__com__eSystem_RegisterClass(0, "ecere::sys::TempFile", "ecere::sys::File", sizeof(struct __ecereNameSpace__ecere__sys__TempFile), 0, (void *)__ecereConstructor___ecereNameSpace__ecere__sys__TempFile, (void *)__ecereDestructor___ecereNameSpace__ecere__sys__TempFile, module, 1, 1); +if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application && class) __ecereClass___ecereNameSpace__ecere__sys__TempFile = class; __ecereNameSpace__ecere__com__eClass_AddMethod(class, "Seek", 0, __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Seek, 1); __ecereNameSpace__ecere__com__eClass_AddMethod(class, "Tell", 0, __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Tell, 1); @@ -579,17 +646,10 @@ __ecereNameSpace__ecere__com__eClass_AddMethod(class, "Eof", 0, __ecereMethod___ __ecereNameSpace__ecere__com__eClass_AddMethod(class, "Truncate", 0, __ecereMethod___ecereNameSpace__ecere__sys__TempFile_Truncate, 1); __ecereNameSpace__ecere__com__eClass_AddMethod(class, "GetSize", 0, __ecereMethod___ecereNameSpace__ecere__sys__TempFile_GetSize, 1); __ecerePropM___ecereNameSpace__ecere__sys__TempFile_openMode = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "openMode", "ecere::sys::FileOpenMode", __ecereProp___ecereNameSpace__ecere__sys__TempFile_Set_openMode, __ecereProp___ecereNameSpace__ecere__sys__TempFile_Get_openMode, 1); -if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + structSize_Instance)))->application) +if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application) __ecereProp___ecereNameSpace__ecere__sys__TempFile_openMode = __ecerePropM___ecereNameSpace__ecere__sys__TempFile_openMode, __ecerePropM___ecereNameSpace__ecere__sys__TempFile_openMode = (void *)0; __ecerePropM___ecereNameSpace__ecere__sys__TempFile_buffer = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "buffer", "byte *", 0, __ecereProp___ecereNameSpace__ecere__sys__TempFile_Get_buffer, 1); -if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + structSize_Instance)))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + structSize_Instance)))->application) +if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application) __ecereProp___ecereNameSpace__ecere__sys__TempFile_buffer = __ecerePropM___ecereNameSpace__ecere__sys__TempFile_buffer, __ecerePropM___ecereNameSpace__ecere__sys__TempFile_buffer = (void *)0; } -void __ecereUnregisterModule_TempFile(struct __ecereNameSpace__ecere__com__Instance * module) -{ - -__ecerePropM___ecereNameSpace__ecere__sys__TempFile_openMode = (void *)0; -__ecerePropM___ecereNameSpace__ecere__sys__TempFile_buffer = (void *)0; -} -