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
201e49d4
Commit
201e49d4
authored
Jan 03, 2014
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jan 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Use BOOL type where appropriate.
parent
48ae8f30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
main.c
tools/winedump/main.c
+1
-1
search.c
tools/winedump/search.c
+4
-4
winedump.h
tools/winedump/winedump.h
+1
-1
No files found.
tools/winedump/main.c
View file @
201e49d4
...
...
@@ -447,7 +447,7 @@ int main (int argc, char *argv[])
int
result
=
symbol_demangle
(
&
symbol
);
if
(
result
)
result
=
symbol_search
(
&
symbol
);
result
=
!
symbol_search
(
&
symbol
);
if
(
!
result
&&
symbol
.
function_name
)
/* Clean up the prototype */
...
...
tools/winedump/search.c
View file @
201e49d4
...
...
@@ -36,7 +36,7 @@ static const char *get_type (parsed_symbol *sym, const char *proto, int arg);
* Call Patrik Stridvall's 'function_grep.pl' script to retrieve a
* function prototype from include file(s)
*/
int
symbol_search
(
parsed_symbol
*
sym
)
BOOL
symbol_search
(
parsed_symbol
*
sym
)
{
static
const
size_t
MAX_RESULT_LEN
=
1024
;
FILE
*
grep
;
...
...
@@ -47,7 +47,7 @@ int symbol_search (parsed_symbol *sym)
assert
(
sym
&&
sym
->
symbol
);
if
(
!
symbol_is_valid_c
(
sym
))
return
-
1
;
return
FALSE
;
if
(
!
grep_buff
)
grep_buff
=
malloc
(
MAX_RESULT_LEN
);
...
...
@@ -137,7 +137,7 @@ int symbol_search (parsed_symbol *sym)
{
pclose
(
f_grep
);
pclose
(
grep
);
return
0
;
/* OK */
return
TRUE
;
/* OK */
}
if
(
VERBOSE
)
puts
(
"Failed, trying next"
);
...
...
@@ -152,7 +152,7 @@ int symbol_search (parsed_symbol *sym)
attempt
++
;
}
return
-
1
;
/* Not found */
return
FALSE
;
/* Not found */
}
...
...
tools/winedump/winedump.h
View file @
201e49d4
...
...
@@ -166,7 +166,7 @@ void symbol_init(parsed_symbol* symbol, const char* name);
int
symbol_demangle
(
parsed_symbol
*
symbol
);
int
symbol_search
(
parsed_symbol
*
symbol
);
BOOL
symbol_search
(
parsed_symbol
*
symbol
);
void
symbol_clear
(
parsed_symbol
*
sym
);
...
...
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