aboutsummaryrefslogtreecommitdiff
path: root/jerry-core
diff options
context:
space:
mode:
authorRobert Sipka <rsipka.uszeged@partner.samsung.com>2016-02-09 14:38:02 +0100
committerLászló Langó <llango.u-szeged@partner.samsung.com>2016-02-09 16:01:01 +0100
commitabc95d3db89cb0f254173e93ef1c879bc8b9e91c (patch)
tree2918c06fc3b7b35e5d51a9cb707db2a1bec68a5c /jerry-core
parent094b182e96c898d5b752346a0febfd5faf76d60c (diff)
Add forward declaration for mem_pool_chunk struct.
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
Diffstat (limited to 'jerry-core')
-rw-r--r--jerry-core/mem/mem-poolman.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/jerry-core/mem/mem-poolman.cpp b/jerry-core/mem/mem-poolman.cpp
index 7f0936cd..ab210d19 100644
--- a/jerry-core/mem/mem-poolman.cpp
+++ b/jerry-core/mem/mem-poolman.cpp
@@ -53,9 +53,14 @@ 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