Browse Source

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

dzzxzz@gmail.com 12 years ago
parent
commit
51c95d7907
1 changed files with 13 additions and 13 deletions
  1. 13 13
      include/rtm.h

+ 13 - 13
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