-> Fix for last few commits

New memory allocator broke compilation on
GCC/Linux. Fixed
This commit is contained in:
Geoffrey Bantle
2008-06-01 18:43:22 +00:00
parent 33321d13d3
commit 85e77e53ef
2 changed files with 6 additions and 8 deletions

View File

@@ -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

View File

@@ -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;