Eliminate TRUE/FALSE.

This commit is contained in:
Ralf Corsepius
2009-01-06 05:05:03 +00:00
parent 3507c6df70
commit eaef4657ac
28 changed files with 45 additions and 45 deletions
+2 -2
View File
@@ -54,11 +54,11 @@ void _Barrier_Manager_initialization(void)
Configuration_RTEMS_API.maximum_barriers,
/* maximum objects of this class */
sizeof( Barrier_Control ), /* size of this object's control block */
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
);
+1 -1
View File
@@ -51,7 +51,7 @@ rtems_status_code rtems_barrier_wait(
_CORE_barrier_Wait(
&the_barrier->Barrier,
id,
TRUE,
true,
timeout,
NULL
);
+2 -2
View File
@@ -41,8 +41,8 @@ const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = {
* the_tod - pointer to a time and date structure
*
* Output parameters:
* TRUE - if the date, time, and tick are valid
* FALSE - if the the_tod is invalid
* true - if the date, time, and tick are valid
* false - if the the_tod is invalid
*
* NOTE: This routine only works for leap-years through 2099.
*/
+2 -2
View File
@@ -46,11 +46,11 @@ void _Dual_ported_memory_Manager_initialization(void)
/* maximum objects of this class */
sizeof( Dual_ported_memory_Control ),
/* size of this object's control block */
FALSE, /* TRUE if names of this object are strings */
false, /* true if names of this object are strings */
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of each object's 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
@@ -57,11 +57,11 @@ void _Message_queue_Manager_initialization(void)
/* maximum objects of this class */
sizeof( Message_queue_Control ),
/* size of this object's control block */
FALSE, /* TRUE if names of this object are strings */
false, /* true if names of this object are strings */
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */
#if defined(RTEMS_MULTIPROCESSING)
,
TRUE, /* TRUE if this is a global object class */
true, /* true if this is a global object class */
_Message_queue_MP_Send_extract_proxy
/* Proxy extraction support callout */
#endif
+1 -1
View File
@@ -276,7 +276,7 @@ void _Message_queue_MP_Process_packet (
&_Message_queue_Information,
the_packet->name,
the_packet->Prefix.id,
TRUE
true
);
_MPCI_Return_packet( the_packet_prefix );
+1 -1
View File
@@ -111,7 +111,7 @@ rtems_status_code rtems_message_queue_create(
#if defined(RTEMS_MULTIPROCESSING)
if ( is_global &&
!( _Objects_MP_Allocate_and_open( &_Message_queue_Information,
name, the_message_queue->Object.id, FALSE ) ) ) {
name, the_message_queue->Object.id, false ) ) ) {
_Message_queue_Free( the_message_queue );
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
+1 -1
View File
@@ -79,7 +79,7 @@ rtems_status_code rtems_message_queue_send(
size,
id,
MESSAGE_QUEUE_MP_HANDLER,
FALSE, /* sender does not block */
false, /* sender does not block */
0 /* no timeout */
);
+1 -1
View File
@@ -79,7 +79,7 @@ rtems_status_code rtems_message_queue_urgent(
size,
id,
MESSAGE_QUEUE_MP_HANDLER,
FALSE, /* sender does not block */
false, /* sender does not block */
0 /* no timeout */
);
_Thread_Enable_dispatch();
+2 -2
View File
@@ -46,11 +46,11 @@ void _Partition_Manager_initialization(void)
Configuration_RTEMS_API.maximum_partitions,
/* maximum objects of this class */
sizeof( Partition_Control ), /* size of this object's control block */
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)
,
TRUE, /* TRUE if this is a global object class */
true, /* true if this is a global object class */
_Partition_MP_Send_extract_proxy /* Proxy extraction support callout */
#endif
);
+1 -1
View File
@@ -91,7 +91,7 @@ rtems_status_code rtems_partition_create(
#if defined(RTEMS_MULTIPROCESSING)
if ( _Attributes_Is_global( attribute_set ) &&
!( _Objects_MP_Allocate_and_open( &_Partition_Information, name,
the_partition->Object.id, FALSE ) ) ) {
the_partition->Object.id, false ) ) ) {
_Partition_Free( the_partition );
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
+1 -1
View File
@@ -193,7 +193,7 @@ void _Partition_MP_Process_packet (
&_Partition_Information,
the_packet->name,
the_packet->Prefix.id,
TRUE
true
);
_MPCI_Return_packet( the_packet_prefix );
+2 -2
View File
@@ -49,11 +49,11 @@ void _Rate_monotonic_Manager_initialization(void)
Configuration_RTEMS_API.maximum_periods,
/* maximum objects of this class */
sizeof( Rate_monotonic_Control ),/* size of this object's control block */
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
@@ -47,11 +47,11 @@ void _Region_Manager_initialization(void)
Configuration_RTEMS_API.maximum_regions,
/* maximum objects of this class */
sizeof( Region_Control ), /* size of this object's control block */
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
);
+1 -1
View File
@@ -199,7 +199,7 @@ void _Region_MP_Process_packet (
&_Region_Information,
the_packet->name,
the_packet->Prefix.id,
TRUE
true
);
_MPCI_Return_packet( the_packet_prefix );
+2 -2
View File
@@ -46,11 +46,11 @@ void _Timer_Manager_initialization(void)
Configuration_RTEMS_API.maximum_timers ,
/* maximum objects of this class */
sizeof( Timer_Control ), /* size of this object's control block */
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
@@ -70,11 +70,11 @@ void _Semaphore_Manager_initialization(void)
Configuration_RTEMS_API.maximum_semaphores,
/* maximum objects of this class */
sizeof( Semaphore_Control ), /* size of this object's control block */
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)
,
TRUE, /* TRUE if this is a global object class */
true, /* true if this is a global object class */
_Semaphore_MP_Send_extract_proxy /* Proxy extraction support callout */
#endif
);
+4 -4
View File
@@ -126,7 +126,7 @@ rtems_status_code rtems_semaphore_create(
#if defined(RTEMS_MULTIPROCESSING)
if ( _Attributes_Is_global( attribute_set ) &&
! ( _Objects_MP_Allocate_and_open( &_Semaphore_Information, name,
the_semaphore->Object.id, FALSE ) ) ) {
the_semaphore->Object.id, false ) ) ) {
_Semaphore_Free( the_semaphore );
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
@@ -158,16 +158,16 @@ rtems_status_code rtems_semaphore_create(
switch ( the_mutex_attributes.discipline ) {
case CORE_MUTEX_DISCIPLINES_FIFO:
case CORE_MUTEX_DISCIPLINES_PRIORITY:
the_mutex_attributes.only_owner_release = FALSE;
the_mutex_attributes.only_owner_release = false;
break;
case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING:
case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT:
the_mutex_attributes.only_owner_release = TRUE;
the_mutex_attributes.only_owner_release = true;
break;
}
} else {
the_mutex_attributes.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS;
the_mutex_attributes.only_owner_release = FALSE;
the_mutex_attributes.only_owner_release = false;
}
the_mutex_attributes.priority_ceiling = priority_ceiling;
+1 -1
View File
@@ -196,7 +196,7 @@ void _Semaphore_MP_Process_packet (
&_Semaphore_Information,
the_packet->name,
the_packet->Prefix.id,
TRUE
true
);
_MPCI_Return_packet( the_packet_prefix );
+2 -2
View File
@@ -83,7 +83,7 @@ rtems_status_code rtems_semaphore_obtain(
_CORE_mutex_Seize(
&the_semaphore->Core_control.mutex,
id,
((_Options_Is_no_wait( option_set )) ? FALSE : TRUE),
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
level
);
@@ -95,7 +95,7 @@ rtems_status_code rtems_semaphore_obtain(
_CORE_semaphore_Seize_isr_disable(
&the_semaphore->Core_control.semaphore,
id,
((_Options_Is_no_wait( option_set )) ? FALSE : TRUE),
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
&level
);
+1 -1
View File
@@ -67,7 +67,7 @@ rtems_status_code rtems_signal_send(
the_thread->do_post_task_switch_extension = true;
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
_ISR_Signals_to_thread_executing = TRUE;
_ISR_Signals_to_thread_executing = true;
} else {
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
+1 -1
View File
@@ -178,7 +178,7 @@ rtems_status_code rtems_task_create(
stack_size,
is_fp,
core_priority,
_Modes_Is_preempt(initial_modes) ? TRUE : FALSE,
_Modes_Is_preempt(initial_modes) ? true : false,
_Modes_Is_timeslice(initial_modes) ?
THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE :
THREAD_CPU_BUDGET_ALGORITHM_NONE,
+2 -2
View File
@@ -79,7 +79,7 @@ void _RTEMS_tasks_Initialize_user_tasks_body( void )
);
if ( !rtems_is_status_successful( return_value ) )
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value );
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
return_value = rtems_task_start(
id,
@@ -88,6 +88,6 @@ void _RTEMS_tasks_Initialize_user_tasks_body( void )
);
if ( !rtems_is_status_successful( return_value ) )
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, TRUE, return_value );
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
}
}
+3 -3
View File
@@ -86,7 +86,7 @@ rtems_status_code rtems_task_mode(
*/
if ( mask & RTEMS_PREEMPT_MASK )
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? TRUE : FALSE;
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
if ( mask & RTEMS_TIMESLICE_MASK ) {
if ( _Modes_Is_timeslice(mode_set) ) {
@@ -107,8 +107,8 @@ rtems_status_code rtems_task_mode(
* This is specific to the RTEMS API
*/
is_asr_enabled = FALSE;
needs_asr_dispatching = FALSE;
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
+1 -1
View File
@@ -202,7 +202,7 @@ void _RTEMS_tasks_MP_Process_packet (
&_RTEMS_tasks_Information,
the_packet->name,
the_packet->Prefix.id,
TRUE
true
);
_MPCI_Return_packet( the_packet_prefix );
+1 -1
View File
@@ -59,7 +59,7 @@ rtems_status_code rtems_task_resume(
case OBJECTS_LOCAL:
if ( _States_Is_suspended( the_thread->current_state ) ) {
_Thread_Resume( the_thread, TRUE );
_Thread_Resume( the_thread, true );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
+2 -2
View File
@@ -255,11 +255,11 @@ void _RTEMS_tasks_Manager_initialization(void)
Configuration_RTEMS_API.maximum_tasks,
/* maximum objects of this class */
sizeof( Thread_Control ), /* size of this object's control block */
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)
,
TRUE, /* TRUE if this is a global object class */
true, /* true if this is a global object class */
NULL /* Proxy extraction support callout */
#endif
);
+1 -1
View File
@@ -77,7 +77,7 @@ rtems_status_code rtems_task_set_priority(
the_thread->real_priority = new_priority;
if ( the_thread->resource_count == 0 ||
the_thread->current_priority > new_priority )
_Thread_Change_priority( the_thread, new_priority, FALSE );
_Thread_Change_priority( the_thread, new_priority, false );
}
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;