From: bernie Date: Sun, 28 Nov 2004 23:21:05 +0000 (+0000) Subject: Remove obsolete INITLIST macro. X-Git-Tag: 1.0.0~952 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=00e009957d70dab15575ab310ed83f0b78cc8656;p=bertos.git Remove obsolete INITLIST macro. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@289 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/drv/timer.c b/drv/timer.c index 2bffa92d..60261e1f 100755 --- a/drv/timer.c +++ b/drv/timer.c @@ -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; diff --git a/kern/monitor.c b/kern/monitor.c index 305b3428..907487b1 100755 --- a/kern/monitor.c +++ b/kern/monitor.c @@ -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); } diff --git a/kern/msg.h b/kern/msg.h index dbd73e83..b808602a 100755 --- a/kern/msg.h +++ b/kern/msg.h @@ -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; } diff --git a/kern/proc.c b/kern/proc.c index 046108c9..e25cb7dd 100755 --- a/kern/proc.c +++ b/kern/proc.c @@ -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(); diff --git a/kern/sem.c b/kern/sem.c index 9b2f9743..05488e4c 100755 --- a/kern/sem.c +++ b/kern/sem.c @@ -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; } diff --git a/mware/list.h b/mware/list.h index 0fe471d0..aaa2ad7c 100755 --- a/mware/list.h +++ b/mware/list.h @@ -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 // 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 { \ diff --git a/mware/pool.h b/mware/pool.h index dd180181..93a5b85c 100755 --- a/mware/pool.h +++ b/mware/pool.h @@ -13,7 +13,7 @@ INLINE void name##_init(void (*init_func)(type*)) \ { \ int i; \ - INITLIST(&name); \ + LIST_INIT(&name); \ for (i=0;i