!398 清理YES/NO宏

Merge pull request !398 from Caoruihong/remove_yesno
This commit is contained in:
openharmony_ci 2021-11-18 09:32:42 +00:00 committed by Gitee
commit b7de7f6085
7 changed files with 10 additions and 20 deletions

View File

@ -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
}

View File

@ -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 <EFBFBD>C1: The dynamic memory fails to be initialized.
* @retval #LOS_OK 0: The dynamic memory is successfully initialized.
* @par Dependency:
* <ul>

View File

@ -188,12 +188,12 @@ extern EVENT_CB_S g_exampleEvent;
#define TST_IT
#endif
#define TEST_PT YES
#define TEST_PT 1
#if (YES == OS_INCLUDE_DYNMEM)
#define TEST_BIG YES
#if (1 == OS_INCLUDE_DYNMEM)
#define TEST_BIG 1
#else
#define TEST_BIG NO
#define TEST_BIG 0
#endif
#define TASK_PRIO_TEST 25

View File

@ -57,7 +57,7 @@ VOID ItSuiteLosHwi()
ItLosHwi022();
ItLosHwi023();
ItLosHwi024();
#if (LOSCFG_BASE_CORE_SWTMR_ALIGN == YES)
#if (LOSCFG_BASE_CORE_SWTMR_ALIGN == 1)
ItLosHwi026();
#endif
ItLosHwi027();

View File

@ -44,7 +44,7 @@ extern "C" {
#include "iCunit.h"
#include "math.h"
#define OS_MEM_WATERLINE YES
#define OS_MEM_WATERLINE 1
#define LOS_DLNK_NODE_HEAD_SIZE 0
#define MIN_DLNK_POOL_SIZE 0

View File

@ -59,7 +59,7 @@ VOID ItSuiteLosSem(void)
ItLosSem026();
ItLosSem028();
ItLosSem029();
#if (LOSCFG_BASE_CORE_SWTMR_ALIGN == YES)
#if (LOSCFG_BASE_CORE_SWTMR_ALIGN == 1)
ItLosSem031();
#endif
ItLosSem032();

View File

@ -278,7 +278,7 @@ UINT32 TestHwiDelete(UINT32 hwiNum)
VOID TestHwiClear(UINT32 hwiNum) {}
#endif
#if (LOSCFG_BASE_IPC_SEM == YES)
#if (LOSCFG_BASE_IPC_SEM == 1)
UINT32 TestSemDelete(UINT32 semHandle)
{
return LOS_SemDelete(semHandle);