mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
util: Replace the usage of boolean with c11 bool in u_debug_symbol.c
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19649>
This commit is contained in:
parent
28d044730f
commit
d13d93b089
1 changed files with 7 additions and 7 deletions
|
|
@ -66,7 +66,7 @@ getDbgHelpProcAddress(LPCSTR lpProcName)
|
|||
static HMODULE hModule = NULL;
|
||||
|
||||
if (!hModule) {
|
||||
static boolean bail = FALSE;
|
||||
static bool bail = false;
|
||||
|
||||
if (bail) {
|
||||
return NULL;
|
||||
|
|
@ -96,7 +96,7 @@ getDbgHelpProcAddress(LPCSTR lpProcName)
|
|||
}
|
||||
|
||||
if (!hModule) {
|
||||
bail = TRUE;
|
||||
bail = true;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
@ -149,7 +149,7 @@ DBGHELP_DISPATCH(SymCleanup, BOOL, FALSE, (HANDLE hProcess), (hProcess))
|
|||
#undef DBGHELP_DISPATCH
|
||||
|
||||
|
||||
static inline boolean
|
||||
static inline bool
|
||||
debug_symbol_name_dbghelp(const void *addr, char* buf, unsigned size)
|
||||
{
|
||||
DWORD64 dwAddr = (DWORD64)(uintptr_t)addr;
|
||||
|
|
@ -196,17 +196,17 @@ debug_symbol_name_dbghelp(const void *addr, char* buf, unsigned size)
|
|||
if (!GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS,
|
||||
(LPCTSTR)addr,
|
||||
&hModule)) {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (GetModuleFileNameA(hModule, buffer, sizeof buffer) == sizeof buffer) {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
snprintf(buf, size, "%p at %s+0x%lx",
|
||||
addr, buffer,
|
||||
(unsigned long)((uintptr_t)addr - (uintptr_t)hModule));
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -224,7 +224,7 @@ debug_symbol_name_dbghelp(const void *addr, char* buf, unsigned size)
|
|||
snprintf(buf, size, "%s", pSymbol->Name);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif /* PIPE_OS_WINDOWS */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue