Use size_t for heap-sizes.

This commit is contained in:
Ralf Corsepius
2007-02-11 04:52:59 +00:00
parent 832310a7b2
commit fbbfad9a8b
4 changed files with 8 additions and 8 deletions

View File

@@ -282,7 +282,7 @@ uint32_t _Heap_Initialize(
Heap_Extend_status _Heap_Extend(
Heap_Control *the_heap,
void *starting_address,
uint32_t size,
size_t size,
uint32_t *amount_extended
);
@@ -297,7 +297,7 @@ Heap_Extend_status _Heap_Extend(
*/
void *_Heap_Allocate(
Heap_Control *the_heap,
uint32_t size
size_t size
);
/**
@@ -450,8 +450,8 @@ void _Heap_Get_free_information(
*
* @return This method returns block size on success, 0 if overflow occured.
*/
extern uint32_t _Heap_Calc_block_size(
uint32_t size,
extern size_t _Heap_Calc_block_size(
size_t size,
uint32_t page_size,
uint32_t min_size
);

View File

@@ -205,8 +205,8 @@ uint32_t _Heap_Initialize(
* Convert user requested 'size' of memory block to the block size.
* Return block size on success, 0 if overflow occured
*/
uint32_t _Heap_Calc_block_size(
uint32_t size,
size_t _Heap_Calc_block_size(
size_t size,
uint32_t page_size,
uint32_t min_size)
{

View File

@@ -36,7 +36,7 @@
void *_Heap_Allocate(
Heap_Control *the_heap,
uint32_t size
size_t size
)
{
uint32_t the_size;

View File

@@ -38,7 +38,7 @@
Heap_Extend_status _Heap_Extend(
Heap_Control *the_heap,
void *starting_address,
uint32_t size,
size_t size,
uint32_t *amount_extended
)
{