Remove obsolete INITLIST macro.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 28 Nov 2004 23:21:05 +0000 (23:21 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 28 Nov 2004 23:21:05 +0000 (23:21 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@289 38d2e660-2303-0410-9eaa-f027e97ec537

drv/timer.c
kern/monitor.c
kern/msg.h
kern/proc.c
kern/sem.c
mware/list.h
mware/pool.h

index 2bffa92d9d3ffc6aa383495c2481d5852569c4b9..60261e1f80328f928623947cdebfb53ed3502c45 100755 (executable)
@@ -14,6 +14,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.21  2004/11/28 23:20:25  bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
  *#* Revision 1.20  2004/11/16 20:59:06  bernie
  *#* Add watchdog timer support.
  *#*
@@ -309,7 +312,7 @@ void timer_init(void)
        TIMER_STROBE_INIT;
 
 #ifndef CONFIG_TIMER_DISABLE_EVENTS
-       INITLIST(&timers_queue);
+       LIST_INIT(&timers_queue);
 #endif
 
        _clock = 0;
index 305b342873ebbc4d8625c7e7c877754df2f6cfec..907487b133a741c15b315ee4fc9cbb7205da0215 100755 (executable)
@@ -14,6 +14,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.3  2004/11/28 23:20:25  bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
  *#* Revision 1.2  2004/10/26 09:01:15  bernie
  *#* monitor_rename(): New function.
  *#*
@@ -45,7 +48,7 @@ static List MonitorProcs;
 
 void monitor_init(void)
 {
-       INITLIST(&MonitorProcs);
+       LIST_INIT(&MonitorProcs);
 }
 
 
index dbd73e839664c52a68af840c150126be2435623d..b808602ac132ef2d9cd187e40f4a7525634d35da 100755 (executable)
@@ -18,6 +18,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.5  2004/11/28 23:20:25  bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
  *#* Revision 1.4  2004/10/19 08:22:09  bernie
  *#* msg_peek(): New function.
  *#*
@@ -56,7 +59,7 @@ typedef struct Msg
 /*! Initialize a message port */
 INLINE void msg_initPort(MsgPort* port, Event event)
 {
-       INITLIST(&port->queue);
+       LIST_INIT(&port->queue);
        port->evn = event;
 }
 
index 046108c930ad25867f1a999c3682a58555c2ecb1..e25cb7dd92c2d755ba58a0be4f1f2d94a428a456 100755 (executable)
@@ -17,6 +17,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.21  2004/11/28 23:20:25  bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
  *#* Revision 1.20  2004/11/16 22:37:14  bernie
  *#* Replace IPTR with iptr_t.
  *#*
@@ -146,7 +149,7 @@ static void proc_init_struct(Process *proc)
 
 void proc_init(void)
 {
-       INITLIST(&ProcReadyList);
+       LIST_INIT(&ProcReadyList);
 
 #if CONFIG_KERN_MONITOR
        monitor_init();
index 9b2f9743b6146d8de757b3c2ece16de102465e87..05488e4c2fab64d3b057a6d9a5b5c2d526451514 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.7  2004/11/28 23:20:25  bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
  *#* Revision 1.6  2004/10/21 10:57:21  bernie
  *#* Use proc_forbid()/proc_permit().
  *#*
@@ -46,7 +49,7 @@
  */
 void sem_init(struct Semaphore *s)
 {
-       INITLIST(&s->wait_queue);
+       LIST_INIT(&s->wait_queue);
        s->owner = NULL;
        s->nest_count = 0;
 }
index 0fe471d031073ab7a7eed9c738f979ac23abd0dc..aaa2ad7c7053612ee9e93df32b146c0881826fbb 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.10  2004/11/28 23:21:05  bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
  *#* Revision 1.9  2004/10/21 09:37:55  bernie
  *#* Revamp documentation.
  *#*
@@ -47,6 +50,8 @@
 #ifndef MWARE_LIST_H
 #define MWARE_LIST_H
 
+#include <compiler.h> // INLINE
+
 /*!
  * This structure represents a node for bidirectional lists.
  *
@@ -110,9 +115,6 @@ typedef struct _List
                (l)->tail = (Node *)(&(l)->head); \
        } while (0)
 
-/* OBSOLETE */
-#define INITLIST(l) LIST_INIT(l)
-
 /*! Add node to list head. */
 #define ADDHEAD(l,n) \
        do { \
index dd180181f6594fe8d1ffa0ad998626ecc887a29c..93a5b85ca9e6121d888361f373083e51157e608d 100755 (executable)
@@ -13,7 +13,7 @@
        INLINE void name##_init(void (*init_func)(type*)) \
        { \
                int i; \
-               INITLIST(&name); \
+               LIST_INIT(&name); \
                for (i=0;i<countof(name##_items);++i) \
                { \
                        if (init_func) init_func(&name##_items[i]); \