Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c7a2aaf2
Commit
c7a2aaf2
authored
Nov 08, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Remove DECLSPEC_HIDDEN from generated files.
parent
19cc2439
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
17 deletions
+5
-17
client.c
tools/widl/client.c
+2
-6
proxy.c
tools/widl/proxy.c
+1
-5
server.c
tools/widl/server.c
+2
-6
No files found.
tools/widl/client.c
View file @
c7a2aaf2
...
@@ -468,10 +468,10 @@ static void write_clientinterfacedecl(type_t *iface)
...
@@ -468,10 +468,10 @@ static void write_clientinterfacedecl(type_t *iface)
indent
--
;
indent
--
;
print_client
(
"};
\n
"
);
print_client
(
"};
\n
"
);
if
(
old_names
)
if
(
old_names
)
print_client
(
"RPC_IF_HANDLE %s_ClientIfHandle
DECLSPEC_HIDDEN
= (RPC_IF_HANDLE)& %s___RpcClientInterface;
\n
"
,
print_client
(
"RPC_IF_HANDLE %s_ClientIfHandle = (RPC_IF_HANDLE)& %s___RpcClientInterface;
\n
"
,
iface
->
name
,
iface
->
name
);
iface
->
name
,
iface
->
name
);
else
else
print_client
(
"RPC_IF_HANDLE %s%s_v%d_%d_c_ifspec
DECLSPEC_HIDDEN
= (RPC_IF_HANDLE)& %s___RpcClientInterface;
\n
"
,
print_client
(
"RPC_IF_HANDLE %s%s_v%d_%d_c_ifspec = (RPC_IF_HANDLE)& %s___RpcClientInterface;
\n
"
,
prefix_client
,
iface
->
name
,
MAJORVERSION
(
ver
),
MINORVERSION
(
ver
),
iface
->
name
);
prefix_client
,
iface
->
name
,
MAJORVERSION
(
ver
),
MINORVERSION
(
ver
),
iface
->
name
);
fprintf
(
client
,
"
\n
"
);
fprintf
(
client
,
"
\n
"
);
}
}
...
@@ -500,10 +500,6 @@ static void init_client(void)
...
@@ -500,10 +500,6 @@ static void init_client(void)
print_client
(
"
\n
"
);
print_client
(
"
\n
"
);
print_client
(
"#include
\"
%s
\"\n
"
,
header_name
);
print_client
(
"#include
\"
%s
\"\n
"
,
header_name
);
print_client
(
"
\n
"
);
print_client
(
"
\n
"
);
print_client
(
"#ifndef DECLSPEC_HIDDEN
\n
"
);
print_client
(
"#define DECLSPEC_HIDDEN
\n
"
);
print_client
(
"#endif
\n
"
);
print_client
(
"
\n
"
);
}
}
...
...
tools/widl/proxy.c
View file @
c7a2aaf2
...
@@ -86,10 +86,6 @@ static void init_proxy(const statement_list_t *stmts)
...
@@ -86,10 +86,6 @@ static void init_proxy(const statement_list_t *stmts)
print_proxy
(
"#define __midl_proxy
\n
"
);
print_proxy
(
"#define __midl_proxy
\n
"
);
print_proxy
(
"#include
\"
objbase.h
\"\n
"
);
print_proxy
(
"#include
\"
objbase.h
\"\n
"
);
print_proxy
(
"
\n
"
);
print_proxy
(
"
\n
"
);
print_proxy
(
"#ifndef DECLSPEC_HIDDEN
\n
"
);
print_proxy
(
"#define DECLSPEC_HIDDEN
\n
"
);
print_proxy
(
"#endif
\n
"
);
print_proxy
(
"
\n
"
);
}
}
static
void
clear_output_vars
(
const
var_list_t
*
args
)
static
void
clear_output_vars
(
const
var_list_t
*
args
)
...
@@ -1026,7 +1022,7 @@ static void write_proxy_routines(const statement_list_t *stmts)
...
@@ -1026,7 +1022,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
,
"const ExtendedProxyFileInfo %s_ProxyFileInfo =
\n
"
,
file_id
);
fprintf
(
proxy
,
"{
\n
"
);
fprintf
(
proxy
,
"{
\n
"
);
fprintf
(
proxy
,
" (const PCInterfaceProxyVtblList*)_%s_ProxyVtblList,
\n
"
,
file_id
);
fprintf
(
proxy
,
" (const PCInterfaceProxyVtblList*)_%s_ProxyVtblList,
\n
"
,
file_id
);
fprintf
(
proxy
,
" (const PCInterfaceStubVtblList*)_%s_StubVtblList,
\n
"
,
file_id
);
fprintf
(
proxy
,
" (const PCInterfaceStubVtblList*)_%s_StubVtblList,
\n
"
,
file_id
);
...
...
tools/widl/server.c
View file @
c7a2aaf2
...
@@ -433,10 +433,10 @@ static void write_serverinterfacedecl(type_t *iface)
...
@@ -433,10 +433,10 @@ static void write_serverinterfacedecl(type_t *iface)
indent
--
;
indent
--
;
print_server
(
"};
\n
"
);
print_server
(
"};
\n
"
);
if
(
old_names
)
if
(
old_names
)
print_server
(
"RPC_IF_HANDLE %s_ServerIfHandle
DECLSPEC_HIDDEN
= (RPC_IF_HANDLE)& %s___RpcServerInterface;
\n
"
,
print_server
(
"RPC_IF_HANDLE %s_ServerIfHandle = (RPC_IF_HANDLE)& %s___RpcServerInterface;
\n
"
,
iface
->
name
,
iface
->
name
);
iface
->
name
,
iface
->
name
);
else
else
print_server
(
"RPC_IF_HANDLE %s%s_v%d_%d_s_ifspec
DECLSPEC_HIDDEN
= (RPC_IF_HANDLE)& %s___RpcServerInterface;
\n
"
,
print_server
(
"RPC_IF_HANDLE %s%s_v%d_%d_s_ifspec = (RPC_IF_HANDLE)& %s___RpcServerInterface;
\n
"
,
prefix_server
,
iface
->
name
,
MAJORVERSION
(
ver
),
MINORVERSION
(
ver
),
iface
->
name
);
prefix_server
,
iface
->
name
,
MAJORVERSION
(
ver
),
MINORVERSION
(
ver
),
iface
->
name
);
fprintf
(
server
,
"
\n
"
);
fprintf
(
server
,
"
\n
"
);
}
}
...
@@ -453,10 +453,6 @@ static void init_server(void)
...
@@ -453,10 +453,6 @@ static void init_server(void)
print_server
(
"#include <string.h>
\n
"
);
print_server
(
"#include <string.h>
\n
"
);
fprintf
(
server
,
"
\n
"
);
fprintf
(
server
,
"
\n
"
);
print_server
(
"#include
\"
%s
\"\n
"
,
header_name
);
print_server
(
"#include
\"
%s
\"\n
"
,
header_name
);
print_server
(
"
\n
"
);
print_server
(
"#ifndef DECLSPEC_HIDDEN
\n
"
);
print_server
(
"#define DECLSPEC_HIDDEN
\n
"
);
print_server
(
"#endif
\n
"
);
print_server
(
"
\n
"
);
print_server
(
"
\n
"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment