summaryrefslogtreecommitdiff
path: root/components/rtgui
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-12-06 01:33:43 +0000
committerbernard.xiong <[email protected]>2010-12-06 01:33:43 +0000
commit5c21c6b45dbb8e4fc91fbaff08e49123a05963d1 (patch)
treeda4020df559f9feaaf877fd8e19a25847aa5546d /components/rtgui
parenta8053dbe6e7f182099204ec6878fc5b79a77d819 (diff)
change static __inline to rt_inline.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1180 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui')
-rw-r--r--components/rtgui/include/rtgui/tree.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/rtgui/include/rtgui/tree.h b/components/rtgui/include/rtgui/tree.h
index 88683ca93d..b45668c562 100644
--- a/components/rtgui/include/rtgui/tree.h
+++ b/components/rtgui/include/rtgui/tree.h
@@ -29,9 +29,9 @@
#ifndef _SYS_TREE_H_
#define _SYS_TREE_H_
-
-#ifndef NULL
-#define NULL RT_NULL
+
+#ifndef NULL
+#define NULL RT_NULL
#endif
// #include <sys/cdefs.h>
@@ -126,7 +126,7 @@ struct type *name##_SPLAY_INSERT(struct name *, struct type *); \
struct type *name##_SPLAY_REMOVE(struct name *, struct type *); \
\
/* Finds the node with the same key as elm */ \
-static __inline struct type * \
+rt_inline struct type * \
name##_SPLAY_FIND(struct name *head, struct type *elm) \
{ \
if (SPLAY_EMPTY(head)) \
@@ -137,7 +137,7 @@ name##_SPLAY_FIND(struct name *head, struct type *elm) \
return (NULL); \
} \
\
-static __inline struct type * \
+rt_inline struct type * \
name##_SPLAY_NEXT(struct name *head, struct type *elm) \
{ \
name##_SPLAY(head, elm); \
@@ -151,7 +151,7 @@ name##_SPLAY_NEXT(struct name *head, struct type *elm) \
return (elm); \
} \
\
-static __inline struct type * \
+rt_inline struct type * \
name##_SPLAY_MIN_MAX(struct name *head, int val) \
{ \
name##_SPLAY_MINMAX(head, val); \