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
fea33036
Commit
fea33036
authored
Dec 12, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Dec 12, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Don't output __RPC_FAR in generated code.
parent
019aef9f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
client.c
tools/widl/client.c
+5
-5
server.c
tools/widl/server.c
+3
-3
typegen.c
tools/widl/typegen.c
+2
-2
No files found.
tools/widl/client.c
View file @
fea33036
...
...
@@ -153,9 +153,9 @@ static void write_function_stubs(type_t *iface)
print_client
(
"NdrSendReceive(
\n
"
);
indent
++
;
print_client
(
"(PMIDL_STUB_MESSAGE)&_StubMsg,
\n
"
);
print_client
(
"(unsigned char
__RPC_FAR
*)_StubMsg.Buffer);
\n
"
);
/* print_client("(unsigned char
__RPC_FAR
*)_StubMsg.Buffer,\n"); */
/* print_client("(RPC_BINDING_HANDLE
__RPC_FAR
*) &%s__MIDL_AutoBindHandle);\n", iface->name); */
print_client
(
"(unsigned char *)_StubMsg.Buffer);
\n
"
);
/* print_client("(unsigned char *)_StubMsg.Buffer,\n"); */
/* print_client("(RPC_BINDING_HANDLE *) &%s__MIDL_AutoBindHandle);\n", iface->name); */
indent
--
;
/* unmarshal return value */
...
...
@@ -174,7 +174,7 @@ static void write_function_stubs(type_t *iface)
print_client
(
"_RetVal = *(("
);
write_type
(
client
,
def
->
type
,
def
,
def
->
tname
);
fprintf
(
client
,
"
__RPC_FAR
*)_StubMsg.Buffer)++;
\n
"
);
fprintf
(
client
,
" *)_StubMsg.Buffer)++;
\n
"
);
}
/* update proc_offset */
...
...
@@ -244,7 +244,7 @@ static void write_stubdescriptor(type_t *iface)
print_client
(
"static const MIDL_STUB_DESC %s_StubDesc =
\n
"
,
iface
->
name
);
print_client
(
"{
\n
"
);
indent
++
;
print_client
(
"(void
__RPC_FAR
*)& %s___RpcClientInterface,
\n
"
,
iface
->
name
);
print_client
(
"(void *)& %s___RpcClientInterface,
\n
"
,
iface
->
name
);
print_client
(
"MIDL_user_allocate,
\n
"
);
print_client
(
"MIDL_user_free,
\n
"
);
if
(
implicit_handle
)
...
...
tools/widl/server.c
View file @
fea33036
...
...
@@ -216,12 +216,12 @@ static void write_function_stubs(type_t *iface)
print_server
(
"RpcRaiseException(_Status);
\n
"
);
indent
--
;
fprintf
(
server
,
"
\n
"
);
print_server
(
"_StubMsg.Buffer = (unsigned char
__RPC_FAR
*)_pRpcMessage->Buffer;
\n
"
);
print_server
(
"_StubMsg.Buffer = (unsigned char *)_pRpcMessage->Buffer;
\n
"
);
fprintf
(
server
,
"
\n
"
);
print_server
(
"*(("
);
write_type
(
server
,
def
->
type
,
def
,
def
->
tname
);
fprintf
(
server
,
"
__RPC_FAR
*)_StubMsg.Buffer)++ = _RetVal;
\n
"
);
fprintf
(
server
,
" *)_StubMsg.Buffer)++ = _RetVal;
\n
"
);
}
indent
--
;
...
...
@@ -306,7 +306,7 @@ static void write_stubdescriptor(type_t *iface)
print_server
(
"static const MIDL_STUB_DESC %s_StubDesc =
\n
"
,
iface
->
name
);
print_server
(
"{
\n
"
);
indent
++
;
print_server
(
"(void
__RPC_FAR
*)& %s___RpcServerInterface,
\n
"
,
iface
->
name
);
print_server
(
"(void *)& %s___RpcServerInterface,
\n
"
,
iface
->
name
);
print_server
(
"MIDL_user_allocate,
\n
"
);
print_server
(
"MIDL_user_free,
\n
"
);
print_server
(
"0,
\n
"
);
...
...
tools/widl/typegen.c
View file @
fea33036
...
...
@@ -236,7 +236,7 @@ void marshall_arguments(FILE *file, int indent, func_t *func)
print_file
(
file
,
indent
,
"*(("
);
write_type
(
file
,
var
->
type
,
var
,
var
->
tname
);
fprintf
(
file
,
"
__RPC_FAR
*)_StubMsg.Buffer)++ = "
);
fprintf
(
file
,
" *)_StubMsg.Buffer)++ = "
);
write_name
(
file
,
var
);
fprintf
(
file
,
";
\n
"
);
fprintf
(
file
,
"
\n
"
);
...
...
@@ -306,7 +306,7 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func)
write_name
(
file
,
var
);
fprintf
(
file
,
" = *(("
);
write_type
(
file
,
var
->
type
,
var
,
var
->
tname
);
fprintf
(
file
,
"
__RPC_FAR
*)_StubMsg.Buffer)++;
\n
"
);
fprintf
(
file
,
" *)_StubMsg.Buffer)++;
\n
"
);
fprintf
(
file
,
"
\n
"
);
last_size
=
size
;
...
...
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