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
2eee8743
Commit
2eee8743
authored
Jan 26, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Make some generated variables static and/or const.
parent
2b9c01ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
proxy.c
tools/widl/proxy.c
+10
-10
No files found.
tools/widl/proxy.c
View file @
2eee8743
...
...
@@ -532,7 +532,7 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset, unsigned int *
}
/* proxy vtable */
print_proxy
(
"const CINTERFACE_PROXY_VTABLE(%d) _%sProxyVtbl =
\n
"
,
midx
,
iface
->
name
);
print_proxy
(
"
static
const CINTERFACE_PROXY_VTABLE(%d) _%sProxyVtbl =
\n
"
,
midx
,
iface
->
name
);
print_proxy
(
"{
\n
"
);
indent
++
;
print_proxy
(
"{
\n
"
,
iface
->
name
);
...
...
@@ -559,7 +559,7 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset, unsigned int *
indent
--
;
fprintf
(
proxy
,
"};
\n
"
);
print_proxy
(
"
\n
"
);
print_proxy
(
"const CInterfaceStubVtbl _%sStubVtbl =
\n
"
,
iface
->
name
);
print_proxy
(
"
static
const CInterfaceStubVtbl _%sStubVtbl =
\n
"
,
iface
->
name
);
print_proxy
(
"{
\n
"
);
indent
++
;
print_proxy
(
"{
\n
"
);
...
...
@@ -607,30 +607,30 @@ void write_proxies(ifref_list_t *ifaces)
write_procformatstring
(
proxy
,
ifaces
,
1
);
write_typeformatstring
(
proxy
,
ifaces
,
1
);
fprintf
(
proxy
,
"
const CInterfaceProxyVtbl*
_%s_ProxyVtblList[] =
\n
"
,
file_id
);
fprintf
(
proxy
,
"
static const CInterfaceProxyVtbl* const
_%s_ProxyVtblList[] =
\n
"
,
file_id
);
fprintf
(
proxy
,
"{
\n
"
);
if
(
ifaces
)
LIST_FOR_EACH_ENTRY
(
cur
,
ifaces
,
ifref_t
,
entry
)
if
(
cur
->
iface
->
ref
&&
cur
->
iface
->
funcs
&&
is_object
(
cur
->
iface
->
attrs
)
&&
!
is_local
(
cur
->
iface
->
attrs
))
fprintf
(
proxy
,
" (CInterfaceProxyVtbl*)&_%sProxyVtbl,
\n
"
,
cur
->
iface
->
name
);
fprintf
(
proxy
,
" (
const
CInterfaceProxyVtbl*)&_%sProxyVtbl,
\n
"
,
cur
->
iface
->
name
);
fprintf
(
proxy
,
" 0
\n
"
);
fprintf
(
proxy
,
"};
\n
"
);
fprintf
(
proxy
,
"
\n
"
);
fprintf
(
proxy
,
"
const CInterfaceStubVtbl*
_%s_StubVtblList[] =
\n
"
,
file_id
);
fprintf
(
proxy
,
"
static const CInterfaceStubVtbl* const
_%s_StubVtblList[] =
\n
"
,
file_id
);
fprintf
(
proxy
,
"{
\n
"
);
if
(
ifaces
)
LIST_FOR_EACH_ENTRY
(
cur
,
ifaces
,
ifref_t
,
entry
)
if
(
cur
->
iface
->
ref
&&
cur
->
iface
->
funcs
&&
is_object
(
cur
->
iface
->
attrs
)
&&
!
is_local
(
cur
->
iface
->
attrs
))
fprintf
(
proxy
,
" (CInterfaceStubVtbl*)&_%sStubVtbl,
\n
"
,
cur
->
iface
->
name
);
fprintf
(
proxy
,
" (
const
CInterfaceStubVtbl*)&_%sStubVtbl,
\n
"
,
cur
->
iface
->
name
);
fprintf
(
proxy
,
" 0
\n
"
);
fprintf
(
proxy
,
"};
\n
"
);
fprintf
(
proxy
,
"
\n
"
);
fprintf
(
proxy
,
"PCInterfaceName const _%s_InterfaceNamesList[] =
\n
"
,
file_id
);
fprintf
(
proxy
,
"
static
PCInterfaceName const _%s_InterfaceNamesList[] =
\n
"
,
file_id
);
fprintf
(
proxy
,
"{
\n
"
);
if
(
ifaces
)
LIST_FOR_EACH_ENTRY
(
cur
,
ifaces
,
ifref_t
,
entry
)
...
...
@@ -663,9 +663,9 @@ void write_proxies(ifref_list_t *ifaces)
fprintf
(
proxy
,
"const ExtendedProxyFileInfo %s_ProxyFileInfo =
\n
"
,
file_id
);
fprintf
(
proxy
,
"{
\n
"
);
fprintf
(
proxy
,
" (PCInterfaceProxyVtblList*)&_%s_ProxyVtblList,
\n
"
,
file_id
);
fprintf
(
proxy
,
" (PCInterfaceStubVtblList*)&_%s_StubVtblList,
\n
"
,
file_id
);
fprintf
(
proxy
,
"
(const PCInterfaceName*)&
_%s_InterfaceNamesList,
\n
"
,
file_id
);
fprintf
(
proxy
,
" (
const
PCInterfaceProxyVtblList*)&_%s_ProxyVtblList,
\n
"
,
file_id
);
fprintf
(
proxy
,
" (
const
PCInterfaceStubVtblList*)&_%s_StubVtblList,
\n
"
,
file_id
);
fprintf
(
proxy
,
" _%s_InterfaceNamesList,
\n
"
,
file_id
);
fprintf
(
proxy
,
" 0,
\n
"
);
fprintf
(
proxy
,
" &_%s_IID_Lookup,
\n
"
,
file_id
);
fprintf
(
proxy
,
" %d,
\n
"
,
c
);
...
...
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