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-02-29 19:00:37 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-29 19:00:37 +0400
commit7cc206ddca5fd240f87210d6dfb311c81ca4ac65 (patch)
treea4dfc6d6dd1a21c9016390d339855a19d16ee335 /source/blender/blenlib/BLI_mempool.h
parent0cec655b290b1151087b86c37cc1f51b7d58f261 (diff)
Code Cleanup: remove non existing function declarations.
added some missing functions too - which are not used yep but should be there for api completeness. * CDDM_set_mloop * CDDM_set_mpoly * BLI_mempool_count
Diffstat (limited to 'source/blender/blenlib/BLI_mempool.h')
-rw-r--r--source/blender/blenlib/BLI_mempool.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h
index d80d46e9ae5..0b190c63559 100644
--- a/source/blender/blenlib/BLI_mempool.h
+++ b/source/blender/blenlib/BLI_mempool.h
@@ -44,17 +44,17 @@ struct BLI_mempool_chunk;
typedef struct BLI_mempool BLI_mempool;
-/*allow_iter allows iteration on this mempool. note: this requires that the
- first four bytes of the elements never contain the character string
- 'free'. use with care.*/
+/* allow_iter allows iteration on this mempool. note: this requires that the
+ * 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);
void *BLI_mempool_alloc(BLI_mempool *pool);
void *BLI_mempool_calloc(BLI_mempool *pool);
-void BLI_mempool_free(BLI_mempool *pool, void *addr);
-void BLI_mempool_destroy(BLI_mempool *pool);
-int BLI_mempool_count(BLI_mempool *pool);
+void BLI_mempool_free(BLI_mempool *pool, void *addr);
+void BLI_mempool_destroy(BLI_mempool *pool);
+int BLI_mempool_count(BLI_mempool *pool);
void *BLI_mempool_findelem(BLI_mempool *pool, int index);
/** iteration stuff. note: this may easy to produce bugs with **/
@@ -65,11 +65,7 @@ typedef struct BLI_mempool_iter {
int curindex;
} BLI_mempool_iter;
-/*allow iteration on this mempool. note: this requires that the
- first four bytes of the elements never contain the character string
- 'free'. use with care.*/
-void BLI_mempool_allow_iter(BLI_mempool *pool);
-void BLI_mempool_iternew(BLI_mempool *pool, BLI_mempool_iter *iter);
+void BLI_mempool_iternew(BLI_mempool *pool, BLI_mempool_iter *iter);
void *BLI_mempool_iterstep(BLI_mempool_iter *iter);
#ifdef __cplusplus