Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-02 02:59:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-02 02:59:18 +0400
commitbc767059cb21d2763067e304f6905c11c4eb5074 (patch)
tree2342a07cd1fb30a9c83024909c3139e271a0a995 /source/blender/blenlib/BLI_mempool.h
parent921a7556fbc4c66267137b767ce93c85d9b4cbd8 (diff)
Code Cleanup: update to mempool, use flag rather then bool args.
Diffstat (limited to 'source/blender/blenlib/BLI_mempool.h')
-rw-r--r--source/blender/blenlib/BLI_mempool.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h
index 0b190c63559..ea3305ab04b 100644
--- a/source/blender/blenlib/BLI_mempool.h
+++ b/source/blender/blenlib/BLI_mempool.h
@@ -48,8 +48,7 @@ typedef struct BLI_mempool BLI_mempool;
* first four bytes of the elements never contain the character string
* 'free'. use with care.*/
-BLI_mempool *BLI_mempool_create(int esize, int tote, int pchunk,
- short use_sysmalloc, short allow_iter);
+BLI_mempool *BLI_mempool_create(int esize, int tote, int pchunk, int flag);
void *BLI_mempool_alloc(BLI_mempool *pool);
void *BLI_mempool_calloc(BLI_mempool *pool);
void BLI_mempool_free(BLI_mempool *pool, void *addr);
@@ -65,6 +64,12 @@ typedef struct BLI_mempool_iter {
int curindex;
} BLI_mempool_iter;
+/* flag */
+enum {
+ BLI_MEMPOOL_SYSMALLOC = (1 << 0),
+ BLI_MEMPOOL_ALLOW_ITER = (1 << 1)
+};
+
void BLI_mempool_iternew(BLI_mempool *pool, BLI_mempool_iter *iter);
void *BLI_mempool_iterstep(BLI_mempool_iter *iter);