summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/heapfree.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-12-22 05:52:32 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-12-22 05:52:32 +0000
commitaae7f1a12b1d5bfe7233ce45532dba3ce651357b (patch)
tree072e6a5712a00830e7d89115cb2ee9b1f9f1895e /cpukit/score/src/heapfree.c
parent2008-12-22 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-aae7f1a12b1d5bfe7233ce45532dba3ce651357b.tar.bz2
Eliminate TRUE/FALSE.
Diffstat (limited to 'cpukit/score/src/heapfree.c')
-rw-r--r--cpukit/score/src/heapfree.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/cpukit/score/src/heapfree.c b/cpukit/score/src/heapfree.c
index db66023bc1..09bdd9d1eb 100644
--- a/cpukit/score/src/heapfree.c
+++ b/cpukit/score/src/heapfree.c
@@ -31,8 +31,8 @@
* starting_address - starting address of the memory block to free.
*
* Output parameters:
- * 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_Free(
@@ -50,27 +50,27 @@ bool _Heap_Free(
if ( !_Addresses_Is_in_range(
starting_address, (void *)the_heap->start, (void *)the_heap->final ) ) {
_HAssert(starting_address != NULL);
- return( FALSE );
+ return( false );
}
_Heap_Start_of_block( the_heap, starting_address, &the_block );
if ( !_Heap_Is_block_in( the_heap, the_block ) ) {
- _HAssert( FALSE );
- return( FALSE );
+ _HAssert( false );
+ return( false );
}
the_size = _Heap_Block_size( the_block );
next_block = _Heap_Block_at( the_block, the_size );
if ( !_Heap_Is_block_in( the_heap, next_block ) ) {
- _HAssert( FALSE );
- return( FALSE );
+ _HAssert( false );
+ return( false );
}
if ( !_Heap_Is_prev_used( next_block ) ) {
- _HAssert( FALSE );
- return( FALSE );
+ _HAssert( false );
+ return( false );
}
next_size = _Heap_Block_size( next_block );
@@ -82,15 +82,15 @@ bool _Heap_Free(
Heap_Block *const prev_block = _Heap_Block_at( the_block, -prev_size );
if ( !_Heap_Is_block_in( the_heap, prev_block ) ) {
- _HAssert( FALSE );
- return( FALSE );
+ _HAssert( false );
+ return( false );
}
/* As we always coalesce free blocks, the block that preceedes prev_block
must have been used. */
if ( !_Heap_Is_prev_used ( prev_block) ) {
- _HAssert( FALSE );
- return( FALSE );
+ _HAssert( false );
+ return( false );
}
if ( next_is_free ) { /* coalesce both */
@@ -133,5 +133,5 @@ bool _Heap_Free(
stats->free_size += the_size;
stats->frees += 1;
- return( TRUE );
+ return( true );
}