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
4c41dd5f
Commit
4c41dd5f
authored
Oct 22, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Duplicate the exception handling code between 32-bit and 64-bit.
parent
575485c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
client.c
tools/widl/client.c
+4
-3
server.c
tools/widl/server.c
+18
-17
No files found.
tools/widl/client.c
View file @
4c41dd5f
...
...
@@ -448,8 +448,6 @@ static void init_client(void)
print_client
(
"#define DECLSPEC_HIDDEN
\n
"
);
print_client
(
"#endif
\n
"
);
print_client
(
"
\n
"
);
write_exceptions
(
client
);
print_client
(
"
\n
"
);
}
...
...
@@ -503,6 +501,9 @@ static void write_client_routines(const statement_list_t *stmts)
unsigned
int
proc_offset
=
0
;
int
expr_eval_routines
;
write_exceptions
(
client
);
print_client
(
"
\n
"
);
write_formatstringsdecl
(
client
,
indent
,
stmts
,
need_stub
);
expr_eval_routines
=
write_expr_eval_routines
(
client
,
client_token
);
if
(
expr_eval_routines
)
...
...
@@ -530,7 +531,7 @@ void write_client(const statement_list_t *stmts)
if
(
do_win32
&&
do_win64
)
{
fprintf
(
client
,
"
\n
#ifndef _WIN64
\n\n
"
);
fprintf
(
client
,
"#ifndef _WIN64
\n\n
"
);
pointer_size
=
4
;
write_client_routines
(
stmts
);
fprintf
(
client
,
"
\n
#else /* _WIN64 */
\n\n
"
);
...
...
tools/widl/server.c
View file @
4c41dd5f
...
...
@@ -384,22 +384,6 @@ static void init_server(void)
print_server
(
"#define DECLSPEC_HIDDEN
\n
"
);
print_server
(
"#endif
\n
"
);
print_server
(
"
\n
"
);
write_exceptions
(
server
);
print_server
(
"
\n
"
);
print_server
(
"struct __server_frame
\n
"
);
print_server
(
"{
\n
"
);
print_server
(
" __DECL_EXCEPTION_FRAME
\n
"
);
print_server
(
" MIDL_STUB_MESSAGE _StubMsg;
\n
"
);
print_server
(
"};
\n
"
);
print_server
(
"
\n
"
);
print_server
(
"static int __server_filter( struct __server_frame *__frame )
\n
"
);
print_server
(
"{
\n
"
);
print_server
(
" return (__frame->code == STATUS_ACCESS_VIOLATION) ||
\n
"
);
print_server
(
" (__frame->code == STATUS_DATATYPE_MISALIGNMENT) ||
\n
"
);
print_server
(
" (__frame->code == RPC_X_BAD_STUB_DATA) ||
\n
"
);
print_server
(
" (__frame->code == RPC_S_INVALID_BOUND);
\n
"
);
print_server
(
"}
\n
"
);
print_server
(
"
\n
"
);
}
...
...
@@ -445,6 +429,23 @@ static void write_server_routines(const statement_list_t *stmts)
unsigned
int
proc_offset
=
0
;
int
expr_eval_routines
;
write_exceptions
(
server
);
print_server
(
"
\n
"
);
print_server
(
"struct __server_frame
\n
"
);
print_server
(
"{
\n
"
);
print_server
(
" __DECL_EXCEPTION_FRAME
\n
"
);
print_server
(
" MIDL_STUB_MESSAGE _StubMsg;
\n
"
);
print_server
(
"};
\n
"
);
print_server
(
"
\n
"
);
print_server
(
"static int __server_filter( struct __server_frame *__frame )
\n
"
);
print_server
(
"{
\n
"
);
print_server
(
" return (__frame->code == STATUS_ACCESS_VIOLATION) ||
\n
"
);
print_server
(
" (__frame->code == STATUS_DATATYPE_MISALIGNMENT) ||
\n
"
);
print_server
(
" (__frame->code == RPC_X_BAD_STUB_DATA) ||
\n
"
);
print_server
(
" (__frame->code == RPC_S_INVALID_BOUND);
\n
"
);
print_server
(
"}
\n
"
);
print_server
(
"
\n
"
);
write_formatstringsdecl
(
server
,
indent
,
stmts
,
need_stub
);
expr_eval_routines
=
write_expr_eval_routines
(
server
,
server_token
);
if
(
expr_eval_routines
)
...
...
@@ -472,7 +473,7 @@ void write_server(const statement_list_t *stmts)
if
(
do_win32
&&
do_win64
)
{
fprintf
(
server
,
"
\n
#ifndef _WIN64
\n\n
"
);
fprintf
(
server
,
"#ifndef _WIN64
\n\n
"
);
pointer_size
=
4
;
write_server_routines
(
stmts
);
fprintf
(
server
,
"
\n
#else /* _WIN64 */
\n\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