Skip to content

Commit abc95d3

Browse files
robertsipkaLaszloLango
authored andcommitted
Add forward declaration for mem_pool_chunk struct.
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
1 parent 094b182 commit abc95d3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

jerry-core/mem/mem-poolman.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,15 @@ size_t mem_free_chunks_number;
5252
*/
5353
typedef uint8_t mem_pool_chunk_index_t;
5454

55+
/**
56+
* Type for mem_pool_chunk
57+
*/
58+
typedef struct mem_pool_chunk mem_pool_chunk_t;
59+
5560
/**
5661
* Pool chunk
5762
*/
58-
typedef struct mem_pool_chunk_t
63+
struct mem_pool_chunk
5964
{
6065
/**
6166
* Union of possible free chunk layouts
@@ -102,7 +107,7 @@ typedef struct mem_pool_chunk_t
102107
*/
103108
uint8_t allocated_area[MEM_POOL_CHUNK_SIZE];
104109
} u;
105-
} mem_pool_chunk_t;
110+
} mem_pool_chunk;
106111

107112
/**
108113
* The condition is assumed when using pointer arithmetics on (mem_pool_chunk_t *) pointer type

0 commit comments

Comments
 (0)