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);
|
int result = symbol_demangle (&symbol);
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
result = symbol_search (&symbol);
|
result = !symbol_search (&symbol);
|
||||||
|
|
||||||
if (!result && symbol.function_name)
|
if (!result && symbol.function_name)
|
||||||
/* Clean up the prototype */
|
/* 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
|
* Call Patrik Stridvall's 'function_grep.pl' script to retrieve a
|
||||||
* function prototype from include file(s)
|
* 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;
|
static const size_t MAX_RESULT_LEN = 1024;
|
||||||
FILE *grep;
|
FILE *grep;
|
||||||
|
@ -47,7 +47,7 @@ int symbol_search (parsed_symbol *sym)
|
||||||
assert (sym && sym->symbol);
|
assert (sym && sym->symbol);
|
||||||
|
|
||||||
if (!symbol_is_valid_c (sym))
|
if (!symbol_is_valid_c (sym))
|
||||||
return - 1;
|
return FALSE;
|
||||||
|
|
||||||
if (!grep_buff)
|
if (!grep_buff)
|
||||||
grep_buff = malloc (MAX_RESULT_LEN);
|
grep_buff = malloc (MAX_RESULT_LEN);
|
||||||
|
@ -137,7 +137,7 @@ int symbol_search (parsed_symbol *sym)
|
||||||
{
|
{
|
||||||
pclose (f_grep);
|
pclose (f_grep);
|
||||||
pclose (grep);
|
pclose (grep);
|
||||||
return 0; /* OK */
|
return TRUE; /* OK */
|
||||||
}
|
}
|
||||||
if (VERBOSE)
|
if (VERBOSE)
|
||||||
puts ("Failed, trying next");
|
puts ("Failed, trying next");
|
||||||
|
@ -152,7 +152,7 @@ int symbol_search (parsed_symbol *sym)
|
||||||
attempt++;
|
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_demangle (parsed_symbol *symbol);
|
||||||
|
|
||||||
int symbol_search (parsed_symbol *symbol);
|
BOOL symbol_search (parsed_symbol *symbol);
|
||||||
|
|
||||||
void symbol_clear(parsed_symbol *sym);
|
void symbol_clear(parsed_symbol *sym);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue