Changeset c6b3719 in rtems


Ignore:
Timestamp:
Dec 22, 2008, 6:05:34 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
91d6372
Parents:
063f66f8
Message:

Eliminate TRUE/FALSE.

Location:
cpukit/score/include/rtems/score
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/context.h

    r063f66f8 rc6b3719  
    4444 *  @brief Is Context Switch Needed?
    4545 *
    46  *  This variable is set to TRUE when a reschedule operation
     46 *  This variable is set to true when a reschedule operation
    4747 *  has determined that the processor should be taken away from the
    4848 *  currently executing thread and given to the heir thread.
     
    6363 *  @param[in] _isr is the ISR enable level for this thread
    6464 *  @param[in] _entry is this thread's entry point
    65  *  @param[in] _is_fp is set to TRUE if this thread has floating point
     65 *  @param[in] _is_fp is set to true if this thread has floating point
    6666 *         enabled
    6767 */
  • cpukit/score/include/rtems/score/corebarrier.h

    r063f66f8 rc6b3719  
    140140 *  @param[in] the_barrier is the barrier to wait for
    141141 *  @param[in] id is the id of the object being waited upon
    142  *  @param[in] wait is TRUE if the calling thread is willing to wait
     142 *  @param[in] wait is true if the calling thread is willing to wait
    143143 *  @param[in] timeout is the number of ticks the calling thread is willing
    144  *         to wait if @a wait is TRUE.
     144 *         to wait if @a wait is true.
    145145 *  @param[in] api_barrier_mp_support is the routine to invoke if the
    146146 *         thread unblocked is remote
  • cpukit/score/include/rtems/score/coremsg.h

    r063f66f8 rc6b3719  
    237237 *         may be sent to this message queue instance
    238238 *
    239  *  @return TRUE if the message queue can be initialized.  In general,
    240  *         FALSE will only be returned if memory for the pending
     239 *  @return true if the message queue can be initialized.  In general,
     240 *         false will only be returned if memory for the pending
    241241 *         messages cannot be allocated.
    242242 */
     
    375375 *  This kernel routine dequeues a message, copies the message buffer to
    376376 *  a given destination buffer, and frees the message buffer to the
    377  *  inactive message pool.  The thread will be blocked if wait is TRUE,
     377 *  inactive message pool.  The thread will be blocked if wait is true,
    378378 *  otherwise an error will be given to the thread if no messages are available.
    379379 *
  • cpukit/score/include/rtems/score/coremutex.h

    r063f66f8 rc6b3719  
    179179   */
    180180  CORE_mutex_Nesting_behaviors lock_nesting_behavior;
    181   /** When this field is TRUE, then only the thread that locked the mutex
     181  /** When this field is true, then only the thread that locked the mutex
    182182   *  is allowed to unlock it.
    183183   */
     
    270270 *
    271271 *  This routine attempts to receive a unit from the_mutex.
    272  *  If a unit is available or if the wait flag is FALSE, then the routine
     272 *  If a unit is available or if the wait flag is false, then the routine
    273273 *  returns.  Otherwise, the calling task is blocked until a unit becomes
    274274 *  available.
     
    341341 *  @param[in] _the_mutex is the mutex to attempt to lock
    342342 *  @param[in] _id is the Id of the owning API level Semaphore object
    343  *  @param[in] _wait is TRUE if the thread is willing to wait
     343 *  @param[in] _wait is true if the thread is willing to wait
    344344 *  @param[in] _timeout is the maximum number of ticks to block
    345345 *  @param[in] _level is a temporary variable used to contain the ISR
     
    369369        _Internal_error_Occurred( \
    370370           INTERNAL_ERROR_CORE, \
    371            FALSE, \
     371           false, \
    372372           INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE \
    373373           ); \
     
    394394 *  @param[in] _the_mutex is the mutex to attempt to lock
    395395 *  @param[in] _id is the Id of the owning API level Semaphore object
    396  *  @param[in] _wait is TRUE if the thread is willing to wait
     396 *  @param[in] _wait is true if the thread is willing to wait
    397397 *  @param[in] _timeout is the maximum number of ticks to block
    398398 *  @param[in] _level is a temporary variable used to contain the ISR
  • cpukit/score/include/rtems/score/corerwlock.h

    r063f66f8 rc6b3719  
    141141 *  @param[in] the_rwlock is the RWLock to wait for
    142142 *  @param[in] id is the id of the object being waited upon
    143  *  @param[in] wait is TRUE if the calling thread is willing to wait
     143 *  @param[in] wait is true if the calling thread is willing to wait
    144144 *  @param[in] timeout is the number of ticks the calling thread is willing
    145  *         to wait if @a wait is TRUE.
     145 *         to wait if @a wait is true.
    146146 *  @param[in] api_rwlock_mp_support is the routine to invoke if the
    147147 *         thread unblocked is remote
     
    162162 *  @param[in] the_rwlock is the RWLock to wait for
    163163 *  @param[in] id is the id of the object being waited upon
    164  *  @param[in] wait is TRUE if the calling thread is willing to wait
     164 *  @param[in] wait is true if the calling thread is willing to wait
    165165 *  @param[in] timeout is the number of ticks the calling thread is willing
    166  *         to wait if @a wait is TRUE.
     166 *         to wait if @a wait is true.
    167167 *  @param[in] api_rwlock_mp_support is the routine to invoke if the
    168168 *         thread unblocked is remote
  • cpukit/score/include/rtems/score/coresem.h

    r063f66f8 rc6b3719  
    138138/**
    139139 *  This routine attempts to receive a unit from @a the_semaphore.
    140  *  If a unit is available or if the wait flag is FALSE, then the routine
     140 *  If a unit is available or if the wait flag is false, then the routine
    141141 *  returns.  Otherwise, the calling task is blocked until a unit becomes
    142142 *  available.
     
    147147 *  @param[in] wait indicates if the caller is willing to block
    148148 *  @param[in] timeout is the number of ticks the calling thread is willing
    149  *         to wait if @a wait is TRUE.
     149 *         to wait if @a wait is true.
    150150 */
    151151void _CORE_semaphore_Seize(
  • cpukit/score/include/rtems/score/heap.h

    r063f66f8 rc6b3719  
    324324 *  which begins at @a starting_address. The size returned in @a *size could
    325325 *  be greater than the size requested for allocation.
    326  *  Returns TRUE if the @a starting_address is in the heap, and FALSE
     326 *  Returns true if the @a starting_address is in the heap, and false
    327327 *  otherwise.
    328328 *
     
    331331 *         to obtain the size of
    332332 *  @param[in] size points to a user area to return the size in
    333  *  @return TRUE if successfully able to determine the size, FALSE otherwise
     333 *  @return true if successfully able to determine the size, false otherwise
    334334 *  @return *size filled in with the size of the user area for this block
    335335 */
     
    378378 *  @param[in] start_address is the starting address of the user block
    379379 *         to free
    380  *  @return TRUE if successfully freed, FALSE otherwise
     380 *  @return true if successfully freed, false otherwise
    381381 */
    382382bool _Heap_Free(
     
    391391 *  @param[in] source is a user specified integer which may be used to
    392392 *         indicate where in the application this was invoked from
    393  *  @param[in] do_dump is set to TRUE if errors should be printed
    394  *  @return TRUE if the test passed fine, FALSE otherwise.
     393 *  @param[in] do_dump is set to true if errors should be printed
     394 *  @return true if the test passed fine, false otherwise.
    395395 */
    396396bool _Heap_Walk(
  • cpukit/score/include/rtems/score/isr.h

    r063f66f8 rc6b3719  
    7777
    7878/**
    79  *  The following is TRUE if signals have been sent to the currently
     79 *  The following is true if signals have been sent to the currently
    8080 *  executing thread by an ISR handler.
    8181 */
     
    197197
    198198/**
    199  *  This function returns TRUE if the processor is currently servicing
    200  *  and interrupt and FALSE otherwise.   A return value of TRUE indicates
     199 *  This function returns true if the processor is currently servicing
     200 *  and interrupt and false otherwise.   A return value of true indicates
    201201 *  that the caller is an interrupt service routine, NOT a thread.  The
    202202 */
  • cpukit/score/include/rtems/score/object.h

    r063f66f8 rc6b3719  
    334334  /** This is the maximum number of objects in this class. */
    335335  Objects_Maximum   maximum;
    336   /** This is the TRUE if unlimited objects in this class. */
     336  /** This is the true if unlimited objects in this class. */
    337337  bool              auto_extend;
    338338  /** This is the number of objects in a block. */
     
    455455/**
    456456 *  This function initializes an object class information record.
    457  *  SUPPORTS_GLOBAL is TRUE if the object class supports global
    458  *  objects, and FALSE otherwise.  Maximum indicates the number
     457 *  SUPPORTS_GLOBAL is true if the object class supports global
     458 *  objects, and false otherwise.  Maximum indicates the number
    459459 *  of objects required in this class and size indicates the size
    460460 *  in bytes of each control block for this object class.  The
     
    469469 *             class which may be concurrently active.
    470470 *  @param[in] size is the size of the data structure for this class.
    471  *  @param[in] is_string is TRUE if this object uses string style names.
     471 *  @param[in] is_string is true if this object uses string style names.
    472472 *  @param[in] maximum_name_length is the maximum length of object names.
    473473 */
     
    837837 *  @param[in] name is a pointer to the name to use
    838838 *
    839  *  @return If successful, TRUE is returned.  Otherwise FALSE is returned.
     839 *  @return If successful, true is returned.  Otherwise false is returned.
    840840 */
    841841bool _Objects_Set_name(
  • cpukit/score/include/rtems/score/objectmp.h

    r063f66f8 rc6b3719  
    8686 *  @param[in] the_name is the name of the object being opened.
    8787 *  @param[in] the_id is the Id of the object being opened.
    88  *  @param[in] is_fatal_error is TRUE if not being able to allocate the
     88 *  @param[in] is_fatal_error is true if not being able to allocate the
    8989 *             object is considered a fatal error.
    9090 *
  • cpukit/score/include/rtems/score/protectedheap.h

    r063f66f8 rc6b3719  
    116116 *  which begins at @a starting_address. The size returned in @a *size could
    117117 *  be greater than the size requested for allocation.
    118  *  Returns TRUE if the @a starting_address is in the heap, and FALSE
     118 *  Returns true if the @a starting_address is in the heap, and false
    119119 *  otherwise.
    120120 *
     
    123123 *         to obtain the size of
    124124 *  @param[in] size points to a user area to return the size in
    125  *  @return TRUE if successfully able to determine the size, FALSE otherwise
     125 *  @return true if successfully able to determine the size, false otherwise
    126126 *  @return *size filled in with the size of the user area for this block
    127127 */
     
    141141 *  @param[in] size is the new size
    142142 *
    143  *  @return TRUE if successfully able to resize the block.
    144  *          FALSE if the block can't be resized in place.
     143 *  @return true if successfully able to resize the block.
     144 *          false if the block can't be resized in place.
    145145 */
    146146bool _Protected_heap_Resize_block(
     
    158158 *  @param[in] start_address is the starting address of the user block
    159159 *         to free
    160  *  @return TRUE if successfully freed, FALSE otherwise
     160 *  @return true if successfully freed, false otherwise
    161161 */
    162162bool _Protected_heap_Free(
     
    171171 *  @param[in] source is a user specified integer which may be used to
    172172 *         indicate where in the application this was invoked from
    173  *  @param[in] do_dump is set to TRUE if errors should be printed
    174  *  @return TRUE if the test passed fine, FALSE otherwise.
     173 *  @param[in] do_dump is set to true if errors should be printed
     174 *  @return true if the test passed fine, false otherwise.
    175175 */
    176176bool _Protected_heap_Walk(
  • cpukit/score/include/rtems/score/thread.h

    r063f66f8 rc6b3719  
    752752 *  This routine updates the related suspend fields in the_thread
    753753 *  control block to indicate the current nested level.  A force
    754  *  parameter of TRUE will force a resume and clear the suspend count.
     754 *  parameter of true will force a resume and clear the suspend count.
    755755 */
    756756void _Thread_Resume(
  • cpukit/score/include/rtems/score/threadq.h

    r063f66f8 rc6b3719  
    203203
    204204#define _Thread_queue_Extract_priority( _the_thread_queue, _the_thread ) \
    205   _Thread_queue_Extract_priority_helper( _the_thread_queue, _the_thread, FALSE )
     205  _Thread_queue_Extract_priority_helper( _the_thread_queue, _the_thread, false )
    206206
    207207
  • cpukit/score/include/rtems/score/tod.h

    r063f66f8 rc6b3719  
    119119/** @brief Is the Time Of Day Set
    120120 *
    121  *  This is TRUE if the application has set the current
    122  *  time of day, and FALSE otherwise.
     121 *  This is true if the application has set the current
     122 *  time of day, and false otherwise.
    123123 */
    124124SCORE_EXTERN bool _TOD_Is_set;
  • cpukit/score/include/rtems/score/userext.h

    r063f66f8 rc6b3719  
    245245 *  @param[in] the_thread is the thread being created.
    246246 *
    247  *  @return This method returns TRUE if the user extension executed
     247 *  @return This method returns true if the user extension executed
    248248 *          successfully.
    249249 */
     
    327327 *
    328328 *  @param[in] the_source is the source of the fatal error.
    329  *  @param[in] is_internal is TRUE if the error originated inside RTEMS.
     329 *  @param[in] is_internal is true if the error originated inside RTEMS.
    330330 *  @param[in] the_error is an indication of the actual error.
    331331 */
  • cpukit/score/include/rtems/score/wkspace.h

    r063f66f8 rc6b3719  
    6767 *  This function frees the specified block of memory.  If the block
    6868 *  belongs to the Workspace and can be successfully freed, then
    69  *  TRUE is returned.  Otherwise FALSE is returned.
     69 *  true is returned.  Otherwise false is returned.
    7070 *
    7171 *  @param block is the memory to free
    7272 *
    73  *  @return TRUE if the free was successful.
     73 *  @return true if the free was successful.
    7474 */
    7575
Note: See TracChangeset for help on using the changeset viewer.