winedump: Use BOOL type where appropriate.
This commit is contained in:
parent
48ae8f3070
commit
201e49d4aa
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue