winedump: Use BOOL type where appropriate.

This commit is contained in:
Frédéric Delanoy 2014-01-03 01:57:01 +01:00 committed by Alexandre Julliard
parent 48ae8f3070
commit 201e49d4aa
3 changed files with 6 additions and 6 deletions

View File

@ -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 */

View File

@ -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 */
}

View File

@ -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);