Eric Kohl : widl: Support multiple RPC interfaces per binary.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 17 05:55:15 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: bec0993199a443b8ae8548b7883a6ee6da761656
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=bec0993199a443b8ae8548b7883a6ee6da761656

Author: Eric Kohl <eric.kohl at t-online.de>
Date:   Sun Apr 16 10:39:37 2006 +0200

widl: Support multiple RPC interfaces per binary.

---

 tools/widl/client.c |    6 +++---
 tools/widl/server.c |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tools/widl/client.c b/tools/widl/client.c
index 2cd4806..ea40d5e 100644
--- a/tools/widl/client.c
+++ b/tools/widl/client.c
@@ -332,7 +332,7 @@ static void write_bindinghandledecl(type
 
 static void write_stubdescdecl(type_t *iface)
 {
-    print_client("extern const MIDL_STUB_DESC %s_StubDesc;\n", iface->name);
+    print_client("static const MIDL_STUB_DESC %s_StubDesc;\n", iface->name);
     fprintf(client, "\n");
 }
 
@@ -433,8 +433,8 @@ static void write_formatstringsdecl(type
     write_formatdesc("TYPE");
     write_formatdesc("PROC");
     fprintf(client, "\n");
-    print_client("extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;\n");
-    print_client("extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;\n");
+    print_client("static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;\n");
+    print_client("static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;\n");
     print_client("\n");
 }
 
diff --git a/tools/widl/server.c b/tools/widl/server.c
index d29364e..fc9051d 100644
--- a/tools/widl/server.c
+++ b/tools/widl/server.c
@@ -481,7 +481,7 @@ static void write_dispatchtable(type_t *
 
 static void write_stubdescdecl(type_t *iface)
 {
-    print_server("extern const MIDL_STUB_DESC %s_StubDesc;\n", iface->name);
+    print_server("static const MIDL_STUB_DESC %s_StubDesc;\n", iface->name);
     fprintf(server, "\n");
 }
 
@@ -578,8 +578,8 @@ static void write_formatstringsdecl(type
     write_formatdesc("TYPE");
     write_formatdesc("PROC");
     fprintf(server, "\n");
-    print_server("extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;\n");
-    print_server("extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;\n");
+    print_server("static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;\n");
+    print_server("static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;\n");
     print_server("\n");
 }
 




More information about the wine-cvs mailing list