Changeset 55d7626 in rtems for cpukit/score/src/heapfree.c
- Timestamp:
- 07/11/07 20:56:10 (15 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 9190d236
- Parents:
- 68b9f58
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/src/heapfree.c
r68b9f58 r55d7626 2 2 * Heap Handler 3 3 * 4 * COPYRIGHT (c) 1989- 1999.4 * COPYRIGHT (c) 1989-2007. 5 5 * On-Line Applications Research Corporation (OAR). 6 6 * … … 41 41 ) 42 42 { 43 Heap_Block 44 Heap_Block 43 Heap_Block *the_block; 44 Heap_Block *next_block; 45 45 uint32_t the_size; 46 46 uint32_t next_size; 47 47 Heap_Statistics *const stats = &the_heap->stats; 48 boolean next_is_free; 48 boolean next_is_free; 49 50 if ( !_Addresses_Is_in_range( 51 starting_address, (void *)the_heap->start, (void *)the_heap->final ) ) { 52 _HAssert(starting_address != NULL); 53 return( FALSE ); 54 } 49 55 50 56 _Heap_Start_of_block( the_heap, starting_address, &the_block ); 51 57 52 58 if ( !_Heap_Is_block_in( the_heap, the_block ) ) { 53 _HAssert(starting_address == NULL); 54 _HAssert(FALSE); 59 _HAssert( FALSE ); 55 60 return( FALSE ); 56 61 } … … 60 65 61 66 if ( !_Heap_Is_block_in( the_heap, next_block ) ) { 62 _HAssert( FALSE);67 _HAssert( FALSE ); 63 68 return( FALSE ); 64 69 } 65 70 66 71 if ( !_Heap_Is_prev_used( next_block ) ) { 67 _HAssert( FALSE);72 _HAssert( FALSE ); 68 73 return( FALSE ); 69 74 } … … 78 83 79 84 if ( !_Heap_Is_block_in( the_heap, prev_block ) ) { 80 _HAssert( FALSE);85 _HAssert( FALSE ); 81 86 return( FALSE ); 82 87 } … … 85 90 must have been used. */ 86 91 if ( !_Heap_Is_prev_used ( prev_block) ) { 87 _HAssert( FALSE);92 _HAssert( FALSE ); 88 93 return( FALSE ); 89 94 }
Note: See TracChangeset
for help on using the changeset viewer.