From 4c94c9e3f6b0f403603b78ddf7a96d6d7c3cb83e Mon Sep 17 00:00:00 2001 From: Robert Sipka Date: Tue, 9 Feb 2016 14:38:02 +0100 Subject: [PATCH] Add forward declaration for mem_pool_chunk struct. JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com --- jerry-core/mem/mem-poolman.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jerry-core/mem/mem-poolman.cpp b/jerry-core/mem/mem-poolman.cpp index 7f0936cda3..ab210d19a1 100644 --- a/jerry-core/mem/mem-poolman.cpp +++ b/jerry-core/mem/mem-poolman.cpp @@ -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