summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/heap.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-03-29 16:41:13 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-03-29 16:41:13 +0000
commitd6154c70dc048e21aae907fd053a1e7a1d155408 (patch)
tree9ecb1475f4432a19f423da0ff73fbec9a87536af /cpukit/score/include/rtems/score/heap.h
parent2004-03-29 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-d6154c70dc048e21aae907fd053a1e7a1d155408.tar.bz2
2004-03-29 Ralf Corsepius <ralf_corsepius@rtems.org>
* score/include/rtems/debug.h, score/include/rtems/score/bitfield.h, score/include/rtems/score/chain.h, score/include/rtems/score/coremsg.h, score/include/rtems/score/coremutex.h, score/include/rtems/score/coresem.h, score/include/rtems/score/heap.h, score/include/rtems/score/interr.h, score/include/rtems/score/isr.h, score/include/rtems/score/mpci.h, score/include/rtems/score/mppkt.h, score/include/rtems/score/object.h, score/include/rtems/score/objectmp.h, score/include/rtems/score/priority.h, score/include/rtems/score/stack.h, score/include/rtems/score/states.h, score/include/rtems/score/thread.h, score/include/rtems/score/threadmp.h, score/include/rtems/score/threadq.h, score/include/rtems/score/tod.h, score/include/rtems/score/tqdata.h, score/include/rtems/score/userext.h, score/include/rtems/score/watchdog.h, score/include/rtems/score/wkspace.h, score/inline/rtems/score/address.inl, score/inline/rtems/score/coremsg.inl, score/inline/rtems/score/coresem.inl, score/inline/rtems/score/heap.inl, score/inline/rtems/score/isr.inl, score/inline/rtems/score/object.inl, score/inline/rtems/score/priority.inl, score/inline/rtems/score/stack.inl, score/inline/rtems/score/thread.inl, score/inline/rtems/score/tqdata.inl, score/inline/rtems/score/userext.inl, score/inline/rtems/score/wkspace.inl, score/macros/rtems/score/address.inl, score/macros/rtems/score/heap.inl, score/macros/rtems/score/object.inl, score/macros/rtems/score/priority.inl, score/macros/rtems/score/userext.inl: Convert to using c99 fixed size types.
Diffstat (limited to 'cpukit/score/include/rtems/score/heap.h')
-rw-r--r--cpukit/score/include/rtems/score/heap.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/cpukit/score/include/rtems/score/heap.h b/cpukit/score/include/rtems/score/heap.h
index a0d477ed25..20231b31ad 100644
--- a/cpukit/score/include/rtems/score/heap.h
+++ b/cpukit/score/include/rtems/score/heap.h
@@ -50,10 +50,10 @@ typedef enum {
*/
typedef struct {
- unsigned32 free_blocks;
- unsigned32 free_size;
- unsigned32 used_blocks;
- unsigned32 used_size;
+ uint32_t free_blocks;
+ uint32_t free_size;
+ uint32_t used_blocks;
+ uint32_t used_size;
} Heap_Information_block;
/*
@@ -82,7 +82,7 @@ typedef struct {
*/
#define HEAP_OVERHEAD \
- (sizeof( unsigned32 ) * 2) /* size dummy first and last blocks */
+ (sizeof( uint32_t ) * 2) /* size dummy first and last blocks */
#define HEAP_BLOCK_USED_OVERHEAD \
(sizeof( void * ) * 2) /* num bytes overhead in used block */
#define HEAP_MINIMUM_SIZE \
@@ -107,8 +107,8 @@ typedef struct {
typedef struct Heap_Block_struct Heap_Block;
struct Heap_Block_struct {
- unsigned32 back_flag; /* size and status of prev block */
- unsigned32 front_flag; /* size and status of block */
+ uint32_t back_flag; /* size and status of prev block */
+ uint32_t front_flag; /* size and status of block */
Heap_Block *next; /* pointer to next block */
Heap_Block *previous; /* pointer to previous block */
};
@@ -134,8 +134,8 @@ typedef struct {
Heap_Block *first; /* pointer to first block in heap */
Heap_Block *permanent_null; /* always NULL pointer */
Heap_Block *last; /* pointer to last block in heap */
- unsigned32 page_size; /* allocation unit */
- unsigned32 reserved;
+ uint32_t page_size; /* allocation unit */
+ uint32_t reserved;
} Heap_Control;
/*
@@ -149,11 +149,11 @@ typedef struct {
* page_size byte units.
*/
-unsigned32 _Heap_Initialize(
+uint32_t _Heap_Initialize(
Heap_Control *the_heap,
void *starting_address,
- unsigned32 size,
- unsigned32 page_size
+ uint32_t size,
+ uint32_t page_size
);
/*
@@ -168,8 +168,8 @@ unsigned32 _Heap_Initialize(
Heap_Extend_status _Heap_Extend(
Heap_Control *the_heap,
void *starting_address,
- unsigned32 size,
- unsigned32 *amount_extended
+ uint32_t size,
+ uint32_t *amount_extended
);
/*
@@ -186,7 +186,7 @@ Heap_Extend_status _Heap_Extend(
void *_Heap_Allocate(
Heap_Control *the_heap,
- unsigned32 size
+ uint32_t size
);
/*
@@ -202,7 +202,7 @@ void *_Heap_Allocate(
boolean _Heap_Size_of_user_area(
Heap_Control *the_heap,
void *starting_address,
- unsigned32 *size
+ uint32_t *size
);
/*