aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/lists.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-12-07 12:01:57 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-12-07 12:01:57 +0000
commite06b155baa31443e76650d4c6aaca960af9f0051 (patch)
treefd9377989a30293eb1ac0ff0f34a6fcf4d64f9b0 /src/include/lists.h
parentdae3de6609b9251dbaaa280c1ce886a350c3c0c5 (diff)
downloadChibiOS-e06b155baa31443e76650d4c6aaca960af9f0051.tar.gz
ChibiOS-e06b155baa31443e76650d4c6aaca960af9f0051.tar.bz2
ChibiOS-e06b155baa31443e76650d4c6aaca960af9f0051.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@537 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/lists.h')
-rw-r--r--src/include/lists.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/lists.h b/src/include/lists.h
index 785d3b013..5f4a73d67 100644
--- a/src/include/lists.h
+++ b/src/include/lists.h
@@ -28,8 +28,8 @@
typedef struct Thread Thread;
/* Macros good with both ThreadsQueue and ThreadsList.*/
-#define isempty(p) ((p)->p_next == (Thread *)(p))
-#define notempty(p) ((p)->p_next != (Thread *)(p))
+#define isempty(p) ((p)->p_next == (Thread *)(p))
+#define notempty(p) ((p)->p_next != (Thread *)(p))
/**
* Generic threads queue header and element.
@@ -37,9 +37,9 @@ typedef struct Thread Thread;
*/
typedef struct {
/** First \p Thread in the queue, or \p ThreadQueue when empty. */
- Thread *p_next;
+ Thread *p_next;
/** Last \p Thread in the queue, or \p ThreadQueue when empty. */
- Thread *p_prev;
+ Thread *p_prev;
} ThreadsQueue;
/**
@@ -47,14 +47,14 @@ typedef struct {
*/
typedef struct {
/** Last pushed \p Thread on the stack list, or \p ThreadList when empty. */
- Thread *p_next;
+ Thread *p_next;
} ThreadsList;
/*
* Threads Lists functions and macros.
*/
#define queue_init(tqp) ((tqp)->p_next = (tqp)->p_prev = (Thread *)(tqp));
-#define list_init(tlp) ((tlp)->p_next = (Thread *)(tlp))
+#define list_init(tlp) ((tlp)->p_next = (Thread *)(tlp))
#ifndef CH_OPTIMIZE_SPEED