ecere/bootstrap: Tweak to instance.ec for stdcall to make it to bootstrap (Is it...
authorJerome St-Louis <jerome@ecere.com>
Tue, 30 Aug 2011 17:52:44 +0000 (13:52 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 30 Aug 2011 17:52:44 +0000 (13:52 -0400)
compiler/bootstrap/ecere/bootstrap/instance.c
documentor/locale/zh_CN/LC_MESSAGES/documentor.mo [new file with mode: 0644]
ecere/src/com/instance.ec

index a722618..19245e9 100644 (file)
@@ -22,9 +22,6 @@ typedef unsigned __int64 uint64;
 #else
 #define __ENDIAN_PAD(x) 0
 #endif
-
-#define stdcall __attribute__((__stdcall__))
-
 extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__BTNode;
 
 struct __ecereNameSpace__ecere__sys__BTNode;
@@ -346,9 +343,9 @@ void __ecereNameSpace__ecere__com__MemoryGuard_PopLoc()
 {
 }
 
-extern unsigned int stdcall __ecereDll_Load_ecere(struct __ecereNameSpace__ecere__com__Instance * module);
+extern unsigned int __attribute__((__stdcall__)) __ecereDll_Load_ecere(struct __ecereNameSpace__ecere__com__Instance * module);
 
-extern void stdcall __ecereDll_Unload_ecere(struct __ecereNameSpace__ecere__com__Instance * module);
+extern void __attribute__((__stdcall__)) __ecereDll_Unload_ecere(struct __ecereNameSpace__ecere__com__Instance * module);
 
 struct __ecereNameSpace__ecere__com__BTNamedLink
 {
@@ -4056,8 +4053,8 @@ return (((void *)0));
 static struct __ecereNameSpace__ecere__com__Instance * __ecereNameSpace__ecere__com__Module_Load(struct __ecereNameSpace__ecere__com__Instance * fromModule, char * name, int importAccess, unsigned int ensureCOM)
 {
 void * __ecereTemp1;
-unsigned int (stdcall * Load)(struct __ecereNameSpace__ecere__com__Instance * module) = (((void *)0));
-void (stdcall * Unload)(struct __ecereNameSpace__ecere__com__Instance * module) = (((void *)0));
+unsigned int (__attribute__((__stdcall__)) * Load)(struct __ecereNameSpace__ecere__com__Instance * module) = (((void *)0));
+void (__attribute__((__stdcall__)) * Unload)(struct __ecereNameSpace__ecere__com__Instance * module) = (((void *)0));
 struct __ecereNameSpace__ecere__com__Instance * module;
 
 for(module = ((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)fromModule + 12)))->application + 296)))->allModules.first; module; module = ((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->next)
@@ -4321,7 +4318,7 @@ Unload(module);
 }
 else
 {
-unsigned int (stdcall * Unload)(struct __ecereNameSpace__ecere__com__Instance * module) = (void *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->Unload;
+unsigned int (__attribute__((__stdcall__)) * Unload)(struct __ecereNameSpace__ecere__com__Instance * module) = (void *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + 12)))->Unload;
 
 Unload(module);
 }
diff --git a/documentor/locale/zh_CN/LC_MESSAGES/documentor.mo b/documentor/locale/zh_CN/LC_MESSAGES/documentor.mo
new file mode 100644 (file)
index 0000000..c8a76a9
Binary files /dev/null and b/documentor/locale/zh_CN/LC_MESSAGES/documentor.mo differ
index 4fc4d0f..9f47d32 100644 (file)
@@ -7,8 +7,10 @@ import "dataTypes"
 
 #if defined(ECERE_BOOTSTRAP) || defined(ECERE_STATIC)
 #define dllexport
+#if !defined(ECERE_BOOTSTRAP)
 #define stdcall
 #endif
+#endif
 
 #if !defined(ECERE_BOOTSTRAP)
 import "Mutex"