diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2009-12-14 21:15:18 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2009-12-14 21:15:18 +0000 |
commit | 7b6b7d8fe4cae381127e6bf09bec5f8789c3803e (patch) | |
tree | 2bd68d26bb0f4b17186f7b7cdb26f0f5c02932fd /nuttx/sched/os_start.c | |
parent | e6b4e4360d7e1eb29519e06b25bf737a013c7a4d (diff) |
Switching to C99 stdbool.h types
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2339 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched/os_start.c')
-rw-r--r-- | nuttx/sched/os_start.c | 21 |
1 files changed, 11 insertions, 10 deletions
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 <sys/types.h> +#include <stdbool.h> #include <debug.h> #include <string.h> @@ -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 }; |