summaryrefslogtreecommitdiff
path: root/include/rtm.h
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-09-05 05:51:38 +0000
committer[email protected] <[email protected]>2012-09-05 05:51:38 +0000
commit51c95d7907dd4ae523883996aee761abcf70456d (patch)
tree4623c404f5878d61c28b9e966d8627752d9bc921 /include/rtm.h
parentcba2e9bcbac3d70be618b7ae4fe72973235cf19b (diff)
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
Diffstat (limited to 'include/rtm.h')
-rw-r--r--include/rtm.h26
1 files 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 <rtthread.h>
#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