From 5196818d47164996303ac65a902a1027df333bdd Mon Sep 17 00:00:00 2001 From: Caoruihong Date: Tue, 16 Nov 2021 01:21:00 +0800 Subject: [PATCH] chore: replace YES/NO macros to 1/0 Signed-off-by: Caoruihong Change-Id: I80f8b23cac10bc714dea921ed1fd43b687ce3748 --- arch/xtensa/lx6/gcc/los_arch_regs.h | 10 ---------- testsuites/include/los_dlinkmem.h | 4 ++-- testsuites/include/osTest.h | 8 ++++---- testsuites/sample/kernel/hwi/It_los_hwi.c | 2 +- testsuites/sample/kernel/mem/It_los_mem.h | 2 +- testsuites/sample/kernel/sem/It_los_sem.c | 2 +- testsuites/src/osTest.c | 2 +- 7 files changed, 10 insertions(+), 20 deletions(-) diff --git a/arch/xtensa/lx6/gcc/los_arch_regs.h b/arch/xtensa/lx6/gcc/los_arch_regs.h index 1d730be5..3aa7d302 100644 --- a/arch/xtensa/lx6/gcc/los_arch_regs.h +++ b/arch/xtensa/lx6/gcc/los_arch_regs.h @@ -163,16 +163,6 @@ extern "C" { #define LEVEL4 4 #define LEVEL5 5 -#ifdef YES -#undef YES -#endif -#define YES 1 - -#ifdef NO -#undef NO -#endif -#define NO 0 - #ifdef __cplusplus #if __cplusplus } diff --git a/testsuites/include/los_dlinkmem.h b/testsuites/include/los_dlinkmem.h index a9788436..d4f7cdd5 100644 --- a/testsuites/include/los_dlinkmem.h +++ b/testsuites/include/los_dlinkmem.h @@ -38,7 +38,7 @@ extern "C" { #endif /* __cplusplus */ #endif /* __cplusplus */ -#if (OS_SYS_MEM_CHECK == YES) +#if (OS_SYS_MEM_CHECK == 1) #define LOS_DLNK_ENABLE_ALLOC_CHECK #endif @@ -82,7 +82,7 @@ typedef struct tagLOS_DLNK_NODE { * @param pool [IN] Starting address of memory. * @param size [IN] Memory size. * - * @retval #OS_ERROR ¨C1: The dynamic memory fails to be initialized. + * @retval #OS_ERROR �C1: The dynamic memory fails to be initialized. * @retval #LOS_OK 0: The dynamic memory is successfully initialized. * @par Dependency: *