|
@@ -38,7 +38,9 @@ typedef struct block_header_s {
|
|
|
size_t size; /**< The LSB represents the availability of the block (1
|
|
|
for used, 0 for free), the rest the size of the data
|
|
|
part. */
|
|
|
+#ifdef FUTURE_FEATURES
|
|
|
size_t requested_size; /**< The requested size of the data part */
|
|
|
+#endif /* FUTURE_FEATURES */
|
|
|
size_t previous_size; /**< The LSB represents the availability of the
|
|
|
previous block, the rest the size of the data
|
|
|
part of the previous block in the memory space */
|
|
@@ -71,6 +73,7 @@ block_header_t * get_header(void *ptr);
|
|
|
*/
|
|
|
size_t get_size(void *ptr);
|
|
|
|
|
|
+#ifdef FUTURE_FEATURES
|
|
|
/**
|
|
|
* Get the requested size of the memory block's data
|
|
|
*
|
|
@@ -80,6 +83,7 @@ size_t get_size(void *ptr);
|
|
|
* block.
|
|
|
*/
|
|
|
size_t get_requested_size(void *ptr);
|
|
|
+#endif /* FUTURE_FEATURES */
|
|
|
|
|
|
/**
|
|
|
* Get all information of the memory block header's size record
|
|
@@ -107,6 +111,7 @@ void set_size_and_free(void *ptr, size_t size);
|
|
|
*/
|
|
|
void set_size_and_used(void *ptr, size_t size);
|
|
|
|
|
|
+#ifdef FUTURE_FEATURES
|
|
|
/**
|
|
|
* Set the requested size of memory block's data
|
|
|
*
|
|
@@ -115,6 +120,7 @@ void set_size_and_used(void *ptr, size_t size);
|
|
|
* block.
|
|
|
*/
|
|
|
void set_requested_size(void *ptr, size_t size);
|
|
|
+#endif /* FUTURE_FEATURES */
|
|
|
|
|
|
/**
|
|
|
* Mark the memory block as used
|