-> Fix for last few commits
New memory allocator broke compilation on GCC/Linux. Fixed
This commit is contained in:
@@ -53,8 +53,12 @@ struct BME_Poly;
|
||||
struct BME_Loop;
|
||||
|
||||
|
||||
struct BME_mempool;
|
||||
typedef struct BME_mempool BME_mempool;
|
||||
/*structure for fast memory allocation/frees*/
|
||||
typedef struct BME_mempool{
|
||||
struct ListBase chunks;
|
||||
int esize, csize, pchunk; /*size of elements and chunks in bytes and number of elements per chunk*/
|
||||
struct BME_freenode *free; /*free element list. Interleaved into chunk datas.*/
|
||||
}BME_mempool;
|
||||
|
||||
/*Custom Data Types and defines
|
||||
Eventual plan is to move almost everything to custom data and let caller
|
||||
|
||||
@@ -57,12 +57,6 @@ typedef struct BME_freenode{
|
||||
struct BME_freenode *next;
|
||||
}BME_freenode;
|
||||
|
||||
typedef struct BME_mempool{
|
||||
struct ListBase chunks;
|
||||
int esize, csize, pchunk; /*size of elements and chunks in bytes and number of elements per chunk*/
|
||||
struct BME_freenode *free; /*free element list. Interleaved into chunk datas.*/
|
||||
}BME_mempool;
|
||||
|
||||
BME_mempool *BME_mempool_create(int esize, int tote, int pchunk)
|
||||
{ BME_mempool *pool = NULL;
|
||||
BME_freenode *lasttail = NULL, *curnode = NULL;
|
||||
|
||||
Reference in New Issue
Block a user