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
6c559caf
Commit
6c559caf
authored
Jan 26, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Rename a couple of variables to make the code closer to what midl generates.
parent
7e4a9852
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
proxy.c
tools/widl/proxy.c
+12
-9
No files found.
tools/widl/proxy.c
View file @
6c559caf
...
...
@@ -263,7 +263,7 @@ static void gen_proxy(type_t *iface, const func_t *cur, int idx,
write_type
(
proxy
,
def
->
type
,
def
,
def
->
tname
);
print_proxy
(
" _RetVal;
\n
"
);
}
print_proxy
(
"RPC_MESSAGE _
Msg
;
\n
"
);
print_proxy
(
"RPC_MESSAGE _
RpcMessage
;
\n
"
);
print_proxy
(
"MIDL_STUB_MESSAGE _StubMsg;
\n
"
);
print_proxy
(
"
\n
"
);
...
...
@@ -273,7 +273,7 @@ static void gen_proxy(type_t *iface, const func_t *cur, int idx,
print_proxy
(
"RpcTryExcept
\n
"
);
print_proxy
(
"{
\n
"
);
indent
++
;
print_proxy
(
"NdrProxyInitialize(This, &_
Msg
, &_StubMsg, &Object_StubDesc, %d);
\n
"
,
idx
);
print_proxy
(
"NdrProxyInitialize(This, &_
RpcMessage
, &_StubMsg, &Object_StubDesc, %d);
\n
"
,
idx
);
proxy_check_pointers
(
cur
->
args
);
print_proxy
(
"RpcTryFinally
\n
"
);
...
...
@@ -290,7 +290,10 @@ static void gen_proxy(type_t *iface, const func_t *cur, int idx,
print_proxy
(
"NdrProxySendReceive(This, &_StubMsg);
\n
"
);
fprintf
(
proxy
,
"
\n
"
);
print_proxy
(
"if ((_Msg.DataRepresentation&0xffff) != NDR_LOCAL_DATA_REPRESENTATION)
\n
"
);
print_proxy
(
"_StubMsg.BufferStart = _RpcMessage.Buffer;
\n
"
);
print_proxy
(
"_StubMsg.BufferEnd = _StubMsg.BufferStart + _RpcMessage.BufferLength;
\n\n
"
);
print_proxy
(
"if ((_RpcMessage.DataRepresentation & 0xffff) != NDR_LOCAL_DATA_REPRESENTATION)
\n
"
);
indent
++
;
print_proxy
(
"NdrConvert( &_StubMsg, &__MIDL_ProcFormatString.Format[%u]);
\n
"
,
proc_offset
);
indent
--
;
...
...
@@ -345,8 +348,8 @@ static void gen_stub(type_t *iface, const func_t *cur, const char *cas,
print_proxy
(
"_Stub(
\n
"
);
indent
++
;
print_proxy
(
"IRpcStubBuffer* This,
\n
"
);
print_proxy
(
"IRpcChannelBuffer
*
pRpcChannelBuffer,
\n
"
);
print_proxy
(
"PRPC_MESSAGE _
Msg
,
\n
"
);
print_proxy
(
"IRpcChannelBuffer
*_
pRpcChannelBuffer,
\n
"
);
print_proxy
(
"PRPC_MESSAGE _
pRpcMessage
,
\n
"
);
print_proxy
(
"DWORD* _pdwStubPhase)
\n
"
);
indent
--
;
print_proxy
(
"{
\n
"
);
...
...
@@ -358,7 +361,7 @@ static void gen_stub(type_t *iface, const func_t *cur, const char *cas,
/* FIXME: trace */
print_proxy
(
"NdrStubInitialize(_
Msg, &_StubMsg, &Object_StubDesc,
pRpcChannelBuffer);
\n
"
);
print_proxy
(
"NdrStubInitialize(_
pRpcMessage, &_StubMsg, &Object_StubDesc, _
pRpcChannelBuffer);
\n
"
);
fprintf
(
proxy
,
"
\n
"
);
if
(
cur
->
args
)
...
...
@@ -368,7 +371,7 @@ static void gen_stub(type_t *iface, const func_t *cur, const char *cas,
print_proxy
(
"RpcTryFinally
\n
"
);
print_proxy
(
"{
\n
"
);
indent
++
;
print_proxy
(
"if ((_
Msg->DataRepresentation&
0xffff) != NDR_LOCAL_DATA_REPRESENTATION)
\n
"
);
print_proxy
(
"if ((_
pRpcMessage->DataRepresentation &
0xffff) != NDR_LOCAL_DATA_REPRESENTATION)
\n
"
);
indent
++
;
print_proxy
(
"NdrConvert( &_StubMsg, &__MIDL_ProcFormatString.Format[%u]);
\n
"
,
proc_offset
);
indent
--
;
...
...
@@ -405,7 +408,7 @@ static void gen_stub(type_t *iface, const func_t *cur, const char *cas,
offset
=
*
type_offset
;
write_remoting_arguments
(
proxy
,
indent
,
cur
,
&
offset
,
PASS_OUT
,
PHASE_BUFFERSIZE
);
print_proxy
(
"NdrStubGetBuffer(This, pRpcChannelBuffer, &_StubMsg);
\n
"
);
print_proxy
(
"NdrStubGetBuffer(This,
_
pRpcChannelBuffer, &_StubMsg);
\n
"
);
offset
=
*
type_offset
;
write_remoting_arguments
(
proxy
,
indent
,
cur
,
&
offset
,
PASS_OUT
,
PHASE_MARSHAL
);
...
...
@@ -425,7 +428,7 @@ static void gen_stub(type_t *iface, const func_t *cur, const char *cas,
print_proxy
(
"}
\n
"
);
print_proxy
(
"RpcEndFinally
\n
"
);
print_proxy
(
"_
Msg->BufferLength = _StubMsg.Buffer - (unsigned char *)_Msg
->Buffer;
\n
"
);
print_proxy
(
"_
pRpcMessage->BufferLength = _StubMsg.Buffer - (unsigned char *)_pRpcMessage
->Buffer;
\n
"
);
indent
--
;
print_proxy
(
"}
\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