From 7b6b7d8fe4cae381127e6bf09bec5f8789c3803e Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 14 Dec 2009 21:15:18 +0000 Subject: Switching to C99 stdbool.h types git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2339 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/sched/os_start.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'nuttx/sched/os_start.c') diff --git a/nuttx/sched/os_start.c b/nuttx/sched/os_start.c index 6f36f58a62..3c25b7008c 100644 --- a/nuttx/sched/os_start.c +++ b/nuttx/sched/os_start.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include +#include #include #include @@ -66,7 +67,7 @@ #endif /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ /**************************************************************************** @@ -174,18 +175,18 @@ pid_t g_worker; const tasklist_t g_tasklisttable[NUM_TASK_STATES] = { - { NULL, FALSE }, /* TSTATE_TASK_INVALID */ - { &g_pendingtasks, TRUE }, /* TSTATE_TASK_PENDING */ - { &g_readytorun, TRUE }, /* TSTATE_TASK_READYTORUN */ - { &g_readytorun, TRUE }, /* TSTATE_TASK_RUNNING */ - { &g_inactivetasks, FALSE }, /* TSTATE_TASK_INACTIVE */ - { &g_waitingforsemaphore, TRUE }, /* TSTATE_WAIT_SEM */ + { NULL, false }, /* TSTATE_TASK_INVALID */ + { &g_pendingtasks, true }, /* TSTATE_TASK_PENDING */ + { &g_readytorun, true }, /* TSTATE_TASK_READYTORUN */ + { &g_readytorun, true }, /* TSTATE_TASK_RUNNING */ + { &g_inactivetasks, false }, /* TSTATE_TASK_INACTIVE */ + { &g_waitingforsemaphore, true }, /* TSTATE_WAIT_SEM */ #ifndef CONFIG_DISABLE_SIGNALS - { &g_waitingforsignal, FALSE }, /* TSTATE_WAIT_SIG */ + { &g_waitingforsignal, false }, /* TSTATE_WAIT_SIG */ #endif #ifndef CONFIG_DISABLE_MQUEUE - { &g_waitingformqnotempty, TRUE }, /* TSTATE_WAIT_MQNOTEMPTY */ - { &g_waitingformqnotfull, TRUE } /* TSTATE_WAIT_MQNOTFULL */ + { &g_waitingformqnotempty, true }, /* TSTATE_WAIT_MQNOTEMPTY */ + { &g_waitingformqnotfull, true } /* TSTATE_WAIT_MQNOTFULL */ #endif }; -- cgit v1.2.3