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
9ca1382e
Commit
9ca1382e
authored
Dec 26, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Store the size of a pointer in a variable instead of hardcoding the value…
widl: Store the size of a pointer in a variable instead of hardcoding the value of the host compiler.
parent
a011f0cd
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
3 deletions
+13
-3
client.c
tools/widl/client.c
+2
-0
proxy.c
tools/widl/proxy.c
+4
-2
server.c
tools/widl/server.c
+2
-0
typegen.c
tools/widl/typegen.c
+2
-1
widl.c
tools/widl/widl.c
+2
-0
widl.h
tools/widl/widl.h
+1
-0
No files found.
tools/widl/client.c
View file @
9ca1382e
...
...
@@ -510,6 +510,8 @@ void write_client(const statement_list_t *stmts)
if
(
!
client
)
return
;
pointer_size
=
sizeof
(
void
*
);
write_formatstringsdecl
(
client
,
indent
,
stmts
,
need_stub
);
expr_eval_routines
=
write_expr_eval_routines
(
client
,
client_token
);
if
(
expr_eval_routines
)
...
...
tools/widl/proxy.c
View file @
9ca1382e
...
...
@@ -127,8 +127,6 @@ static void init_proxy(const statement_list_t *stmts)
print_proxy
(
" return (__frame->_StubMsg.dwStubPhase != PROXY_SENDRECEIVE);
\n
"
);
print_proxy
(
"}
\n
"
);
print_proxy
(
"
\n
"
);
write_formatstringsdecl
(
proxy
,
indent
,
stmts
,
need_proxy
);
write_stubdescproto
();
}
static
void
clear_output_vars
(
const
var_list_t
*
args
)
...
...
@@ -757,6 +755,10 @@ void write_proxies(const statement_list_t *stmts)
init_proxy
(
stmts
);
if
(
!
proxy
)
return
;
pointer_size
=
sizeof
(
void
*
);
write_formatstringsdecl
(
proxy
,
indent
,
stmts
,
need_proxy
);
write_stubdescproto
();
write_proxy_stmts
(
stmts
,
&
proc_offset
);
expr_eval_routines
=
write_expr_eval_routines
(
proxy
,
proxy_token
);
...
...
tools/widl/server.c
View file @
9ca1382e
...
...
@@ -450,6 +450,8 @@ void write_server(const statement_list_t *stmts)
if
(
!
server
)
return
;
pointer_size
=
sizeof
(
void
*
);
write_formatstringsdecl
(
server
,
indent
,
stmts
,
need_stub
);
expr_eval_routines
=
write_expr_eval_routines
(
server
,
server_token
);
if
(
expr_eval_routines
)
...
...
tools/widl/typegen.c
View file @
9ca1382e
...
...
@@ -1018,7 +1018,8 @@ size_t type_memsize(const type_t *t, unsigned int *align)
}
else
if
(
is_ptr
(
t
)
||
is_conformant_array
(
t
))
{
size
=
sizeof
(
void
*
);
assert
(
pointer_size
);
size
=
pointer_size
;
if
(
size
>
*
align
)
*
align
=
size
;
}
else
switch
(
t
->
type
)
...
...
tools/widl/widl.c
View file @
9ca1382e
...
...
@@ -132,6 +132,8 @@ FILE *local_stubs;
FILE
*
proxy
;
FILE
*
idfile
;
size_t
pointer_size
=
0
;
time_t
now
;
enum
{
...
...
tools/widl/widl.h
View file @
9ca1382e
...
...
@@ -59,6 +59,7 @@ extern char *server_name;
extern
char
*
server_token
;
extern
const
char
*
prefix_client
;
extern
const
char
*
prefix_server
;
extern
size_t
pointer_size
;
extern
time_t
now
;
extern
int
line_number
;
...
...
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