Eliminate TRUE/FALSE.

This commit is contained in:
Ralf Corsepius
2008-12-22 06:05:34 +00:00
parent 063f66f898
commit c6b37199d9
16 changed files with 47 additions and 47 deletions

View File

@@ -43,7 +43,7 @@ extern "C" {
/** /**
* @brief Is Context Switch Needed? * @brief Is Context Switch Needed?
* *
* This variable is set to TRUE when a reschedule operation * This variable is set to true when a reschedule operation
* has determined that the processor should be taken away from the * has determined that the processor should be taken away from the
* currently executing thread and given to the heir thread. * currently executing thread and given to the heir thread.
*/ */
@@ -62,7 +62,7 @@ SCORE_EXTERN volatile bool _Context_Switch_necessary;
* @param[in] _size is the size in octets of the thread's context * @param[in] _size is the size in octets of the thread's context
* @param[in] _isr is the ISR enable level for this thread * @param[in] _isr is the ISR enable level for this thread
* @param[in] _entry is this thread's entry point * @param[in] _entry is this thread's entry point
* @param[in] _is_fp is set to TRUE if this thread has floating point * @param[in] _is_fp is set to true if this thread has floating point
* enabled * enabled
*/ */
#define _Context_Initialize(_the_context, _stack, _size, _isr, _entry, _is_fp) \ #define _Context_Initialize(_the_context, _stack, _size, _isr, _entry, _is_fp) \

View File

@@ -139,9 +139,9 @@ void _CORE_barrier_Initialize(
* *
* @param[in] the_barrier is the barrier to wait for * @param[in] the_barrier is the barrier to wait for
* @param[in] id is the id of the object being waited upon * @param[in] id is the id of the object being waited upon
* @param[in] wait is TRUE if the calling thread is willing to wait * @param[in] wait is true if the calling thread is willing to wait
* @param[in] timeout is the number of ticks the calling thread is willing * @param[in] timeout is the number of ticks the calling thread is willing
* to wait if @a wait is TRUE. * to wait if @a wait is true.
* @param[in] api_barrier_mp_support is the routine to invoke if the * @param[in] api_barrier_mp_support is the routine to invoke if the
* thread unblocked is remote * thread unblocked is remote
* *

View File

@@ -236,8 +236,8 @@ typedef struct {
* @param[in] maximum_message_size is the size of largest message that * @param[in] maximum_message_size is the size of largest message that
* may be sent to this message queue instance * may be sent to this message queue instance
* *
* @return TRUE if the message queue can be initialized. In general, * @return true if the message queue can be initialized. In general,
* FALSE will only be returned if memory for the pending * false will only be returned if memory for the pending
* messages cannot be allocated. * messages cannot be allocated.
*/ */
bool _CORE_message_queue_Initialize( bool _CORE_message_queue_Initialize(
@@ -374,7 +374,7 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
* *
* This kernel routine dequeues a message, copies the message buffer to * This kernel routine dequeues a message, copies the message buffer to
* a given destination buffer, and frees the message buffer to the * a given destination buffer, and frees the message buffer to the
* inactive message pool. The thread will be blocked if wait is TRUE, * inactive message pool. The thread will be blocked if wait is true,
* otherwise an error will be given to the thread if no messages are available. * otherwise an error will be given to the thread if no messages are available.
* *
* @param[in] the_message_queue points to the message queue * @param[in] the_message_queue points to the message queue

View File

@@ -178,7 +178,7 @@ typedef struct {
* be when attempting to acquire the mutex when it is already locked. * be when attempting to acquire the mutex when it is already locked.
*/ */
CORE_mutex_Nesting_behaviors lock_nesting_behavior; CORE_mutex_Nesting_behaviors lock_nesting_behavior;
/** When this field is TRUE, then only the thread that locked the mutex /** When this field is true, then only the thread that locked the mutex
* is allowed to unlock it. * is allowed to unlock it.
*/ */
bool only_owner_release; bool only_owner_release;
@@ -269,7 +269,7 @@ void _CORE_mutex_Initialize(
* @brief Seize Mutex with Quick Success Path * @brief Seize Mutex with Quick Success Path
* *
* This routine attempts to receive a unit from the_mutex. * This routine attempts to receive a unit from the_mutex.
* If a unit is available or if the wait flag is FALSE, then the routine * If a unit is available or if the wait flag is false, then the routine
* returns. Otherwise, the calling task is blocked until a unit becomes * returns. Otherwise, the calling task is blocked until a unit becomes
* available. * available.
* *
@@ -340,7 +340,7 @@ void _CORE_mutex_Seize_interrupt_blocking(
* *
* @param[in] _the_mutex is the mutex to attempt to lock * @param[in] _the_mutex is the mutex to attempt to lock
* @param[in] _id is the Id of the owning API level Semaphore object * @param[in] _id is the Id of the owning API level Semaphore object
* @param[in] _wait is TRUE if the thread is willing to wait * @param[in] _wait is true if the thread is willing to wait
* @param[in] _timeout is the maximum number of ticks to block * @param[in] _timeout is the maximum number of ticks to block
* @param[in] _level is a temporary variable used to contain the ISR * @param[in] _level is a temporary variable used to contain the ISR
* disable level cookie * disable level cookie
@@ -368,7 +368,7 @@ void _CORE_mutex_Seize_interrupt_blocking(
) { \ ) { \
_Internal_error_Occurred( \ _Internal_error_Occurred( \
INTERNAL_ERROR_CORE, \ INTERNAL_ERROR_CORE, \
FALSE, \ false, \
INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE \ INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE \
); \ ); \
} \ } \
@@ -393,7 +393,7 @@ void _CORE_mutex_Seize_interrupt_blocking(
* *
* @param[in] _the_mutex is the mutex to attempt to lock * @param[in] _the_mutex is the mutex to attempt to lock
* @param[in] _id is the Id of the owning API level Semaphore object * @param[in] _id is the Id of the owning API level Semaphore object
* @param[in] _wait is TRUE if the thread is willing to wait * @param[in] _wait is true if the thread is willing to wait
* @param[in] _timeout is the maximum number of ticks to block * @param[in] _timeout is the maximum number of ticks to block
* @param[in] _level is a temporary variable used to contain the ISR * @param[in] _level is a temporary variable used to contain the ISR
* disable level cookie * disable level cookie

View File

@@ -140,9 +140,9 @@ void _CORE_RWLock_Initialize(
* *
* @param[in] the_rwlock is the RWLock to wait for * @param[in] the_rwlock is the RWLock to wait for
* @param[in] id is the id of the object being waited upon * @param[in] id is the id of the object being waited upon
* @param[in] wait is TRUE if the calling thread is willing to wait * @param[in] wait is true if the calling thread is willing to wait
* @param[in] timeout is the number of ticks the calling thread is willing * @param[in] timeout is the number of ticks the calling thread is willing
* to wait if @a wait is TRUE. * to wait if @a wait is true.
* @param[in] api_rwlock_mp_support is the routine to invoke if the * @param[in] api_rwlock_mp_support is the routine to invoke if the
* thread unblocked is remote * thread unblocked is remote
* *
@@ -161,9 +161,9 @@ void _CORE_RWLock_Obtain_for_reading(
* *
* @param[in] the_rwlock is the RWLock to wait for * @param[in] the_rwlock is the RWLock to wait for
* @param[in] id is the id of the object being waited upon * @param[in] id is the id of the object being waited upon
* @param[in] wait is TRUE if the calling thread is willing to wait * @param[in] wait is true if the calling thread is willing to wait
* @param[in] timeout is the number of ticks the calling thread is willing * @param[in] timeout is the number of ticks the calling thread is willing
* to wait if @a wait is TRUE. * to wait if @a wait is true.
* @param[in] api_rwlock_mp_support is the routine to invoke if the * @param[in] api_rwlock_mp_support is the routine to invoke if the
* thread unblocked is remote * thread unblocked is remote
* *

View File

@@ -137,7 +137,7 @@ void _CORE_semaphore_Initialize(
/** /**
* This routine attempts to receive a unit from @a the_semaphore. * This routine attempts to receive a unit from @a the_semaphore.
* If a unit is available or if the wait flag is FALSE, then the routine * If a unit is available or if the wait flag is false, then the routine
* returns. Otherwise, the calling task is blocked until a unit becomes * returns. Otherwise, the calling task is blocked until a unit becomes
* available. * available.
* *
@@ -146,7 +146,7 @@ void _CORE_semaphore_Initialize(
* with this instance of a SuperCore Semaphore * with this instance of a SuperCore Semaphore
* @param[in] wait indicates if the caller is willing to block * @param[in] wait indicates if the caller is willing to block
* @param[in] timeout is the number of ticks the calling thread is willing * @param[in] timeout is the number of ticks the calling thread is willing
* to wait if @a wait is TRUE. * to wait if @a wait is true.
*/ */
void _CORE_semaphore_Seize( void _CORE_semaphore_Seize(
CORE_semaphore_Control *the_semaphore, CORE_semaphore_Control *the_semaphore,

View File

@@ -323,14 +323,14 @@ void *_Heap_Allocate_aligned(
* This function sets @a *size to the size of the block of user memory * This function sets @a *size to the size of the block of user memory
* which begins at @a starting_address. The size returned in @a *size could * which begins at @a starting_address. The size returned in @a *size could
* be greater than the size requested for allocation. * be greater than the size requested for allocation.
* Returns TRUE if the @a starting_address is in the heap, and FALSE * Returns true if the @a starting_address is in the heap, and false
* otherwise. * otherwise.
* *
* @param[in] the_heap is the heap to operate upon * @param[in] the_heap is the heap to operate upon
* @param[in] starting_address is the starting address of the user block * @param[in] starting_address is the starting address of the user block
* to obtain the size of * to obtain the size of
* @param[in] size points to a user area to return the size in * @param[in] size points to a user area to return the size in
* @return TRUE if successfully able to determine the size, FALSE otherwise * @return true if successfully able to determine the size, false otherwise
* @return *size filled in with the size of the user area for this block * @return *size filled in with the size of the user area for this block
*/ */
bool _Heap_Size_of_user_area( bool _Heap_Size_of_user_area(
@@ -377,7 +377,7 @@ Heap_Resize_status _Heap_Resize_block(
* @param[in] the_heap is the heap to operate upon * @param[in] the_heap is the heap to operate upon
* @param[in] start_address is the starting address of the user block * @param[in] start_address is the starting address of the user block
* to free * to free
* @return TRUE if successfully freed, FALSE otherwise * @return true if successfully freed, false otherwise
*/ */
bool _Heap_Free( bool _Heap_Free(
Heap_Control *the_heap, Heap_Control *the_heap,
@@ -390,8 +390,8 @@ bool _Heap_Free(
* @param[in] the_heap is the heap to operate upon * @param[in] the_heap is the heap to operate upon
* @param[in] source is a user specified integer which may be used to * @param[in] source is a user specified integer which may be used to
* indicate where in the application this was invoked from * indicate where in the application this was invoked from
* @param[in] do_dump is set to TRUE if errors should be printed * @param[in] do_dump is set to true if errors should be printed
* @return TRUE if the test passed fine, FALSE otherwise. * @return true if the test passed fine, false otherwise.
*/ */
bool _Heap_Walk( bool _Heap_Walk(
Heap_Control *the_heap, Heap_Control *the_heap,

View File

@@ -76,7 +76,7 @@ typedef ISR_Handler ( *ISR_Handler_entry )(
#define ISR_INTERRUPT_MAXIMUM_VECTOR_NUMBER CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER #define ISR_INTERRUPT_MAXIMUM_VECTOR_NUMBER CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER
/** /**
* The following is TRUE if signals have been sent to the currently * The following is true if signals have been sent to the currently
* executing thread by an ISR handler. * executing thread by an ISR handler.
*/ */
SCORE_EXTERN bool _ISR_Signals_to_thread_executing; SCORE_EXTERN bool _ISR_Signals_to_thread_executing;
@@ -196,8 +196,8 @@ void _ISR_Handler( void );
void _ISR_Dispatch( void ); void _ISR_Dispatch( void );
/** /**
* This function returns TRUE if the processor is currently servicing * This function returns true if the processor is currently servicing
* and interrupt and FALSE otherwise. A return value of TRUE indicates * and interrupt and false otherwise. A return value of true indicates
* that the caller is an interrupt service routine, NOT a thread. The * that the caller is an interrupt service routine, NOT a thread. The
*/ */
#if (CPU_PROVIDES_ISR_IS_IN_PROGRESS == TRUE) #if (CPU_PROVIDES_ISR_IS_IN_PROGRESS == TRUE)

View File

@@ -333,7 +333,7 @@ typedef struct {
Objects_Id maximum_id; Objects_Id maximum_id;
/** This is the maximum number of objects in this class. */ /** This is the maximum number of objects in this class. */
Objects_Maximum maximum; Objects_Maximum maximum;
/** This is the TRUE if unlimited objects in this class. */ /** This is the true if unlimited objects in this class. */
bool auto_extend; bool auto_extend;
/** This is the number of objects in a block. */ /** This is the number of objects in a block. */
uint32_t allocation_size; uint32_t allocation_size;
@@ -454,8 +454,8 @@ void _Objects_Shrink_information(
/** /**
* This function initializes an object class information record. * This function initializes an object class information record.
* SUPPORTS_GLOBAL is TRUE if the object class supports global * SUPPORTS_GLOBAL is true if the object class supports global
* objects, and FALSE otherwise. Maximum indicates the number * objects, and false otherwise. Maximum indicates the number
* of objects required in this class and size indicates the size * of objects required in this class and size indicates the size
* in bytes of each control block for this object class. The * in bytes of each control block for this object class. The
* name length and string designator are also set. In addition, * name length and string designator are also set. In addition,
@@ -468,7 +468,7 @@ void _Objects_Shrink_information(
* @param[in] maximum is the maximum number of instances of this object * @param[in] maximum is the maximum number of instances of this object
* class which may be concurrently active. * class which may be concurrently active.
* @param[in] size is the size of the data structure for this class. * @param[in] size is the size of the data structure for this class.
* @param[in] is_string is TRUE if this object uses string style names. * @param[in] is_string is true if this object uses string style names.
* @param[in] maximum_name_length is the maximum length of object names. * @param[in] maximum_name_length is the maximum length of object names.
*/ */
void _Objects_Initialize_information ( void _Objects_Initialize_information (
@@ -836,7 +836,7 @@ char *_Objects_Get_name_as_string(
* @param[in] the_object is the object to operate upon * @param[in] the_object is the object to operate upon
* @param[in] name is a pointer to the name to use * @param[in] name is a pointer to the name to use
* *
* @return If successful, TRUE is returned. Otherwise FALSE is returned. * @return If successful, true is returned. Otherwise false is returned.
*/ */
bool _Objects_Set_name( bool _Objects_Set_name(
Objects_Information *information, Objects_Information *information,

View File

@@ -85,7 +85,7 @@ void _Objects_MP_Open (
* object class. * object class.
* @param[in] the_name is the name of the object being opened. * @param[in] the_name is the name of the object being opened.
* @param[in] the_id is the Id of the object being opened. * @param[in] the_id is the Id of the object being opened.
* @param[in] is_fatal_error is TRUE if not being able to allocate the * @param[in] is_fatal_error is true if not being able to allocate the
* object is considered a fatal error. * object is considered a fatal error.
* *
* @todo This method only works for object types with 4 byte object names. * @todo This method only works for object types with 4 byte object names.

View File

@@ -115,14 +115,14 @@ void *_Protected_heap_Allocate_aligned(
* This function sets @a *size to the size of the block of user memory * This function sets @a *size to the size of the block of user memory
* which begins at @a starting_address. The size returned in @a *size could * which begins at @a starting_address. The size returned in @a *size could
* be greater than the size requested for allocation. * be greater than the size requested for allocation.
* Returns TRUE if the @a starting_address is in the heap, and FALSE * Returns true if the @a starting_address is in the heap, and false
* otherwise. * otherwise.
* *
* @param[in] the_heap is the heap to operate upon * @param[in] the_heap is the heap to operate upon
* @param[in] starting_address is the starting address of the user block * @param[in] starting_address is the starting address of the user block
* to obtain the size of * to obtain the size of
* @param[in] size points to a user area to return the size in * @param[in] size points to a user area to return the size in
* @return TRUE if successfully able to determine the size, FALSE otherwise * @return true if successfully able to determine the size, false otherwise
* @return *size filled in with the size of the user area for this block * @return *size filled in with the size of the user area for this block
*/ */
bool _Protected_heap_Get_block_size( bool _Protected_heap_Get_block_size(
@@ -140,8 +140,8 @@ bool _Protected_heap_Get_block_size(
* to be resized * to be resized
* @param[in] size is the new size * @param[in] size is the new size
* *
* @return TRUE if successfully able to resize the block. * @return true if successfully able to resize the block.
* FALSE if the block can't be resized in place. * false if the block can't be resized in place.
*/ */
bool _Protected_heap_Resize_block( bool _Protected_heap_Resize_block(
Heap_Control *the_heap, Heap_Control *the_heap,
@@ -157,7 +157,7 @@ bool _Protected_heap_Resize_block(
* @param[in] the_heap is the heap to operate upon * @param[in] the_heap is the heap to operate upon
* @param[in] start_address is the starting address of the user block * @param[in] start_address is the starting address of the user block
* to free * to free
* @return TRUE if successfully freed, FALSE otherwise * @return true if successfully freed, false otherwise
*/ */
bool _Protected_heap_Free( bool _Protected_heap_Free(
Heap_Control *the_heap, Heap_Control *the_heap,
@@ -170,8 +170,8 @@ bool _Protected_heap_Free(
* @param[in] the_heap is the heap to operate upon * @param[in] the_heap is the heap to operate upon
* @param[in] source is a user specified integer which may be used to * @param[in] source is a user specified integer which may be used to
* indicate where in the application this was invoked from * indicate where in the application this was invoked from
* @param[in] do_dump is set to TRUE if errors should be printed * @param[in] do_dump is set to true if errors should be printed
* @return TRUE if the test passed fine, FALSE otherwise. * @return true if the test passed fine, false otherwise.
*/ */
bool _Protected_heap_Walk( bool _Protected_heap_Walk(
Heap_Control *the_heap, Heap_Control *the_heap,

View File

@@ -751,7 +751,7 @@ void _Thread_Suspend(
/** /**
* This routine updates the related suspend fields in the_thread * This routine updates the related suspend fields in the_thread
* control block to indicate the current nested level. A force * control block to indicate the current nested level. A force
* parameter of TRUE will force a resume and clear the suspend count. * parameter of true will force a resume and clear the suspend count.
*/ */
void _Thread_Resume( void _Thread_Resume(
Thread_Control *the_thread, Thread_Control *the_thread,

View File

@@ -202,7 +202,7 @@ void _Thread_queue_Extract_priority_helper(
*/ */
#define _Thread_queue_Extract_priority( _the_thread_queue, _the_thread ) \ #define _Thread_queue_Extract_priority( _the_thread_queue, _the_thread ) \
_Thread_queue_Extract_priority_helper( _the_thread_queue, _the_thread, FALSE ) _Thread_queue_Extract_priority_helper( _the_thread_queue, _the_thread, false )
/** @brief Thread queue First priority /** @brief Thread queue First priority

View File

@@ -118,8 +118,8 @@ extern "C" {
/** @brief Is the Time Of Day Set /** @brief Is the Time Of Day Set
* *
* This is TRUE if the application has set the current * This is true if the application has set the current
* time of day, and FALSE otherwise. * time of day, and false otherwise.
*/ */
SCORE_EXTERN bool _TOD_Is_set; SCORE_EXTERN bool _TOD_Is_set;

View File

@@ -244,7 +244,7 @@ void _User_extensions_Remove_set (
* *
* @param[in] the_thread is the thread being created. * @param[in] the_thread is the thread being created.
* *
* @return This method returns TRUE if the user extension executed * @return This method returns true if the user extension executed
* successfully. * successfully.
*/ */
bool _User_extensions_Thread_create ( bool _User_extensions_Thread_create (
@@ -326,7 +326,7 @@ void _User_extensions_Thread_exitted (
* when a fatal error occurs. * when a fatal error occurs.
* *
* @param[in] the_source is the source of the fatal error. * @param[in] the_source is the source of the fatal error.
* @param[in] is_internal is TRUE if the error originated inside RTEMS. * @param[in] is_internal is true if the error originated inside RTEMS.
* @param[in] the_error is an indication of the actual error. * @param[in] the_error is an indication of the actual error.
*/ */
void _User_extensions_Fatal ( void _User_extensions_Fatal (

View File

@@ -66,11 +66,11 @@ void *_Workspace_Allocate(
* *
* This function frees the specified block of memory. If the block * This function frees the specified block of memory. If the block
* belongs to the Workspace and can be successfully freed, then * belongs to the Workspace and can be successfully freed, then
* TRUE is returned. Otherwise FALSE is returned. * true is returned. Otherwise false is returned.
* *
* @param block is the memory to free * @param block is the memory to free
* *
* @return TRUE if the free was successful. * @return true if the free was successful.
*/ */
bool _Workspace_Free( bool _Workspace_Free(