提交 6b06cb83 编写于 作者: X xieyangrun

rename WEAK to RT_WEAK

上级 7b4e7224
...@@ -44,11 +44,11 @@ void _fini() ...@@ -44,11 +44,11 @@ void _fini()
{ {
} }
WEAK void *__dso_handle = 0; RT_WEAK void *__dso_handle = 0;
#endif #endif
WEAK RT_WEAK
int cplusplus_system_init(void) int cplusplus_system_init(void)
{ {
#if defined(__GNUC__) && !defined(__CC_ARM) #if defined(__GNUC__) && !defined(__CC_ARM)
......
...@@ -39,13 +39,13 @@ const static unsigned char _dummy_txt[] = ...@@ -39,13 +39,13 @@ const static unsigned char _dummy_txt[] =
0x74,0x68,0x69,0x73,0x20,0x69,0x73,0x20,0x61,0x20,0x66,0x69,0x6c,0x65,0x21,0x0d,0x0a, 0x74,0x68,0x69,0x73,0x20,0x69,0x73,0x20,0x61,0x20,0x66,0x69,0x6c,0x65,0x21,0x0d,0x0a,
}; };
const struct romfs_dirent WEAK _root_dirent[] = const struct romfs_dirent RT_WEAK _root_dirent[] =
{ {
{ROMFS_DIRENT_DIR, "dummy", (rt_uint8_t *)_dummy, sizeof(_dummy)/sizeof(_dummy[0])}, {ROMFS_DIRENT_DIR, "dummy", (rt_uint8_t *)_dummy, sizeof(_dummy)/sizeof(_dummy[0])},
{ROMFS_DIRENT_FILE, "dummy.txt", _dummy_txt, sizeof(_dummy_txt)}, {ROMFS_DIRENT_FILE, "dummy.txt", _dummy_txt, sizeof(_dummy_txt)},
}; };
const struct romfs_dirent WEAK romfs_root = const struct romfs_dirent RT_WEAK romfs_root =
{ {
ROMFS_DIRENT_DIR, "/", (rt_uint8_t *)_root_dirent, sizeof(_root_dirent)/sizeof(_root_dirent[0]) ROMFS_DIRENT_DIR, "/", (rt_uint8_t *)_root_dirent, sizeof(_root_dirent)/sizeof(_root_dirent[0])
}; };
......
...@@ -600,7 +600,7 @@ u32_t sys_now(void) ...@@ -600,7 +600,7 @@ u32_t sys_now(void)
return rt_tick_get() * (1000 / RT_TICK_PER_SECOND); return rt_tick_get() * (1000 / RT_TICK_PER_SECOND);
} }
WEAK RT_WEAK
void mem_init(void) void mem_init(void)
{ {
} }
......
...@@ -602,7 +602,7 @@ u32_t sys_now(void) ...@@ -602,7 +602,7 @@ u32_t sys_now(void)
} }
WEAK RT_WEAK
void mem_init(void) void mem_init(void)
{ {
} }
......
...@@ -97,7 +97,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ ...@@ -97,7 +97,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED __attribute__((unused)) #define RT_UNUSED __attribute__((unused))
#define RT_USED __attribute__((used)) #define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n))) #define ALIGN(n) __attribute__((aligned(n)))
#define WEAK __weak #define RT_WEAK __weak
#define rt_inline static __inline #define rt_inline static __inline
/* module compiling */ /* module compiling */
#ifdef RT_USING_MODULE #ifdef RT_USING_MODULE
...@@ -113,7 +113,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ ...@@ -113,7 +113,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_USED __root #define RT_USED __root
#define PRAGMA(x) _Pragma(#x) #define PRAGMA(x) _Pragma(#x)
#define ALIGN(n) PRAGMA(data_alignment=n) #define ALIGN(n) PRAGMA(data_alignment=n)
#define WEAK __weak #define RT_WEAK __weak
#define rt_inline static inline #define rt_inline static inline
#define RTT_API #define RTT_API
...@@ -133,7 +133,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ ...@@ -133,7 +133,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED __attribute__((unused)) #define RT_UNUSED __attribute__((unused))
#define RT_USED __attribute__((used)) #define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n))) #define ALIGN(n) __attribute__((aligned(n)))
#define WEAK __attribute__((weak)) #define RT_WEAK __attribute__((weak))
#define rt_inline static __inline #define rt_inline static __inline
#define RTT_API #define RTT_API
#elif defined (__ADSPBLACKFIN__) /* for VisualDSP++ Compiler */ #elif defined (__ADSPBLACKFIN__) /* for VisualDSP++ Compiler */
...@@ -142,7 +142,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ ...@@ -142,7 +142,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED __attribute__((unused)) #define RT_UNUSED __attribute__((unused))
#define RT_USED __attribute__((used)) #define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n))) #define ALIGN(n) __attribute__((aligned(n)))
#define WEAK __attribute__((weak)) #define RT_WEAK __attribute__((weak))
#define rt_inline static inline #define rt_inline static inline
#define RTT_API #define RTT_API
#elif defined (_MSC_VER) #elif defined (_MSC_VER)
...@@ -151,7 +151,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ ...@@ -151,7 +151,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_UNUSED #define RT_UNUSED
#define RT_USED #define RT_USED
#define ALIGN(n) __declspec(align(n)) #define ALIGN(n) __declspec(align(n))
#define WEAK #define RT_WEAK
#define rt_inline static __inline #define rt_inline static __inline
#define RTT_API #define RTT_API
#elif defined (__TI_COMPILER_VERSION__) #elif defined (__TI_COMPILER_VERSION__)
...@@ -164,7 +164,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ ...@@ -164,7 +164,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_USED #define RT_USED
#define PRAGMA(x) _Pragma(#x) #define PRAGMA(x) _Pragma(#x)
#define ALIGN(n) #define ALIGN(n)
#define WEAK #define RT_WEAK
#define rt_inline static inline #define rt_inline static inline
#define RTT_API #define RTT_API
#else #else
......
...@@ -1101,7 +1101,7 @@ rt_device_t rt_console_set_device(const char *name) ...@@ -1101,7 +1101,7 @@ rt_device_t rt_console_set_device(const char *name)
RTM_EXPORT(rt_console_set_device); RTM_EXPORT(rt_console_set_device);
#endif #endif
WEAK void rt_hw_console_output(const char *str) RT_WEAK void rt_hw_console_output(const char *str)
{ {
/* empty console output */ /* empty console output */
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册