Skip to content

Add forward declaration for mem_pool_chunk struct. #860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions jerry-core/mem/mem-poolman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down