Convert to "bool".

This commit is contained in:
Ralf Corsepius
2008-09-04 16:04:00 +00:00
parent f8437c81d5
commit 22d66ab1af
18 changed files with 39 additions and 39 deletions
+4 -4
View File
@@ -16,13 +16,13 @@
#ifndef _RTEMS_ITRON_MBOX_H
#define _RTEMS_ITRON_MBOX_H
#include <rtems/itron/object.h>
#include <rtems/score/coremsg.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <rtems/itron/object.h>
#include <rtems/score/coremsg.h>
/*
* The following defines the control block used to manage each mailbox.
*/
@@ -30,7 +30,7 @@ extern "C" {
typedef struct {
ITRON_Objects_Control Object;
uint32_t count;
boolean do_message_priority;
bool do_message_priority;
CORE_message_queue_Control message_queue;
} ITRON_Mailbox_Control;
+4 -4
View File
@@ -16,13 +16,13 @@
#ifndef _RTEMS_ITRON_MSGBUFFER_H
#define _RTEMS_ITRON_MSGBUFFER_H
#include <rtems/itron/object.h>
#include <rtems/score/coremsg.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <rtems/itron/object.h>
#include <rtems/score/coremsg.h>
/*
* The following defines the control block used to manage each
* message buffer.
@@ -30,7 +30,7 @@ extern "C" {
typedef struct {
ITRON_Objects_Control Object;
boolean is_priority_blocking;
bool is_priority_blocking;
CORE_message_queue_Control message_queue;
} ITRON_Message_buffer_Control;
+4 -4
View File
@@ -16,20 +16,20 @@
#ifndef _RTEMS_ITRON_SEMAPHORE_H
#define _RTEMS_ITRON_SEMAPHORE_H
#include <rtems/itron/object.h>
#include <rtems/score/coresem.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <rtems/itron/object.h>
#include <rtems/score/coresem.h>
/*
* The following defines the control block used to manage each semaphore.
*/
typedef struct {
ITRON_Objects_Control Object;
boolean is_priority_blocking;
bool is_priority_blocking;
CORE_semaphore_Control semaphore;
} ITRON_Semaphore_Control;
@@ -139,7 +139,7 @@ RTEMS_INLINE_ROUTINE ITRON_Eventflags_Control *_ITRON_Eventflags_Get (
* FALSE - otherwise
*/
RTEMS_INLINE_ROUTINE boolean _ITRON_Eventflags_Is_null (
RTEMS_INLINE_ROUTINE bool _ITRON_Eventflags_Is_null (
ITRON_Eventflags_Control *the_eventflags
)
{
+1 -1
View File
@@ -146,7 +146,7 @@ RTEMS_INLINE_ROUTINE ITRON_Fixed_memory_pool_Control
* FALSE - otherwise
*/
RTEMS_INLINE_ROUTINE boolean _ITRON_Fixed_memory_pool_Is_null (
RTEMS_INLINE_ROUTINE bool _ITRON_Fixed_memory_pool_Is_null (
ITRON_Fixed_memory_pool_Control *the_fixed_memory_pool
)
{
+1 -1
View File
@@ -139,7 +139,7 @@ RTEMS_INLINE_ROUTINE ITRON_Mailbox_Control *_ITRON_Mailbox_Get (
* FALSE - otherwise
*/
RTEMS_INLINE_ROUTINE boolean _ITRON_Mailbox_Is_null (
RTEMS_INLINE_ROUTINE bool _ITRON_Mailbox_Is_null (
ITRON_Mailbox_Control *the_mailbox
)
{
@@ -144,7 +144,7 @@ RTEMS_INLINE_ROUTINE ITRON_Message_buffer_Control *_ITRON_Message_buffer_Get (
* FALSE - otherwise
*/
RTEMS_INLINE_ROUTINE boolean _ITRON_Message_buffer_Is_null (
RTEMS_INLINE_ROUTINE bool _ITRON_Message_buffer_Is_null (
ITRON_Message_buffer_Control *the_message_buffer
)
{
+1 -1
View File
@@ -139,7 +139,7 @@ RTEMS_INLINE_ROUTINE ITRON_Port_Control *_ITRON_Port_Get (
* FALSE - otherwise
*/
RTEMS_INLINE_ROUTINE boolean _ITRON_Port_Is_null (
RTEMS_INLINE_ROUTINE bool _ITRON_Port_Is_null (
ITRON_Port_Control *the_port
)
{
@@ -139,7 +139,7 @@ RTEMS_INLINE_ROUTINE ITRON_Semaphore_Control *_ITRON_Semaphore_Get (
* FALSE - otherwise
*/
RTEMS_INLINE_ROUTINE boolean _ITRON_Semaphore_Is_null (
RTEMS_INLINE_ROUTINE bool _ITRON_Semaphore_Is_null (
ITRON_Semaphore_Control *the_semaphore
)
{
+1 -1
View File
@@ -145,7 +145,7 @@ RTEMS_INLINE_ROUTINE Thread_Control *_ITRON_Task_Get (
* FALSE - otherwise
*/
RTEMS_INLINE_ROUTINE boolean _ITRON_Task_Is_null (
RTEMS_INLINE_ROUTINE bool _ITRON_Task_Is_null (
Thread_Control *the_task
)
{
+1 -1
View File
@@ -149,7 +149,7 @@ RTEMS_INLINE_ROUTINE ITRON_Variable_memory_pool_Control
* FALSE - otherwise
*/
RTEMS_INLINE_ROUTINE boolean _ITRON_Variable_memory_pool_Is_null (
RTEMS_INLINE_ROUTINE bool _ITRON_Variable_memory_pool_Is_null (
ITRON_Variable_memory_pool_Control *the_variable_memory_pool
)
{
+2 -2
View File
@@ -35,7 +35,7 @@ ER cre_tsk(
)
{
register Thread_Control *the_thread;
boolean status;
bool status;
Priority_Control core_priority;
Objects_Name name;
@@ -117,7 +117,7 @@ ER cre_tsk(
* NOTE: Since the thread starts with all unblocked, this is necessary.
*/
the_thread->do_post_task_switch_extension = TRUE;
the_thread->do_post_task_switch_extension = true;
the_thread->Start.entry_point = (Thread_Entry) pk_ctsk->task;
+1 -1
View File
@@ -35,7 +35,7 @@ ER sta_tsk(
{
register Thread_Control *the_thread;
Objects_Locations location;
boolean status;
bool status;
the_thread = _ITRON_Task_Get( tskid, &location );
switch ( location ) {
+3 -3
View File
@@ -35,7 +35,7 @@
* area.
*/
boolean _ITRON_Task_Create_extension(
bool _ITRON_Task_Create_extension(
Thread_Control *executing,
Thread_Control *created
)
@@ -50,7 +50,7 @@ boolean _ITRON_Task_Create_extension(
api = _Workspace_Allocate( sizeof( ITRON_API_Control ) );
if ( !api )
return FALSE;
return false;
created->API_Extensions[ THREAD_API_ITRON ] = api;
#else
@@ -61,7 +61,7 @@ boolean _ITRON_Task_Create_extension(
* Initialize the ITRON API extension
*/
return TRUE;
return true;
}
/*
+3 -3
View File
@@ -34,15 +34,15 @@ ER trcv_mbf(
ITRON_Message_buffer_Control *the_message_buffer;
Objects_Locations location;
CORE_message_queue_Status status;
boolean wait;
bool wait;
Watchdog_Interval interval;
size_t msgsz;
interval = 0;
if (tmout == TMO_POL) {
wait = FALSE;
wait = false;
} else {
wait = TRUE;
wait = true;
if (tmout != TMO_FEVR)
interval = TOD_MILLISECONDS_TO_TICKS(tmout);
}
+4 -4
View File
@@ -32,18 +32,18 @@ ER trcv_msg(
{
register ITRON_Mailbox_Control *the_mailbox;
Watchdog_Interval interval;
boolean wait;
bool wait;
Objects_Locations location;
uint32_t size;
size_t size;
if (!ppk_msg)
return E_PAR;
interval = 0;
if ( tmout == TMO_POL ) {
wait = FALSE;
wait = false;
} else {
wait = TRUE;
wait = true;
if ( tmout != TMO_FEVR )
interval = TOD_MILLISECONDS_TO_TICKS(tmout);
}
+3 -3
View File
@@ -36,7 +36,7 @@ ER tsnd_mbf(
ITRON_Message_buffer_Control *the_message_buffer;
Objects_Locations location;
Watchdog_Interval interval;
boolean wait;
bool wait;
CORE_message_queue_Status msg_status;
if (msgsz <= 0 || !msg)
@@ -44,9 +44,9 @@ ER tsnd_mbf(
interval = 0;
if ( tmout == TMO_POL ) {
wait = FALSE;
wait = false;
} else {
wait = TRUE;
wait = true;
if ( tmout != TMO_FEVR )
interval = TOD_MILLISECONDS_TO_TICKS(tmout);
}
+3 -3
View File
@@ -33,13 +33,13 @@ ER twai_sem(
ITRON_Semaphore_Control *the_semaphore;
Objects_Locations location;
Watchdog_Interval interval;
boolean blocking;
bool blocking;
interval = 0;
if ( tmout == TMO_POL ) {
blocking = FALSE;
blocking = false;
} else {
blocking = TRUE;
blocking = true;
if ( tmout != TMO_FEVR )
interval = TOD_MILLISECONDS_TO_TICKS(tmout);