[PATCH] widl: mark some generated functions as hidden visibility

Marcus Meissner meissner at suse.de
Thu Apr 21 03:34:45 CDT 2011


---
 tools/widl/proxy.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c
index c945ac0..661d96f 100644
--- a/tools/widl/proxy.c
+++ b/tools/widl/proxy.c
@@ -280,7 +280,7 @@ static void gen_proxy(type_t *iface, const var_t *func, int idx,
   print_proxy( "\n");
 
   write_type_decl_left(proxy, type_function_get_rettype(func->type));
-  print_proxy( " %s %s_%s_Proxy(\n", callconv, iface->name, get_name(func));
+  print_proxy( " %s DECLSPEC_HIDDEN %s_%s_Proxy(\n", callconv, iface->name, get_name(func));
   write_args(proxy, type_get_function_args(func->type), iface->name, 1, TRUE);
   print_proxy( ")\n");
   print_proxy( "{\n");
@@ -404,7 +404,7 @@ static void gen_stub(type_t *iface, const var_t *func, const char *cas,
   indent--;
   print_proxy( "}\n\n" );
 
-  print_proxy( "void __RPC_STUB %s_%s_Stub(\n", iface->name, get_name(func));
+  print_proxy( "DECLSPEC_HIDDEN void __RPC_STUB %s_%s_Stub(\n", iface->name, get_name(func));
   indent++;
   print_proxy( "IRpcStubBuffer* This,\n");
   print_proxy( "IRpcChannelBuffer *_pRpcChannelBuffer,\n");
@@ -874,7 +874,7 @@ static void write_proxy_routines(const statement_list_t *stmts)
   fprintf(proxy, "}\n");
   fprintf(proxy, "\n");
 
-  fprintf(proxy, "const ExtendedProxyFileInfo %s_ProxyFileInfo DECLSPEC_HIDDEN =\n", file_id);
+  fprintf(proxy, "DECLSPEC_HIDDEN const ExtendedProxyFileInfo %s_ProxyFileInfo =\n", file_id);
   fprintf(proxy, "{\n");
   fprintf(proxy, "    (const PCInterfaceProxyVtblList*)_%s_ProxyVtblList,\n", file_id);
   fprintf(proxy, "    (const PCInterfaceStubVtblList*)_%s_StubVtblList,\n", file_id);
-- 
1.7.1



More information about the wine-patches mailing list