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
11bee58b
Commit
11bee58b
authored
Jan 12, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Remove some more always-true conditions.
parent
0e4c00a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
translation.c
tools/wrc/translation.c
+6
-9
No files found.
tools/wrc/translation.c
View file @
11bee58b
...
...
@@ -614,18 +614,16 @@ static int compare_ver_value(ver_value_t *ver_value1, ver_value_t *ver_value2) {
if
((
ver_value1
->
type
==
ver_value2
->
type
))
{
switch
(
ver_value1
->
type
)
{
case
val_str
:
if
(
!
different
&&
ver_value1
->
key
&&
ver_value2
->
key
)
if
(
ver_value1
->
key
&&
ver_value2
->
key
)
different
=
compare_string
(
ver_value1
->
key
,
ver_value2
->
key
);
else
if
(
!
different
&&
((
ver_value1
->
key
&&
!
ver_value2
->
key
)
||
else
if
(((
ver_value1
->
key
&&
!
ver_value2
->
key
)
||
(
!
ver_value1
->
key
&&
ver_value2
->
key
)))
different
=
1
;
break
;
case
val_words
:
if
(
!
different
&&
ver_value1
->
key
&&
ver_value2
->
key
)
if
(
ver_value1
->
key
&&
ver_value2
->
key
)
different
=
compare_string
(
ver_value1
->
key
,
ver_value2
->
key
);
else
if
(
!
different
&&
((
ver_value1
->
key
&&
!
ver_value2
->
key
)
||
else
if
(((
ver_value1
->
key
&&
!
ver_value2
->
key
)
||
(
!
ver_value1
->
key
&&
ver_value2
->
key
)))
different
=
1
;
if
(
!
different
&&
ver_value1
->
value
.
words
&&
ver_value2
->
value
.
words
)
{
...
...
@@ -644,10 +642,9 @@ static int compare_ver_value(ver_value_t *ver_value1, ver_value_t *ver_value2) {
different
=
1
;
break
;
case
val_block
:
if
(
!
different
&&
ver_value1
->
value
.
block
&&
ver_value2
->
value
.
block
)
if
(
ver_value1
->
value
.
block
&&
ver_value2
->
value
.
block
)
different
=
compare_ver_block
(
ver_value1
->
value
.
block
,
ver_value2
->
value
.
block
);
else
if
(
!
different
&&
((
ver_value1
->
value
.
block
&&
!
ver_value2
->
value
.
block
)
||
else
if
(((
ver_value1
->
value
.
block
&&
!
ver_value2
->
value
.
block
)
||
(
!
ver_value1
->
value
.
block
&&
ver_value2
->
value
.
block
)))
different
=
1
;
break
;
...
...
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