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
194fd874
Commit
194fd874
authored
May 02, 2010
by
Gerald Pfeifer
Committed by
Alexandre Julliard
May 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Simplify write_struct_tfs and remove an unused variable.
parent
44f1fbce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
typegen.c
tools/widl/typegen.c
+6
-5
No files found.
tools/widl/typegen.c
View file @
194fd874
...
@@ -2452,7 +2452,6 @@ static unsigned int write_struct_tfs(FILE *file, type_t *type,
...
@@ -2452,7 +2452,6 @@ static unsigned int write_struct_tfs(FILE *file, type_t *type,
unsigned
int
total_size
;
unsigned
int
total_size
;
const
var_t
*
array
;
const
var_t
*
array
;
unsigned
int
start_offset
;
unsigned
int
start_offset
;
unsigned
int
array_offset
;
unsigned
int
align
;
unsigned
int
align
;
unsigned
int
corroff
;
unsigned
int
corroff
;
var_t
*
f
;
var_t
*
f
;
...
@@ -2473,10 +2472,12 @@ static unsigned int write_struct_tfs(FILE *file, type_t *type,
...
@@ -2473,10 +2472,12 @@ static unsigned int write_struct_tfs(FILE *file, type_t *type,
array
=
find_array_or_string_in_struct
(
type
);
array
=
find_array_or_string_in_struct
(
type
);
if
(
array
&&
!
processed
(
array
->
type
))
if
(
array
&&
!
processed
(
array
->
type
))
array_offset
{
=
is_string_type
(
array
->
attrs
,
array
->
type
)
if
(
is_string_type
(
array
->
attrs
,
array
->
type
))
?
write_string_tfs
(
file
,
array
->
attrs
,
array
->
type
,
FALSE
,
array
->
name
,
tfsoff
)
write_string_tfs
(
file
,
array
->
attrs
,
array
->
type
,
FALSE
,
array
->
name
,
tfsoff
);
:
write_array_tfs
(
file
,
array
->
attrs
,
array
->
type
,
array
->
name
,
tfsoff
);
else
write_array_tfs
(
file
,
array
->
attrs
,
array
->
type
,
array
->
name
,
tfsoff
);
}
corroff
=
*
tfsoff
;
corroff
=
*
tfsoff
;
write_descriptors
(
file
,
type
,
tfsoff
);
write_descriptors
(
file
,
type
,
tfsoff
);
...
...
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