summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-09-05 05:42:12 +0000
committer[email protected] <[email protected]>2012-09-05 05:42:12 +0000
commitcba2e9bcbac3d70be618b7ae4fe72973235cf19b (patch)
tree5aed5616f4cf5c7a9512e6fe2c64e0fdd48a1525
parent3aa354d28b527f89b6b114a0061336e488ebace0 (diff)
convert tabs to 4 spaces in rtservice.h
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2267 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--include/rtservice.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/rtservice.h b/include/rtservice.h
index fb491895ef..31adc54a73 100644
--- a/include/rtservice.h
+++ b/include/rtservice.h
@@ -37,7 +37,7 @@ extern "C" {
*/
rt_inline void rt_list_init(rt_list_t *l)
{
- l->next = l->prev = l;
+ l->next = l->prev = l;
}
/**
@@ -48,11 +48,11 @@ rt_inline void rt_list_init(rt_list_t *l)
*/
rt_inline void rt_list_insert_after(rt_list_t *l, rt_list_t *n)
{
- l->next->prev = n;
- n->next = l->next;
+ l->next->prev = n;
+ n->next = l->next;
- l->next = n;
- n->prev = l;
+ l->next = n;
+ n->prev = l;
}
/**
@@ -63,11 +63,11 @@ rt_inline void rt_list_insert_after(rt_list_t *l, rt_list_t *n)
*/
rt_inline void rt_list_insert_before(rt_list_t *l, rt_list_t *n)
{
- l->prev->next = n;
- n->prev = l->prev;
+ l->prev->next = n;
+ n->prev = l->prev;
- l->prev = n;
- n->next = l;
+ l->prev = n;
+ n->next = l;
}
/**
@@ -76,10 +76,10 @@ rt_inline void rt_list_insert_before(rt_list_t *l, rt_list_t *n)
*/
rt_inline void rt_list_remove(rt_list_t *n)
{
- n->next->prev = n->prev;
- n->prev->next = n->next;
+ n->next->prev = n->prev;
+ n->prev->next = n->next;
- n->next = n->prev = n;
+ n->next = n->prev = n;
}
/**
@@ -88,7 +88,7 @@ rt_inline void rt_list_remove(rt_list_t *n)
*/
rt_inline int rt_list_isempty(const rt_list_t *l)
{
- return l->next == l;
+ return l->next == l;
}
/**