dbghelp: Use BOOL type where appropriate.
This commit is contained in:
parent
2209fdbdd2
commit
1d65efe50b
|
@ -29,7 +29,7 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
|
||||
|
||||
static unsigned arm_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||
static BOOL arm_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||
enum cpu_addr ca, ADDRESS64* addr)
|
||||
{
|
||||
addr->Mode = AddrModeFlat;
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
|
||||
|
||||
static unsigned arm64_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||
static BOOL arm64_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||
enum cpu_addr ca, ADDRESS64* addr)
|
||||
{
|
||||
addr->Mode = AddrModeFlat;
|
||||
|
|
|
@ -48,7 +48,7 @@ static ADDRESS_MODE get_selector_type(HANDLE hThread, const CONTEXT* ctx, WORD s
|
|||
return -1;
|
||||
}
|
||||
|
||||
static unsigned i386_build_addr(HANDLE hThread, const CONTEXT* ctx, ADDRESS64* addr,
|
||||
static BOOL i386_build_addr(HANDLE hThread, const CONTEXT* ctx, ADDRESS64* addr,
|
||||
unsigned seg, unsigned long offset)
|
||||
{
|
||||
addr->Mode = AddrModeFlat;
|
||||
|
@ -73,7 +73,7 @@ static unsigned i386_build_addr(HANDLE hThread, const CONTEXT* ctx, ADDRESS64* a
|
|||
}
|
||||
#endif
|
||||
|
||||
static unsigned i386_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||
static BOOL i386_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||
enum cpu_addr ca, ADDRESS64* addr)
|
||||
{
|
||||
#ifdef __i386__
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
|
||||
|
||||
static unsigned ppc_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||
static BOOL ppc_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||
enum cpu_addr ca, ADDRESS64* addr)
|
||||
{
|
||||
switch (ca)
|
||||
|
|
|
@ -91,7 +91,7 @@ typedef struct _UNWIND_INFO
|
|||
#define GetExceptionDataPtr(info) \
|
||||
((PVOID)((PULONG)GetLanguageSpecificData(info) + 1)
|
||||
|
||||
static unsigned x86_64_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||
static BOOL x86_64_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||
enum cpu_addr ca, ADDRESS64* addr)
|
||||
{
|
||||
addr->Mode = AddrModeFlat;
|
||||
|
|
|
@ -520,7 +520,7 @@ struct cpu
|
|||
DWORD frame_regno;
|
||||
|
||||
/* address manipulation */
|
||||
unsigned (*get_addr)(HANDLE hThread, const CONTEXT* ctx,
|
||||
BOOL (*get_addr)(HANDLE hThread, const CONTEXT* ctx,
|
||||
enum cpu_addr, ADDRESS64* addr);
|
||||
|
||||
/* stack manipulation */
|
||||
|
|
|
@ -56,7 +56,7 @@ static int match_ext(const WCHAR* ptr, size_t len)
|
|||
for (e = ext; *e; e++)
|
||||
{
|
||||
l = strlenW(*e);
|
||||
if (l >= len) return FALSE;
|
||||
if (l >= len) return 0;
|
||||
if (strncmpiW(&ptr[len - l], *e, l)) continue;
|
||||
return l;
|
||||
}
|
||||
|
|
|
@ -651,7 +651,7 @@ static struct symt* codeview_add_type_array(struct codeview_type_parse* ctp,
|
|||
return &symt_new_array(ctp->module, 0, -arr_len, elem, index)->symt;
|
||||
}
|
||||
|
||||
static int codeview_add_type_enum_field_list(struct module* module,
|
||||
static BOOL codeview_add_type_enum_field_list(struct module* module,
|
||||
struct symt_enum* symt,
|
||||
const union codeview_reftype* ref_type)
|
||||
{
|
||||
|
@ -1327,12 +1327,12 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp,
|
|||
default:
|
||||
FIXME("Unsupported type-id leaf %x\n", type->generic.id);
|
||||
dump(type, 2 + type->generic.len);
|
||||
return FALSE;
|
||||
return NULL;
|
||||
}
|
||||
return codeview_add_type(curr_type, symt) ? symt : NULL;
|
||||
}
|
||||
|
||||
static int codeview_parse_type_table(struct codeview_type_parse* ctp)
|
||||
static BOOL codeview_parse_type_table(struct codeview_type_parse* ctp)
|
||||
{
|
||||
unsigned int curr_type = FIRST_DEFINABLE_TYPE;
|
||||
const union codeview_type* type;
|
||||
|
@ -1557,7 +1557,7 @@ static inline void codeview_add_variable(const struct msc_debug_info* msc_dbg,
|
|||
}
|
||||
}
|
||||
|
||||
static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root,
|
||||
static BOOL codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root,
|
||||
int offset, int size, BOOL do_globals)
|
||||
{
|
||||
struct symt_function* curr_func = NULL;
|
||||
|
@ -2004,7 +2004,7 @@ static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static int codeview_snarf_public(const struct msc_debug_info* msc_dbg, const BYTE* root,
|
||||
static BOOL codeview_snarf_public(const struct msc_debug_info* msc_dbg, const BYTE* root,
|
||||
int offset, int size)
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue