From e06b155baa31443e76650d4c6aaca960af9f0051 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 7 Dec 2008 12:01:57 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@537 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/lists.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/include/lists.h') 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 -- cgit v1.2.3