!157 删除无用的__cplusplus,移除不必要的文件x权限
Merge pull request !157 from Caoruihong/cplusplus
This commit is contained in:
10
kernel/base/core/los_bitmap.c
Executable file → Normal file
10
kernel/base/core/los_bitmap.c
Executable file → Normal file
@@ -33,11 +33,6 @@
|
||||
#include "los_printf.h"
|
||||
#include "los_toolchain.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#define OS_BITMAP_MASK 0x1FU
|
||||
#define OS_BITMAP_WORD_MASK ~0UL
|
||||
@@ -141,8 +136,3 @@ INT32 LOS_BitmapFfz(UINTPTR *bitmap, UINT32 numBits)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
10
kernel/base/core/los_process.c
Executable file → Normal file
10
kernel/base/core/los_process.c
Executable file → Normal file
@@ -54,11 +54,6 @@
|
||||
#include "los_vm_phys.h"
|
||||
#include "los_vm_syscall.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
LITE_OS_SEC_BSS LosProcessCB *g_processCBArray = NULL;
|
||||
LITE_OS_SEC_DATA_INIT STATIC LOS_DL_LIST g_freeProcess;
|
||||
@@ -1856,8 +1851,3 @@ LITE_OS_SEC_TEXT UINTPTR OsGetSigHandler(VOID)
|
||||
return OsCurrProcessGet()->sigHandler;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#endif
|
||||
|
||||
10
kernel/base/core/los_sortlink.c
Executable file → Normal file
10
kernel/base/core/los_sortlink.c
Executable file → Normal file
@@ -36,11 +36,6 @@
|
||||
#include "los_sched_pri.h"
|
||||
#include "los_mp.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
UINT32 OsSortLinkInit(SortLinkAttribute *sortLinkHeader)
|
||||
{
|
||||
@@ -252,8 +247,3 @@ UINT32 OsSortLinkGetNextExpireTime(const SortLinkAttribute *sortLinkHeader)
|
||||
return OsSortLinkGetTargetExpireTime(listSorted);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
10
kernel/base/core/los_swtmr.c
Executable file → Normal file
10
kernel/base/core/los_swtmr.c
Executable file → Normal file
@@ -36,11 +36,6 @@
|
||||
#include "los_process_pri.h"
|
||||
#include "los_sched_pri.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#if (LOSCFG_BASE_CORE_SWTMR == YES)
|
||||
#if (LOSCFG_BASE_CORE_SWTMR_LIMIT <= 0)
|
||||
@@ -529,8 +524,3 @@ LITE_OS_SEC_TEXT UINT32 LOS_SwtmrDelete(UINT16 swtmrID)
|
||||
|
||||
#endif /* (LOSCFG_BASE_CORE_SWTMR == YES) */
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
10
kernel/base/core/los_sys.c
Executable file → Normal file
10
kernel/base/core/los_sys.c
Executable file → Normal file
@@ -32,11 +32,6 @@
|
||||
#include "los_sys_pri.h"
|
||||
#include "los_sched_pri.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#define OS_MAX_VALUE 0xFFFFFFFFUL
|
||||
|
||||
@@ -75,8 +70,3 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsUS2Tick(UINT64 microsec)
|
||||
return (UINT32)ticks;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
10
kernel/base/core/los_task.c
Executable file → Normal file
10
kernel/base/core/los_task.c
Executable file → Normal file
@@ -62,11 +62,6 @@
|
||||
#endif
|
||||
#include "los_vm_map.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#if (LOSCFG_BASE_CORE_TSK_LIMIT <= 0)
|
||||
#error "task maxnum cannot be zero"
|
||||
@@ -1695,8 +1690,3 @@ LITE_OS_SEC_TEXT UINT32 OsCreateResourceFreeTask(VOID)
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
10
kernel/base/core/los_tick.c
Executable file → Normal file
10
kernel/base/core/los_tick.c
Executable file → Normal file
@@ -36,11 +36,6 @@
|
||||
#include "los_vdso.h"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
LITE_OS_SEC_DATA_INIT UINT32 g_sysClock;
|
||||
LITE_OS_SEC_DATA_INIT UINT32 g_tickPerSecond;
|
||||
@@ -69,8 +64,3 @@ LITE_OS_SEC_TEXT VOID OsTickHandler(VOID)
|
||||
OsSchedTick();
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user