Add forward declaration for mem_pool_chunk struct.

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
Robert Sipka 2016-02-09 14:38:02 +01:00 committed by László Langó
parent 094b182e96
commit abc95d3db8

View File

@ -52,10 +52,15 @@ size_t mem_free_chunks_number;
*/
typedef uint8_t mem_pool_chunk_index_t;
/**
* Type for mem_pool_chunk
*/
typedef struct mem_pool_chunk mem_pool_chunk_t;
/**
* Pool chunk
*/
typedef struct mem_pool_chunk_t
struct mem_pool_chunk
{
/**
* Union of possible free chunk layouts
@ -102,7 +107,7 @@ typedef struct mem_pool_chunk_t
*/
uint8_t allocated_area[MEM_POOL_CHUNK_SIZE];
} u;
} mem_pool_chunk_t;
} mem_pool_chunk;
/**
* The condition is assumed when using pointer arithmetics on (mem_pool_chunk_t *) pointer type