Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2c97f3fc
Commit
2c97f3fc
authored
Aug 14, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Avoid FALSE:TRUE conditional expressions.
parent
f6cd3e87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
server.c
tools/widl/server.c
+2
-3
typegen.c
tools/widl/typegen.c
+3
-2
No files found.
tools/widl/server.c
View file @
2c97f3fc
...
...
@@ -175,11 +175,10 @@ static void write_function_stub(const type_t *iface, const var_t *func, unsigned
/* if the context_handle attribute appears in the chain of types
* without pointers being followed, then the context handle must
* be direct, otherwise it is a pointer */
int
is_ch_ptr
=
is_aliaschain_attr
(
var
->
type
,
ATTR_CONTEXTHANDLE
)
?
FALSE
:
TRUE
;
const
char
*
ch_ptr
=
is_aliaschain_attr
(
var
->
type
,
ATTR_CONTEXTHANDLE
)
?
"*"
:
""
;
print_server
(
"("
);
write_type_decl_left
(
server
,
var
->
type
);
fprintf
(
server
,
")%sNDRSContextValue(__frame->%s)"
,
is_ch_ptr
?
""
:
"*"
,
var
->
name
);
fprintf
(
server
,
")%sNDRSContextValue(__frame->%s)"
,
ch_ptr
,
var
->
name
);
}
else
{
...
...
tools/widl/typegen.c
View file @
2c97f3fc
...
...
@@ -4146,10 +4146,11 @@ static void write_remoting_arg(FILE *file, int indent, const var_t *func, const
/* if the context_handle attribute appears in the chain of types
* without pointers being followed, then the context handle must
* be direct, otherwise it is a pointer */
int
is_ch_ptr
=
is_aliaschain_attr
(
type
,
ATTR_CONTEXTHANDLE
)
?
FALSE
:
TRUE
;
const
char
*
ch_ptr
=
is_aliaschain_attr
(
type
,
ATTR_CONTEXTHANDLE
)
?
""
:
"*"
;
print_file
(
file
,
indent
,
"NdrClientContextMarshall(
\n
"
);
print_file
(
file
,
indent
+
1
,
"&__frame->_StubMsg,
\n
"
);
print_file
(
file
,
indent
+
1
,
"(NDR_CCONTEXT)%s%s%s,
\n
"
,
is_ch_ptr
?
"*"
:
""
,
local_var_prefix
,
var
->
name
);
print_file
(
file
,
indent
+
1
,
"(NDR_CCONTEXT)%s%s%s,
\n
"
,
ch_ptr
,
local_var_prefix
,
var
->
name
);
print_file
(
file
,
indent
+
1
,
"%s);
\n
"
,
in_attr
&&
out_attr
?
"1"
:
"0"
);
}
else
...
...
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