dbghelp: Use BOOL type where appropriate.

This commit is contained in:
Frédéric Delanoy 2013-11-12 01:16:36 +01:00 committed by Alexandre Julliard
parent 2209fdbdd2
commit 1d65efe50b
8 changed files with 23 additions and 23 deletions

View File

@ -29,7 +29,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp); 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) enum cpu_addr ca, ADDRESS64* addr)
{ {
addr->Mode = AddrModeFlat; addr->Mode = AddrModeFlat;

View File

@ -29,7 +29,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp); 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) enum cpu_addr ca, ADDRESS64* addr)
{ {
addr->Mode = AddrModeFlat; addr->Mode = AddrModeFlat;

View File

@ -48,7 +48,7 @@ static ADDRESS_MODE get_selector_type(HANDLE hThread, const CONTEXT* ctx, WORD s
return -1; 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) unsigned seg, unsigned long offset)
{ {
addr->Mode = AddrModeFlat; addr->Mode = AddrModeFlat;
@ -73,7 +73,7 @@ static unsigned i386_build_addr(HANDLE hThread, const CONTEXT* ctx, ADDRESS64* a
} }
#endif #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) enum cpu_addr ca, ADDRESS64* addr)
{ {
#ifdef __i386__ #ifdef __i386__

View File

@ -28,7 +28,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp); 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) enum cpu_addr ca, ADDRESS64* addr)
{ {
switch (ca) switch (ca)

View File

@ -91,7 +91,7 @@ typedef struct _UNWIND_INFO
#define GetExceptionDataPtr(info) \ #define GetExceptionDataPtr(info) \
((PVOID)((PULONG)GetLanguageSpecificData(info) + 1) ((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) enum cpu_addr ca, ADDRESS64* addr)
{ {
addr->Mode = AddrModeFlat; addr->Mode = AddrModeFlat;

View File

@ -520,7 +520,7 @@ struct cpu
DWORD frame_regno; DWORD frame_regno;
/* address manipulation */ /* address manipulation */
unsigned (*get_addr)(HANDLE hThread, const CONTEXT* ctx, BOOL (*get_addr)(HANDLE hThread, const CONTEXT* ctx,
enum cpu_addr, ADDRESS64* addr); enum cpu_addr, ADDRESS64* addr);
/* stack manipulation */ /* stack manipulation */

View File

@ -56,7 +56,7 @@ static int match_ext(const WCHAR* ptr, size_t len)
for (e = ext; *e; e++) for (e = ext; *e; e++)
{ {
l = strlenW(*e); l = strlenW(*e);
if (l >= len) return FALSE; if (l >= len) return 0;
if (strncmpiW(&ptr[len - l], *e, l)) continue; if (strncmpiW(&ptr[len - l], *e, l)) continue;
return l; return l;
} }

View File

@ -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; 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, struct symt_enum* symt,
const union codeview_reftype* ref_type) const union codeview_reftype* ref_type)
{ {
@ -1327,12 +1327,12 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp,
default: default:
FIXME("Unsupported type-id leaf %x\n", type->generic.id); FIXME("Unsupported type-id leaf %x\n", type->generic.id);
dump(type, 2 + type->generic.len); dump(type, 2 + type->generic.len);
return FALSE; return NULL;
} }
return codeview_add_type(curr_type, symt) ? symt : 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; unsigned int curr_type = FIRST_DEFINABLE_TYPE;
const union codeview_type* 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) int offset, int size, BOOL do_globals)
{ {
struct symt_function* curr_func = NULL; 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; 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) int offset, int size)
{ {