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
0b7478a7
Commit
0b7478a7
authored
Nov 25, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Make sure format strings for structure and union types are only output once.
parent
f552c90c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
typegen.c
tools/widl/typegen.c
+5
-2
No files found.
tools/widl/typegen.c
View file @
0b7478a7
...
...
@@ -1864,8 +1864,9 @@ static size_t write_struct_tfs(FILE *file, type_t *type,
nothing is written to file yet. On the actual writing pass,
this will have been updated. */
unsigned
int
absoff
=
type
->
ptrdesc
?
type
->
ptrdesc
:
*
tfsoff
;
short
reloff
=
absoff
-
*
tfsoff
;
print_file
(
file
,
2
,
"NdrFcShort(0x%hx),
\t
/* Offset= %hd (%u) */
\n
"
,
int
reloff
=
absoff
-
*
tfsoff
;
assert
(
reloff
>=
0
);
print_file
(
file
,
2
,
"NdrFcShort(0x%x),
\t
/* Offset= %d (%u) */
\n
"
,
reloff
,
reloff
,
absoff
);
*
tfsoff
+=
2
;
}
...
...
@@ -2254,6 +2255,8 @@ static size_t write_typeformatstring_var(FILE *file, int indent, const func_t *f
if
(
is_base_type
(
type
->
type
))
return
0
;
if
(
processed
(
type
))
return
type
->
typestring_offset
;
switch
(
type
->
type
)
{
case
RPC_FC_STRUCT
:
...
...
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