提交 5196818d 编写于 作者: C Caoruihong

chore: replace YES/NO macros to 1/0

Signed-off-by: NCaoruihong <crh.cao@huawei.com>
Change-Id: I80f8b23cac10bc714dea921ed1fd43b687ce3748
上级 201da62e
...@@ -163,16 +163,6 @@ extern "C" { ...@@ -163,16 +163,6 @@ extern "C" {
#define LEVEL4 4 #define LEVEL4 4
#define LEVEL5 5 #define LEVEL5 5
#ifdef YES
#undef YES
#endif
#define YES 1
#ifdef NO
#undef NO
#endif
#define NO 0
#ifdef __cplusplus #ifdef __cplusplus
#if __cplusplus #if __cplusplus
} }
......
...@@ -38,7 +38,7 @@ extern "C" { ...@@ -38,7 +38,7 @@ extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* __cplusplus */ #endif /* __cplusplus */
#if (OS_SYS_MEM_CHECK == YES) #if (OS_SYS_MEM_CHECK == 1)
#define LOS_DLNK_ENABLE_ALLOC_CHECK #define LOS_DLNK_ENABLE_ALLOC_CHECK
#endif #endif
...@@ -82,7 +82,7 @@ typedef struct tagLOS_DLNK_NODE { ...@@ -82,7 +82,7 @@ typedef struct tagLOS_DLNK_NODE {
* @param pool [IN] Starting address of memory. * @param pool [IN] Starting address of memory.
* @param size [IN] Memory size. * @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. * @retval #LOS_OK 0: The dynamic memory is successfully initialized.
* @par Dependency: * @par Dependency:
* <ul> * <ul>
......
...@@ -188,12 +188,12 @@ extern EVENT_CB_S g_exampleEvent; ...@@ -188,12 +188,12 @@ extern EVENT_CB_S g_exampleEvent;
#define TST_IT #define TST_IT
#endif #endif
#define TEST_PT YES #define TEST_PT 1
#if (YES == OS_INCLUDE_DYNMEM) #if (1 == OS_INCLUDE_DYNMEM)
#define TEST_BIG YES #define TEST_BIG 1
#else #else
#define TEST_BIG NO #define TEST_BIG 0
#endif #endif
#define TASK_PRIO_TEST 25 #define TASK_PRIO_TEST 25
......
...@@ -57,7 +57,7 @@ VOID ItSuiteLosHwi() ...@@ -57,7 +57,7 @@ VOID ItSuiteLosHwi()
ItLosHwi022(); ItLosHwi022();
ItLosHwi023(); ItLosHwi023();
ItLosHwi024(); ItLosHwi024();
#if (LOSCFG_BASE_CORE_SWTMR_ALIGN == YES) #if (LOSCFG_BASE_CORE_SWTMR_ALIGN == 1)
ItLosHwi026(); ItLosHwi026();
#endif #endif
ItLosHwi027(); ItLosHwi027();
......
...@@ -44,7 +44,7 @@ extern "C" { ...@@ -44,7 +44,7 @@ extern "C" {
#include "iCunit.h" #include "iCunit.h"
#include "math.h" #include "math.h"
#define OS_MEM_WATERLINE YES #define OS_MEM_WATERLINE 1
#define LOS_DLNK_NODE_HEAD_SIZE 0 #define LOS_DLNK_NODE_HEAD_SIZE 0
#define MIN_DLNK_POOL_SIZE 0 #define MIN_DLNK_POOL_SIZE 0
......
...@@ -59,7 +59,7 @@ VOID ItSuiteLosSem(void) ...@@ -59,7 +59,7 @@ VOID ItSuiteLosSem(void)
ItLosSem026(); ItLosSem026();
ItLosSem028(); ItLosSem028();
ItLosSem029(); ItLosSem029();
#if (LOSCFG_BASE_CORE_SWTMR_ALIGN == YES) #if (LOSCFG_BASE_CORE_SWTMR_ALIGN == 1)
ItLosSem031(); ItLosSem031();
#endif #endif
ItLosSem032(); ItLosSem032();
......
...@@ -278,7 +278,7 @@ UINT32 TestHwiDelete(UINT32 hwiNum) ...@@ -278,7 +278,7 @@ UINT32 TestHwiDelete(UINT32 hwiNum)
VOID TestHwiClear(UINT32 hwiNum) {} VOID TestHwiClear(UINT32 hwiNum) {}
#endif #endif
#if (LOSCFG_BASE_IPC_SEM == YES) #if (LOSCFG_BASE_IPC_SEM == 1)
UINT32 TestSemDelete(UINT32 semHandle) UINT32 TestSemDelete(UINT32 semHandle)
{ {
return LOS_SemDelete(semHandle); return LOS_SemDelete(semHandle);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册