Convert to "bool".

This commit is contained in:
Ralf Corsepius
2008-09-04 17:46:39 +00:00
parent 301fef142e
commit 484a76996e
124 changed files with 364 additions and 365 deletions
+3 -3
View File
@@ -19,12 +19,12 @@
#ifndef _RTEMS_RTEMS_ASR_H
#define _RTEMS_RTEMS_ASR_H
#include <rtems/rtems/modes.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <rtems/rtems/modes.h>
/**
* @defgroup ClassicASR Classic API ASR Support
*
@@ -57,7 +57,7 @@ typedef rtems_asr ( *rtems_asr_entry )(
*/
typedef struct {
/** This field indicates if are ASRs enabled currently. */
boolean is_enabled;
bool is_enabled;
/** This field indicates if address of the signal handler function. */
rtems_asr_entry handler;
/** This field indicates if the task mode the signal will run with. */
+1 -1
View File
@@ -245,7 +245,7 @@ rtems_status_code rtems_clock_get_uptime(
*
* @return This method returns TRUE if the TOD is valid and FALSE otherwise.
*/
boolean _TOD_Validate(
bool _TOD_Validate(
rtems_time_of_day *the_tod
);
+4 -4
View File
@@ -18,13 +18,13 @@
#ifndef _RTEMS_RTEMS_CONFIG_H
#define _RTEMS_RTEMS_CONFIG_H
#include <rtems/rtems/types.h>
#include <rtems/rtems/tasks.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <rtems/rtems/types.h>
#include <rtems/rtems/tasks.h>
/**
* @defgroup ClassicConfig Classic API Configuration
*
@@ -51,7 +51,7 @@ typedef struct {
* This field indicates whether Classic API notepads are
* enabled or disabled.
*/
boolean notepads_enabled;
bool notepads_enabled;
/**
* This field contains the maximum number of Classic API
+5 -5
View File
@@ -15,15 +15,15 @@
#ifndef _RTEMS_RTEMS_OBJECT_H
#define _RTEMS_RTEMS_OBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <rtems/score/object.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup ClassicClassInfo Classic API Class Information
*
@@ -43,7 +43,7 @@ typedef struct {
/** This field is the number of object instances configured for this class. */
uint32_t maximum;
/** This field indicates if the class is configured for auto-extend. */
boolean auto_extend;
bool auto_extend;
/** This field is the number of currently unallocated objects. */
uint32_t unallocated;
} rtems_object_api_class_information;
+1 -1
View File
@@ -202,7 +202,7 @@ rtems_status_code rtems_semaphore_flush(
* option_set, then the routine returns. Otherwise, the calling task
* is blocked until a unit becomes available.
*/
boolean _Semaphore_Seize(
bool _Semaphore_Seize(
Semaphore_Control *the_semaphore,
uint32_t option_set
);
+3 -3
View File
@@ -63,7 +63,7 @@ extern "C" {
*
* @return TRUE if successful
*/
boolean rtems_workspace_get_information(
bool rtems_workspace_get_information(
Heap_Information_block *the_info
);
@@ -78,7 +78,7 @@ boolean rtems_workspace_get_information(
*
* @return TRUE if successful
*/
boolean rtems_workspace_allocate(
bool rtems_workspace_allocate(
size_t bytes,
void **pointer
);
@@ -93,7 +93,7 @@ boolean rtems_workspace_allocate(
*
* @return TRUE if successful
*/
boolean rtems_workspace_free(
bool rtems_workspace_free(
void *pointer
);
+3 -3
View File
@@ -38,7 +38,7 @@ RTEMS_INLINE_ROUTINE void _ASR_Initialize (
ASR_Information *information
)
{
information->is_enabled = TRUE;
information->is_enabled = true;
information->handler = NULL;
information->mode_set = RTEMS_DEFAULT_MODES;
information->signals_posted = 0;
@@ -73,7 +73,7 @@ RTEMS_INLINE_ROUTINE void _ASR_Swap_signals (
* This function returns TRUE if the given asr_handler is NULL and
* FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _ASR_Is_null_handler (
RTEMS_INLINE_ROUTINE bool _ASR_Is_null_handler (
rtems_asr_entry asr_handler
)
{
@@ -86,7 +86,7 @@ RTEMS_INLINE_ROUTINE boolean _ASR_Is_null_handler (
* This function returns TRUE if there are signals pending in the
* given RTEMS_ASR information record and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _ASR_Are_signals_pending (
RTEMS_INLINE_ROUTINE bool _ASR_Are_signals_pending (
ASR_Information *information
)
{
+17 -17
View File
@@ -62,11 +62,11 @@ RTEMS_INLINE_ROUTINE rtems_attribute _Attributes_Clear (
* This function returns TRUE if the floating point attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_floating_point(
RTEMS_INLINE_ROUTINE bool _Attributes_Is_floating_point(
rtems_attribute attribute_set
)
{
return ( attribute_set & RTEMS_FLOATING_POINT );
return ( attribute_set & RTEMS_FLOATING_POINT ) ? true : false;
}
#if defined(RTEMS_MULTIPROCESSING)
@@ -76,11 +76,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_floating_point(
* This function returns TRUE if the global object attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_global(
RTEMS_INLINE_ROUTINE bool _Attributes_Is_global(
rtems_attribute attribute_set
)
{
return ( attribute_set & RTEMS_GLOBAL );
return ( attribute_set & RTEMS_GLOBAL ) ? true : false;
}
#endif
@@ -90,11 +90,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_global(
* This function returns TRUE if the priority attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority(
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority(
rtems_attribute attribute_set
)
{
return ( attribute_set & RTEMS_PRIORITY );
return ( attribute_set & RTEMS_PRIORITY ) ? true : false;
}
/**
@@ -103,7 +103,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority(
* This function returns TRUE if the binary semaphore attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_binary_semaphore(
RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore(
rtems_attribute attribute_set
)
{
@@ -116,7 +116,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_binary_semaphore(
* This function returns TRUE if the simple binary semaphore attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_simple_binary_semaphore(
RTEMS_INLINE_ROUTINE bool _Attributes_Is_simple_binary_semaphore(
rtems_attribute attribute_set
)
{
@@ -130,7 +130,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_simple_binary_semaphore(
* This function returns TRUE if the counting semaphore attribute is
* enabled in the attribute_set and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_counting_semaphore(
RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(
rtems_attribute attribute_set
)
{
@@ -143,11 +143,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_counting_semaphore(
* This function returns TRUE if the priority inheritance attribute
* is enabled in the attribute_set and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_inherit_priority(
RTEMS_INLINE_ROUTINE bool _Attributes_Is_inherit_priority(
rtems_attribute attribute_set
)
{
return ( attribute_set & RTEMS_INHERIT_PRIORITY );
return ( attribute_set & RTEMS_INHERIT_PRIORITY ) ? true : false;
}
/**
@@ -156,11 +156,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_inherit_priority(
* This function returns TRUE if the priority ceiling attribute
* is enabled in the attribute_set and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority_ceiling(
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority_ceiling(
rtems_attribute attribute_set
)
{
return ( attribute_set & RTEMS_PRIORITY_CEILING );
return ( attribute_set & RTEMS_PRIORITY_CEILING ) ? true : false;
}
/**
@@ -169,11 +169,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority_ceiling(
* This function returns TRUE if the barrier automatic release
* attribute is enabled in the attribute_set and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_barrier_automatic(
RTEMS_INLINE_ROUTINE bool _Attributes_Is_barrier_automatic(
rtems_attribute attribute_set
)
{
return ( attribute_set & RTEMS_BARRIER_AUTOMATIC_RELEASE );
return ( attribute_set & RTEMS_BARRIER_AUTOMATIC_RELEASE ) ? true : false;
}
/**
@@ -182,11 +182,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_barrier_automatic(
* This function returns TRUE if the system task attribute
* is enabled in the attribute_set and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_system_task(
RTEMS_INLINE_ROUTINE bool _Attributes_Is_system_task(
rtems_attribute attribute_set
)
{
return ( attribute_set & RTEMS_SYSTEM_TASK );
return ( attribute_set & RTEMS_SYSTEM_TASK ) ? true : false;
}
/**@}*/
+1 -1
View File
@@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get (
*
* This function returns TRUE if the_barrier is NULL and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Barrier_Is_null (
RTEMS_INLINE_ROUTINE bool _Barrier_Is_null (
Barrier_Control *the_barrier
)
{
+2 -2
View File
@@ -75,9 +75,9 @@ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get (
/**
* @brief Dual_ported_memory_Is_null
*
* This function returns TRUE if the_port is NULL and FALSE otherwise.
* This function returns true if the_port is NULL and false otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Dual_ported_memory_Is_null(
RTEMS_INLINE_ROUTINE bool _Dual_ported_memory_Is_null(
Dual_ported_memory_Control *the_port
)
{
+1 -1
View File
@@ -32,7 +32,7 @@
* This function returns TRUE if on events are posted in the event_set,
* and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Event_sets_Is_empty(
RTEMS_INLINE_ROUTINE bool _Event_sets_Is_empty(
rtems_event_set the_event_set
)
{
+1 -1
View File
@@ -35,7 +35,7 @@
* This function places the_message at the rear of the outstanding
* messages on the_message_queue.
*/
RTEMS_INLINE_ROUTINE boolean _Message_queue_Is_null (
RTEMS_INLINE_ROUTINE bool _Message_queue_Is_null (
Message_queue_Control *the_message_queue
)
{
+5 -5
View File
@@ -33,12 +33,12 @@
* This function returns TRUE if any of the mode flags in mask
* are set in mode_set, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Modes_Mask_changed (
RTEMS_INLINE_ROUTINE bool _Modes_Mask_changed (
Modes_Control mode_set,
Modes_Control masks
)
{
return ( mode_set & masks );
return ( mode_set & masks ) ? true : false;
}
/**
@@ -47,7 +47,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Mask_changed (
* This function returns TRUE if mode_set indicates that Asynchronous
* Signal Processing is disabled, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Modes_Is_asr_disabled (
RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled (
Modes_Control mode_set
)
{
@@ -60,7 +60,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Is_asr_disabled (
* This function returns TRUE if mode_set indicates that preemption
* is enabled, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Modes_Is_preempt (
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (
Modes_Control mode_set
)
{
@@ -73,7 +73,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Is_preempt (
* This function returns TRUE if mode_set indicates that timeslicing
* is enabled, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Modes_Is_timeslice (
RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice (
Modes_Control mode_set
)
{
+4 -4
View File
@@ -33,11 +33,11 @@
* This function returns TRUE if the RTEMS_NO_WAIT option is enabled in
* option_set, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Options_Is_no_wait (
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (
rtems_option option_set
)
{
return (option_set & RTEMS_NO_WAIT);
return (option_set & RTEMS_NO_WAIT) ? true : false;
}
/**
@@ -46,11 +46,11 @@ RTEMS_INLINE_ROUTINE boolean _Options_Is_no_wait (
* This function returns TRUE if the RTEMS_EVENT_ANY option is enabled in
* OPTION_SET, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Options_Is_any (
RTEMS_INLINE_ROUTINE bool _Options_Is_any (
rtems_option option_set
)
{
return (option_set & RTEMS_EVENT_ANY);
return (option_set & RTEMS_EVENT_ANY) ? true : false;
}
/**@}*/
+4 -4
View File
@@ -60,7 +60,7 @@ RTEMS_INLINE_ROUTINE void _Partition_Free_buffer (
* This function returns TRUE if the_buffer is on a valid buffer
* boundary for the_partition, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_on_boundary (
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_on_boundary (
void *the_buffer,
Partition_Control *the_partition
)
@@ -81,7 +81,7 @@ RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_on_boundary (
* This function returns TRUE if the_buffer is a valid buffer from
* the_partition, otherwise FALSE is returned.
*/
RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_valid (
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_valid (
Chain_Node *the_buffer,
Partition_Control *the_partition
)
@@ -105,7 +105,7 @@ RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_valid (
* will result in the allocation of buffers whose first byte is
* properly aligned, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_size_aligned (
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned (
uint32_t buffer_size
)
{
@@ -162,7 +162,7 @@ RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get (
* This function returns TRUE if the_partition is NULL
* and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Partition_Is_null (
RTEMS_INLINE_ROUTINE bool _Partition_Is_null (
Partition_Control *the_partition
)
{
+4 -4
View File
@@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get (
* This function returns TRUE if the_period is in the ACTIVE state,
* and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_active (
RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_active (
Rate_monotonic_Control *the_period
)
{
@@ -89,7 +89,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_active (
* This function returns TRUE if the_period is in the ACTIVE state,
* and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_inactive (
RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_inactive (
Rate_monotonic_Control *the_period
)
{
@@ -102,7 +102,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_inactive (
* This function returns TRUE if the_period is in the EXPIRED state,
* and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_expired (
RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_expired (
Rate_monotonic_Control *the_period
)
{
@@ -114,7 +114,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_expired (
*
* This function returns TRUE if the_period is NULL and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_null (
RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_null (
Rate_monotonic_Control *the_period
)
{
+2 -2
View File
@@ -89,7 +89,7 @@ RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment (
*
* This function frees the_segment to the_region.
*/
RTEMS_INLINE_ROUTINE boolean _Region_Free_segment (
RTEMS_INLINE_ROUTINE bool _Region_Free_segment (
Region_Control *the_region,
void *the_segment
)
@@ -102,7 +102,7 @@ RTEMS_INLINE_ROUTINE boolean _Region_Free_segment (
*
* This function returns TRUE if the_region is NULL and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Region_Is_null (
RTEMS_INLINE_ROUTINE bool _Region_Is_null (
Region_Control *the_region
)
{
+1 -1
View File
@@ -97,7 +97,7 @@ RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get_interrupt_disable (
*
* This function returns TRUE if the_semaphore is NULL and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Semaphore_Is_null (
RTEMS_INLINE_ROUTINE bool _Semaphore_Is_null (
Semaphore_Control *the_semaphore
)
{
+2 -2
View File
@@ -33,7 +33,7 @@
* This function returns TRUE if the status code is equal to RTEMS_SUCCESSFUL,
* and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean rtems_is_status_successful(
RTEMS_INLINE_ROUTINE bool rtems_is_status_successful(
rtems_status_code code
)
{
@@ -46,7 +46,7 @@ RTEMS_INLINE_ROUTINE boolean rtems_is_status_successful(
* This function returns TRUE if the status code1 is equal to code2,
* and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean rtems_are_statuses_equal(
RTEMS_INLINE_ROUTINE bool rtems_are_statuses_equal(
rtems_status_code code1,
rtems_status_code code2
)
+1 -1
View File
@@ -32,7 +32,7 @@
*
* This function returns TRUE if the name is valid, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE rtems_boolean rtems_is_name_valid (
RTEMS_INLINE_ROUTINE bool rtems_is_name_valid (
rtems_name name
)
{
+1 -1
View File
@@ -72,7 +72,7 @@ RTEMS_INLINE_ROUTINE Priority_Control _RTEMS_tasks_Priority_to_Core(
* This function returns TRUE if the_priority is a valid user task priority
* and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _RTEMS_tasks_Priority_is_valid (
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
+4 -4
View File
@@ -75,7 +75,7 @@ RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (
* This function returns TRUE if the class is that of an INTERVAL
* timer, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Timer_Is_interval_class (
RTEMS_INLINE_ROUTINE bool _Timer_Is_interval_class (
Timer_Classes the_class
)
{
@@ -88,7 +88,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_interval_class (
* This function returns TRUE if the class is that of an INTERVAL
* timer, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Timer_Is_timer_of_day_class (
RTEMS_INLINE_ROUTINE bool _Timer_Is_timer_of_day_class (
Timer_Classes the_class
)
{
@@ -101,7 +101,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_timer_of_day_class (
* This function returns TRUE if the class is that of a DORMANT
* timer, and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Timer_Is_dormant_class (
RTEMS_INLINE_ROUTINE bool _Timer_Is_dormant_class (
Timer_Classes the_class
)
{
@@ -113,7 +113,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_dormant_class (
*
* This function returns TRUE if the_timer is NULL and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Timer_Is_null (
RTEMS_INLINE_ROUTINE bool _Timer_Is_null (
Timer_Control *the_timer
)
{
+4 -4
View File
@@ -46,7 +46,7 @@ const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = {
* NOTE: This routine only works for leap-years through 2099.
*/
boolean _TOD_Validate(
bool _TOD_Validate(
rtems_time_of_day *the_tod
)
{
@@ -62,7 +62,7 @@ boolean _TOD_Validate(
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
return FALSE;
return false;
if ( (the_tod->year % 4) == 0 )
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
@@ -70,7 +70,7 @@ boolean _TOD_Validate(
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
if ( the_tod->day > days_in_month )
return FALSE;
return false;
return TRUE;
return true;
}
+1 -1
View File
@@ -68,7 +68,7 @@ void rtems_interrupt_flash(
#undef rtems_interrupt_is_in_progress
boolean rtems_interrupt_is_in_progress( void )
bool rtems_interrupt_is_in_progress( void )
{
return _ISR_Is_in_progress();
}
+1 -1
View File
@@ -264,7 +264,7 @@ void _Message_queue_MP_Process_packet (
{
Message_queue_MP_Packet *the_packet;
Thread_Control *the_thread;
boolean ignored;
bool ignored;
the_packet = (Message_queue_MP_Packet *) the_packet_prefix;
+1 -1
View File
@@ -65,7 +65,7 @@ rtems_status_code rtems_message_queue_create(
register Message_queue_Control *the_message_queue;
CORE_message_queue_Attributes the_msgq_attributes;
#if defined(RTEMS_MULTIPROCESSING)
boolean is_global;
bool is_global;
#endif
if ( !rtems_is_name_valid( name ) )
+3 -3
View File
@@ -63,7 +63,7 @@ rtems_status_code rtems_message_queue_receive(
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
boolean wait;
bool wait;
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
@@ -76,9 +76,9 @@ rtems_status_code rtems_message_queue_receive(
case OBJECTS_LOCAL:
if ( _Options_Is_no_wait( option_set ) )
wait = FALSE;
wait = false;
else
wait = TRUE;
wait = true;
_CORE_message_queue_Seize(
&the_message_queue->message_queue,
+1 -1
View File
@@ -181,7 +181,7 @@ void _Partition_MP_Process_packet (
{
Partition_MP_Packet *the_packet;
Thread_Control *the_thread;
boolean ignored;
bool ignored;
the_packet = (Partition_MP_Packet *) the_packet_prefix;
+1 -1
View File
@@ -187,7 +187,7 @@ void _Region_MP_Process_packet (
{
Region_MP_Packet *the_packet;
Thread_Control *the_thread;
boolean ignored;
bool ignored;
the_packet = (Region_MP_Packet *) the_packet_prefix;
+1 -1
View File
@@ -184,7 +184,7 @@ void _Semaphore_MP_Process_packet (
{
Semaphore_MP_Packet *the_packet;
Thread_Control *the_thread;
boolean ignored;
bool ignored;
the_packet = (Semaphore_MP_Packet *) the_packet_prefix;
+1 -1
View File
@@ -64,7 +64,7 @@ rtems_status_code rtems_signal_send(
if ( asr->is_enabled ) {
_ASR_Post_signals( signal_set, &asr->signals_posted );
the_thread->do_post_task_switch_extension = TRUE;
the_thread->do_post_task_switch_extension = true;
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
_ISR_Signals_to_thread_executing = TRUE;
+8 -8
View File
@@ -65,12 +65,12 @@ rtems_status_code rtems_task_create(
)
{
register Thread_Control *the_thread;
boolean is_fp;
bool is_fp;
#if defined(RTEMS_MULTIPROCESSING)
Objects_MP_Control *the_global_object = NULL;
boolean is_global;
bool is_global;
#endif
boolean status;
bool status;
rtems_attribute the_attribute_set;
Priority_Control core_priority;
RTEMS_API_Control *api;
@@ -102,9 +102,9 @@ rtems_status_code rtems_task_create(
_Attributes_Clear( the_attribute_set, ATTRIBUTES_NOT_SUPPORTED );
if ( _Attributes_Is_floating_point( the_attribute_set ) )
is_fp = TRUE;
is_fp = true;
else
is_fp = FALSE;
is_fp = false;
/*
* Validate the RTEMS API priority and convert it to the core priority range.
@@ -120,13 +120,13 @@ rtems_status_code rtems_task_create(
#if defined(RTEMS_MULTIPROCESSING)
if ( _Attributes_Is_global( the_attribute_set ) ) {
is_global = TRUE;
is_global = true;
if ( !_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
} else
is_global = FALSE;
is_global = false;
#endif
/*
@@ -200,7 +200,7 @@ rtems_status_code rtems_task_create(
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? FALSE : TRUE;
asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true;
*id = the_thread->Object.id;
+5 -5
View File
@@ -58,8 +58,8 @@ rtems_status_code rtems_task_mode(
Thread_Control *executing;
RTEMS_API_Control *api;
ASR_Information *asr;
boolean is_asr_enabled = FALSE;
boolean needs_asr_dispatching = FALSE;
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
@@ -111,13 +111,13 @@ rtems_status_code rtems_task_mode(
needs_asr_dispatching = FALSE;
if ( mask & RTEMS_ASR_MASK ) {
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? FALSE : TRUE;
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
if ( is_asr_enabled != asr->is_enabled ) {
asr->is_enabled = is_asr_enabled;
_ASR_Swap_signals( asr );
if ( _ASR_Are_signals_pending( asr ) ) {
needs_asr_dispatching = TRUE;
executing->do_post_task_switch_extension = TRUE;
needs_asr_dispatching = true;
executing->do_post_task_switch_extension = true;
}
}
}
+1 -1
View File
@@ -190,7 +190,7 @@ void _RTEMS_tasks_MP_Process_packet (
{
RTEMS_tasks_MP_Packet *the_packet;
Thread_Control *the_thread;
boolean ignored;
bool ignored;
the_packet = (RTEMS_tasks_MP_Packet *) the_packet_prefix;
+3 -3
View File
@@ -43,7 +43,7 @@
* area.
*/
boolean _RTEMS_tasks_Create_extension(
bool _RTEMS_tasks_Create_extension(
Thread_Control *executing,
Thread_Control *created
)
@@ -63,7 +63,7 @@ boolean _RTEMS_tasks_Create_extension(
api = _Workspace_Allocate( to_allocate );
if ( !api )
return FALSE;
return false;
created->API_Extensions[ THREAD_API_RTEMS ] = api;
@@ -76,7 +76,7 @@ boolean _RTEMS_tasks_Create_extension(
api->Notepads[i] = 0;
}
return TRUE;
return true;
}
/*PAGE
+5 -5
View File
@@ -147,8 +147,8 @@ rtems_status_code rtems_timer_initiate_server(
rtems_id id;
rtems_status_code status;
rtems_task_priority _priority;
static boolean initialized = FALSE;
boolean tmpInitialized;
static bool initialized = false;
bool tmpInitialized;
/*
* Make sure the requested priority is valid. The if is
@@ -169,7 +169,7 @@ rtems_status_code rtems_timer_initiate_server(
_Thread_Disable_dispatch();
tmpInitialized = initialized;
initialized = TRUE;
initialized = true;
_Thread_Enable_dispatch();
if ( tmpInitialized )
@@ -201,7 +201,7 @@ rtems_status_code rtems_timer_initiate_server(
&id /* get the id back */
);
if (status) {
initialized = FALSE;
initialized = false;
return status;
}
@@ -254,7 +254,7 @@ rtems_status_code rtems_timer_initiate_server(
* be good. If this service fails, something is weirdly wrong on the
* target such as a stray write in an ISR or incorrect memory layout.
*/
initialized = FALSE;
initialized = false;
}
return status;
+7 -7
View File
@@ -22,7 +22,7 @@
#include <string.h> /* for memset */
boolean rtems_workspace_get_information(
bool rtems_workspace_get_information(
Heap_Information_block *the_info
)
{
@@ -30,30 +30,30 @@ boolean rtems_workspace_get_information(
status = _Heap_Get_information( &_Workspace_Area, the_info );
if ( status == HEAP_GET_INFORMATION_SUCCESSFUL )
return TRUE;
return true;
else
return FALSE;
return false;
}
/*
* _Workspace_Allocate
*/
boolean rtems_workspace_allocate(
bool rtems_workspace_allocate(
size_t bytes,
void **pointer
)
{
*pointer = _Heap_Allocate( &_Workspace_Area, bytes );
if (!pointer)
return FALSE;
return false;
else
return TRUE;
return true;
}
/*
* _Workspace_Allocate
*/
boolean rtems_workspace_free(
bool rtems_workspace_free(
void *pointer
)
{
+1 -1
View File
@@ -163,7 +163,7 @@ typedef struct {
* environment has ensured that memory was cleared before RTEMS was
* invoked.
*/
boolean do_zero_of_workspace;
bool do_zero_of_workspace;
uint32_t maximum_drivers;
uint32_t number_of_device_drivers;
+36 -36
View File
@@ -53,13 +53,13 @@ RTEMS_INLINE_ROUTINE void rtems_chain_initialize_empty(
/**
* @brief Is the Chain Node Pointer NULL
*
* This function returns TRUE if the_node is NULL and FALSE otherwise.
* This function returns true if the_node is NULL and false otherwise.
*
* @param[in] the_node is the node pointer to check.
*
* @return This method returns TRUE if the_node is NULL and FALSE otherwise.
* @return This method returns true if the_node is NULL and false otherwise.
*/
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_null_node(
RTEMS_INLINE_ROUTINE bool rtems_chain_is_null_node(
const rtems_chain_node *the_node
)
{
@@ -101,16 +101,16 @@ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_tail(
/**
* @brief Are Two Nodes Equal
*
* This function returns TRUE if @a left and @a right are equal,
* and FALSE otherwise.
* This function returns true if @a left and @a right are equal,
* and false otherwise.
*
* @param[in] left is the node on the left hand side of the comparison.
* @param[in] right is the node on the left hand side of the comparison.
*
* @return This function returns TRUE if @a left and @a right are equal,
* and FALSE otherwise.
* @return This function returns true if @a left and @a right are equal,
* and false otherwise.
*/
RTEMS_INLINE_ROUTINE boolean rtems_chain_are_nodes_equal(
RTEMS_INLINE_ROUTINE bool rtems_chain_are_nodes_equal(
const rtems_chain_node *left,
const rtems_chain_node *right
)
@@ -121,15 +121,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_are_nodes_equal(
/**
* @brief Is the Chain Empty
*
* This function returns TRUE if there a no nodes on @a the_chain and
* FALSE otherwise.
* This function returns true if there a no nodes on @a the_chain and
* false otherwise.
*
* @param[in] the_chain is the chain to be operated upon.
*
* @return This function returns TRUE if there a no nodes on @a the_chain and
* FALSE otherwise.
* @return This function returns true if there a no nodes on @a the_chain and
* false otherwise.
*/
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_empty(
RTEMS_INLINE_ROUTINE bool rtems_chain_is_empty(
rtems_chain_control *the_chain
)
{
@@ -139,16 +139,16 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_empty(
/**
* @brief Is this the First Node on the Chain
*
* This function returns TRUE if the_node is the first node on a chain and
* FALSE otherwise.
* This function returns true if the_node is the first node on a chain and
* false otherwise.
*
* @param[in] the_node is the node the caller wants to know if it is
* the first node on a chain.
*
* @return This function returns TRUE if @a the_node is the first node on
* a chain and FALSE otherwise.
* @return This function returns true if @a the_node is the first node on
* a chain and false otherwise.
*/
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_first(
RTEMS_INLINE_ROUTINE bool rtems_chain_is_first(
const rtems_chain_node *the_node
)
{
@@ -158,15 +158,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_first(
/**
* @brief Is this the Last Node on the Chain
*
* This function returns TRUE if @a the_node is the last node on a chain and
* FALSE otherwise.
* This function returns true if @a the_node is the last node on a chain and
* false otherwise.
*
* @param[in] the_node is the node to check as the last node.
*
* @return This function returns TRUE if @a the_node is the last node on
* a chain and FALSE otherwise.
* @return This function returns true if @a the_node is the last node on
* a chain and false otherwise.
*/
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_last(
RTEMS_INLINE_ROUTINE bool rtems_chain_is_last(
const rtems_chain_node *the_node
)
{
@@ -176,15 +176,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_last(
/**
* @brief Does this Chain have only One Node
*
* This function returns TRUE if there is only one node on @a the_chain and
* FALSE otherwise.
* This function returns true if there is only one node on @a the_chain and
* false otherwise.
*
* @param[in] the_chain is the chain to be operated upon.
*
* @return This function returns TRUE if there is only one node on
* @a the_chain and FALSE otherwise.
* @return This function returns true if there is only one node on
* @a the_chain and false otherwise.
*/
RTEMS_INLINE_ROUTINE boolean rtems_chain_has_only_one_node(
RTEMS_INLINE_ROUTINE bool rtems_chain_has_only_one_node(
const rtems_chain_control *the_chain
)
{
@@ -194,16 +194,16 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_has_only_one_node(
/**
* @brief Is this Node the Chain Head
*
* This function returns TRUE if @a the_node is the head of the_chain and
* FALSE otherwise.
* This function returns true if @a the_node is the head of the_chain and
* false otherwise.
*
* @param[in] the_chain is the chain to be operated upon.
* @param[in] the_node is the node to check for being the Chain Head.
*
* @return This function returns TRUE if @a the_node is the head of
* @a the_chain and FALSE otherwise.
* @return This function returns true if @a the_node is the head of
* @a the_chain and false otherwise.
*/
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_head(
RTEMS_INLINE_ROUTINE bool rtems_chain_is_head(
rtems_chain_control *the_chain,
const rtems_chain_node *the_node
)
@@ -214,13 +214,13 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_head(
/**
* @brief Is this Node the Chail Tail
*
* This function returns TRUE if the_node is the tail of the_chain and
* FALSE otherwise.
* This function returns true if the_node is the tail of the_chain and
* false otherwise.
*
* @param[in] the_chain is the chain to be operated upon.
* @param[in] the_node is the node to check for being the Chain Tail.
*/
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_tail(
RTEMS_INLINE_ROUTINE bool rtems_chain_is_tail(
rtems_chain_control *the_chain,
const rtems_chain_node *the_node
)
+1 -1
View File
@@ -82,7 +82,7 @@ RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get (
* This function returns TRUE if the_extension is NULL and FALSE otherwise.
*/
RTEMS_INLINE_ROUTINE boolean _Extension_Is_null (
RTEMS_INLINE_ROUTINE bool _Extension_Is_null (
Extension_Control *the_extension
)
{
+2 -2
View File
@@ -57,9 +57,9 @@ void rtems_debug_disable (
* _Debug_Is_enabled
*/
boolean _Debug_Is_enabled(
bool _Debug_Is_enabled(
rtems_debug_control level
)
{
return (_Debug_Level & level) ? TRUE : FALSE;
return (_Debug_Level & level) ? true : false;
}
+2 -2
View File
@@ -43,11 +43,11 @@ void _Extension_Manager_initialization(
OBJECTS_RTEMS_EXTENSIONS,
maximum_extensions,
sizeof( Extension_Control ),
FALSE, /* TRUE if the name is a string */
false, /* true if the name is a string */
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */
#if defined(RTEMS_MULTIPROCESSING)
,
FALSE, /* TRUE if this is a global object class */
false, /* true if this is a global object class */
NULL /* Proxy extraction support callout */
#endif
);
+2 -2
View File
@@ -67,11 +67,11 @@ rtems_status_code rtems_io_register_driver(
*/
if ( major == 0 ) {
boolean found = FALSE;
bool found = false;
for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) {
if ( !_IO_Driver_address_table[major].initialization_entry &&
!_IO_Driver_address_table[major].open_entry ) {
found = TRUE;
found = true;
break;
}
}
+1 -1
View File
@@ -67,7 +67,7 @@ void rtems_debug_disable (
* This routine returns TRUE if the requested debug level is
* enabled, and FALSE otherwise.
*/
boolean _Debug_Is_enabled(
bool _Debug_Is_enabled(
rtems_debug_control level
);
+1 -1
View File
@@ -48,7 +48,7 @@ extern "C" {
* currently executing thread and given to the heir thread.
*/
SCORE_EXTERN volatile boolean _Context_Switch_necessary;
SCORE_EXTERN volatile bool _Context_Switch_necessary;
/**
* @brief Initialize Context Area
@@ -150,7 +150,7 @@ void _CORE_barrier_Initialize(
void _CORE_barrier_Wait(
CORE_barrier_Control *the_barrier,
Objects_Id id,
boolean wait,
bool wait,
Watchdog_Interval timeout,
CORE_barrier_API_mp_support_callout api_barrier_mp_support
);
+7 -7
View File
@@ -27,16 +27,16 @@
*/
/**@{*/
#ifdef __cplusplus
extern "C" {
#endif
#include <limits.h>
#include <rtems/score/thread.h>
#include <rtems/score/threadq.h>
#include <rtems/score/priority.h>
#include <rtems/score/watchdog.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Message Queue MP Callback Prototype
*
@@ -240,7 +240,7 @@ typedef struct {
* FALSE will only be returned if memory for the pending
* messages cannot be allocated.
*/
boolean _CORE_message_queue_Initialize(
bool _CORE_message_queue_Initialize(
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Attributes *the_message_queue_attributes,
uint32_t maximum_pending_messages,
@@ -365,7 +365,7 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
Objects_Id id,
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
CORE_message_queue_Submit_types submit_type,
boolean wait,
bool wait,
Watchdog_Interval timeout
);
@@ -397,7 +397,7 @@ void _CORE_message_queue_Seize(
Objects_Id id,
void *buffer,
size_t *size_p,
boolean wait,
bool wait,
Watchdog_Interval timeout
);
+2 -2
View File
@@ -181,7 +181,7 @@ typedef struct {
/** When this field is TRUE, then only the thread that locked the mutex
* is allowed to unlock it.
*/
boolean only_owner_release;
bool only_owner_release;
/** This field indicates whether threads waiting on the mutex block in
* FIFO or priority order.
*/
@@ -402,7 +402,7 @@ void _CORE_mutex_Seize_interrupt_blocking(
void _CORE_mutex_Seize(
CORE_mutex_Control *_the_mutex,
Objects_Id _id,
boolean _wait,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
);
@@ -151,7 +151,7 @@ void _CORE_RWLock_Initialize(
void _CORE_RWLock_Obtain_for_reading(
CORE_RWLock_Control *the_rwlock,
Objects_Id id,
boolean wait,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
);
@@ -172,7 +172,7 @@ void _CORE_RWLock_Obtain_for_reading(
void _CORE_RWLock_Obtain_for_writing(
CORE_RWLock_Control *the_rwlock,
Objects_Id id,
boolean wait,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
);
+1 -1
View File
@@ -151,7 +151,7 @@ void _CORE_semaphore_Initialize(
void _CORE_semaphore_Seize(
CORE_semaphore_Control *the_semaphore,
Objects_Id id,
boolean wait,
bool wait,
Watchdog_Interval timeout
);

Some files were not shown because too many files have changed in this diff Show More