Apply clang-format for core/shared and product-mini files (#785)
Apply clang-format for core/shared and product-mini files
This commit is contained in:
@ -13,8 +13,7 @@ bh_platform_init()
|
||||
|
||||
void
|
||||
bh_platform_destroy()
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
int
|
||||
os_printf(const char *format, ...)
|
||||
@ -42,4 +41,3 @@ os_vprintf(const char *format, va_list ap)
|
||||
return BH_VPRINTF(format, ap);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -59,10 +59,8 @@ typedef pthread_t korp_thread;
|
||||
#define os_thread_local_attribute __thread
|
||||
|
||||
#if WASM_DISABLE_HW_BOUND_CHECK == 0
|
||||
#if defined(BUILD_TARGET_X86_64) \
|
||||
|| defined(BUILD_TARGET_AMD_64) \
|
||||
|| defined(BUILD_TARGET_AARCH64) \
|
||||
|| defined(BUILD_TARGET_RISCV64_LP64D) \
|
||||
#if defined(BUILD_TARGET_X86_64) || defined(BUILD_TARGET_AMD_64) \
|
||||
|| defined(BUILD_TARGET_AARCH64) || defined(BUILD_TARGET_RISCV64_LP64D) \
|
||||
|| defined(BUILD_TARGET_RISCV64_LP64)
|
||||
|
||||
#include <setjmp.h>
|
||||
@ -79,15 +77,20 @@ typedef jmp_buf korp_jmpbuf;
|
||||
|
||||
typedef void (*os_signal_handler)(void *sig_addr);
|
||||
|
||||
int os_thread_signal_init(os_signal_handler handler);
|
||||
int
|
||||
os_thread_signal_init(os_signal_handler handler);
|
||||
|
||||
void os_thread_signal_destroy();
|
||||
void
|
||||
os_thread_signal_destroy();
|
||||
|
||||
bool os_thread_signal_inited();
|
||||
bool
|
||||
os_thread_signal_inited();
|
||||
|
||||
void os_signal_unmask();
|
||||
void
|
||||
os_signal_unmask();
|
||||
|
||||
void os_sigreturn();
|
||||
void
|
||||
os_sigreturn();
|
||||
#endif /* end of BUILD_TARGET_X86_64/AMD_64/AARCH64/RISCV64 */
|
||||
#endif /* end of WASM_DISABLE_HW_BOUND_CHECK */
|
||||
|
||||
@ -96,4 +99,3 @@ void os_sigreturn();
|
||||
#endif
|
||||
|
||||
#endif /* end of _PLATFORM_INTERNAL_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user