From 51c95d7907dd4ae523883996aee761abcf70456d Mon Sep 17 00:00:00 2001 From: "dzzxzz@gmail.com" Date: Wed, 5 Sep 2012 05:51:38 +0000 Subject: [PATCH] convert tabs to 4 spaces in rtm.h and move the definition of struct rt_module_symtab into RT_USING_MODULE block git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2268 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- include/rtm.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/rtm.h b/include/rtm.h index 040e2ee7ea..b4d750a7d0 100644 --- a/include/rtm.h +++ b/include/rtm.h @@ -15,21 +15,21 @@ #include #ifdef RT_USING_MODULE -#define RTM_EXPORT(symbol) \ -const char __rtmsym_##symbol##_name[] = #symbol; \ -const struct rt_module_symtab __rtmsym_##symbol SECTION("RTMSymTab")= \ -{ \ - (void *)&symbol, \ - __rtmsym_##symbol##_name \ -}; -#else -#define RTM_EXPORT(symbol) -#endif - struct rt_module_symtab { - void *addr; - const char *name; + void *addr; + const char *name; }; +#define RTM_EXPORT(symbol) \ +const char __rtmsym_##symbol##_name[] = #symbol; \ +const struct rt_module_symtab __rtmsym_##symbol SECTION("RTMSymTab")= \ +{ \ + (void *)&symbol, \ + __rtmsym_##symbol##_name \ +}; +#else +#define RTM_EXPORT(symbol) +#endif + #endif