~diresu/blender/blender-command-port

« back to all changes in this revision

Viewing changes to source/blender/blenlib/BLI_memarena.h

  • Committer: campbellbarton
  • Date: 2008-11-12 22:35:58 UTC
  • Revision ID: vcs-imports@canonical.com-20081112223558-e8wjh36aaoztzevd
2 utility functions added for projection painting.
* BLI_linklist_index() - to get an items index in a  LinkList
* BLI_memarena_use_malloc() - BLI_memarena_use_calloc alredy existed but there was no way to switch back to malloc.

also added texnodes to cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* 
2
2
 * Memory arena ADT
3
3
 * 
4
 
 * $Id: BLI_memarena.h 14444 2008-04-16 22:40:48Z hos $
 
4
 * $Id: BLI_memarena.h 17435 2008-11-12 22:35:58Z campbellbarton $
5
5
 *
6
6
 * ***** BEGIN GPL LICENSE BLOCK *****
7
7
 *
50
50
struct MemArena*        BLI_memarena_new        (int bufsize);
51
51
void                            BLI_memarena_free       (struct MemArena *ma);
52
52
 
 
53
void                            BLI_memarena_use_malloc (struct MemArena *ma);
53
54
void                            BLI_memarena_use_calloc (struct MemArena *ma);
54
55
 
55
56
void*                           BLI_memarena_alloc      (struct MemArena *ma, int size);