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
3870bf0d
Commit
3870bf0d
authored
Aug 17, 2006
by
Dan Hipschman
Committed by
Alexandre Julliard
Aug 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Output format-strings for interface pointers.
parent
9b16916e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
typegen.c
tools/widl/typegen.c
+30
-0
No files found.
tools/widl/typegen.c
View file @
3870bf0d
...
...
@@ -1279,6 +1279,31 @@ static size_t write_union_tfs(FILE *file, const attr_t *attrs,
return
*
typeformat_offset
;
}
static
size_t
write_ip_tfs
(
FILE
*
file
,
const
attr_t
*
attrs
,
const
type_t
*
type
,
const
char
*
name
,
unsigned
int
*
typeformat_offset
)
{
size_t
i
;
size_t
start_offset
=
*
typeformat_offset
;
const
UUID
*
uuid
=
get_attrp
(
attrs
,
ATTR_UUID
);
if
(
!
uuid
)
error
(
"%s: interface %s missing UUID
\n
"
,
__FUNCTION__
,
name
);
print_file
(
file
,
2
,
"0x2f,
\t
/* FC_IP */
\n
"
);
print_file
(
file
,
2
,
"0x5a,
\t
/* FC_CONSTANT_IID */
\n
"
);
print_file
(
file
,
2
,
"NdrFcLong(0x%08lx),
\n
"
,
uuid
->
Data1
);
print_file
(
file
,
2
,
"NdrFcShort(0x%04x),
\n
"
,
uuid
->
Data2
);
print_file
(
file
,
2
,
"NdrFcShort(0x%04x),
\n
"
,
uuid
->
Data3
);
for
(
i
=
0
;
i
<
8
;
++
i
)
print_file
(
file
,
2
,
"0x%02x,
\n
"
,
uuid
->
Data4
[
i
]);
if
(
file
)
fprintf
(
file
,
"
\n
"
);
*
typeformat_offset
+=
18
;
return
start_offset
;
}
static
size_t
write_typeformatstring_var
(
FILE
*
file
,
int
indent
,
const
var_t
*
var
,
unsigned
int
*
typeformat_offset
)
{
...
...
@@ -1339,6 +1364,11 @@ static size_t write_typeformatstring_var(FILE *file, int indent,
int
pointer_type
=
get_attrv
(
var
->
attrs
,
ATTR_POINTERTYPE
);
if
(
!
pointer_type
)
pointer_type
=
RPC_FC_RP
;
if
(
type
->
type
==
RPC_FC_IP
)
{
return
write_ip_tfs
(
file
,
type
->
attrs
,
type
,
type
->
name
,
typeformat_offset
);
}
/* special case for pointers to base types */
switch
(
type
->
type
)
{
...
...
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