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
bf3de5ed
Commit
bf3de5ed
authored
Sep 22, 2003
by
Michal Janusz Miroslaw
Committed by
Alexandre Julliard
Sep 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DEBUG_cmp_sym: micro optimization/cleanup.
parent
221aa8d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
20 deletions
+8
-20
hash.c
programs/winedbg/hash.c
+8
-20
No files found.
programs/winedbg/hash.c
View file @
bf3de5ed
...
...
@@ -104,38 +104,26 @@ static unsigned int name_hash( const char * name )
int
DEBUG_cmp_sym
(
const
void
*
p1
,
const
void
*
p2
)
{
struct
name_hash
*
*
name1
=
(
struct
name_hash
**
)
p1
;
struct
name_hash
*
*
name2
=
(
struct
name_hash
**
)
p2
;
struct
name_hash
*
name1
=
*
(
struct
name_hash
**
)
p1
;
struct
name_hash
*
name2
=
*
(
struct
name_hash
**
)
p2
;
if
(
((
*
name1
)
->
flags
&
SYM_INVALID
)
!=
0
)
{
if
(
(
name1
->
flags
&
SYM_INVALID
)
!=
0
)
return
-
1
;
}
if
(
((
*
name2
)
->
flags
&
SYM_INVALID
)
!=
0
)
{
if
(
(
name2
->
flags
&
SYM_INVALID
)
!=
0
)
return
1
;
}
if
(
(
*
name1
)
->
value
.
addr
.
seg
>
(
*
name2
)
->
value
.
addr
.
seg
)
{
if
(
name1
->
value
.
addr
.
seg
>
name2
->
value
.
addr
.
seg
)
return
1
;
}
if
(
(
*
name1
)
->
value
.
addr
.
seg
<
(
*
name2
)
->
value
.
addr
.
seg
)
{
if
(
name1
->
value
.
addr
.
seg
<
name2
->
value
.
addr
.
seg
)
return
-
1
;
}
if
(
(
*
name1
)
->
value
.
addr
.
off
>
(
*
name2
)
->
value
.
addr
.
off
)
{
if
(
name1
->
value
.
addr
.
off
>
name2
->
value
.
addr
.
off
)
return
1
;
}
if
(
(
*
name1
)
->
value
.
addr
.
off
<
(
*
name2
)
->
value
.
addr
.
off
)
{
if
(
name1
->
value
.
addr
.
off
<
name2
->
value
.
addr
.
off
)
return
-
1
;
}
return
0
;
}
...
...
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