diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-12-22 05:52:32 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-12-22 05:52:32 +0000 |
commit | aae7f1a12b1d5bfe7233ce45532dba3ce651357b (patch) | |
tree | 072e6a5712a00830e7d89115cb2ee9b1f9f1895e /cpukit/score/src/heapsizeofuserarea.c | |
parent | 2008-12-22 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-aae7f1a12b1d5bfe7233ce45532dba3ce651357b.tar.bz2 |
Eliminate TRUE/FALSE.
Diffstat (limited to 'cpukit/score/src/heapsizeofuserarea.c')
-rw-r--r-- | cpukit/score/src/heapsizeofuserarea.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/score/src/heapsizeofuserarea.c b/cpukit/score/src/heapsizeofuserarea.c index d7c6f0f9b9..a9a276fabc 100644 --- a/cpukit/score/src/heapsizeofuserarea.c +++ b/cpukit/score/src/heapsizeofuserarea.c @@ -25,7 +25,7 @@ * * This kernel routine sets '*size' to the size of the block of memory * which begins at 'starting_address'. - * It returns TRUE if the 'starting_address' is in the heap, and FALSE + * It returns true if the 'starting_address' is in the heap, and false * otherwise. * * Input parameters: @@ -35,8 +35,8 @@ * * Output parameters: * size - size of area filled in - * TRUE - if starting_address is valid heap address - * FALSE - if starting_address is invalid heap address + * true - if starting_address is valid heap address + * false - if starting_address is invalid heap address */ bool _Heap_Size_of_user_area( @@ -51,13 +51,13 @@ bool _Heap_Size_of_user_area( if ( !_Addresses_Is_in_range( starting_address, (void *)the_heap->start, (void *)the_heap->final ) ) - return( FALSE ); + return( false ); _Heap_Start_of_block( the_heap, starting_address, &the_block ); _HAssert(_Heap_Is_block_in( the_heap, the_block )); if ( !_Heap_Is_block_in( the_heap, the_block ) ) - return( FALSE ); + return( false ); the_size = _Heap_Block_size( the_block ); next_block = _Heap_Block_at( the_block, the_size ); @@ -68,7 +68,7 @@ bool _Heap_Size_of_user_area( !_Heap_Is_block_in( the_heap, next_block ) || !_Heap_Is_prev_used( next_block ) ) - return( FALSE ); + return( false ); /* 'starting_address' could be greater than 'the_block' address plus HEAP_BLOCK_USER_OFFSET as _Heap_Allocate_aligned() may produce such user @@ -82,6 +82,6 @@ bool _Heap_Size_of_user_area( *size = _Addresses_Subtract ( next_block, starting_address ) + HEAP_BLOCK_HEADER_OFFSET; - return( TRUE ); + return( true ); } |