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
a3040cea
Commit
a3040cea
authored
Jan 07, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Use symbolic names for some of the context handle attributes.
parent
06ed169b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
typegen.c
tools/widl/typegen.c
+7
-6
No files found.
tools/widl/typegen.c
View file @
a3040cea
...
...
@@ -2061,7 +2061,7 @@ static size_t write_contexthandle_tfs(FILE *file, const type_t *type,
unsigned
char
flags
=
0
;
if
(
is_attr
(
current_iface
->
attrs
,
ATTR_STRICTCONTEXTHANDLE
))
flags
|=
0x08
/* strict */
;
flags
|=
NDR_STRICT_CONTEXT_HANDLE
;
if
(
is_ptr
(
type
))
flags
|=
0x80
;
...
...
@@ -2069,20 +2069,21 @@ static size_t write_contexthandle_tfs(FILE *file, const type_t *type,
{
flags
|=
0x40
;
if
(
!
is_attr
(
var
->
attrs
,
ATTR_OUT
))
flags
|=
0x01
;
flags
|=
NDR_CONTEXT_HANDLE_CANNOT_BE_NULL
;
}
if
(
is_attr
(
var
->
attrs
,
ATTR_OUT
))
flags
|=
0x20
;
WRITE_FCTYPE
(
file
,
FC_BIND_CONTEXT
,
*
typeformat_offset
);
print_file
(
file
,
2
,
"0x%x,
\t
/* Context flags: "
,
flags
);
if
(((
flags
&
0x21
)
!=
0x21
)
&&
(
flags
&
0x01
))
/* return and can't be null values overlap */
if
(((
flags
&
0x21
)
!=
0x21
)
&&
(
flags
&
NDR_CONTEXT_HANDLE_CANNOT_BE_NULL
))
print_file
(
file
,
0
,
"can't be null, "
);
if
(
flags
&
0x02
)
if
(
flags
&
NDR_CONTEXT_HANDLE_SERIALIZE
)
print_file
(
file
,
0
,
"serialize, "
);
if
(
flags
&
0x04
)
if
(
flags
&
NDR_CONTEXT_HANDLE_NO_SERIALIZE
)
print_file
(
file
,
0
,
"no serialize, "
);
if
(
flags
&
0x08
)
if
(
flags
&
NDR_STRICT_CONTEXT_HANDLE
)
print_file
(
file
,
0
,
"strict, "
);
if
((
flags
&
0x21
)
==
0x20
)
print_file
(
file
,
0
,
"out, "
);
...
...
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