Blender Git Loki

Git Commits -> Revision 9190c49

Revision 9190c49 by Campbell Barton (master)
January 2, 2013, 05:00 (GMT)
extend BLI_buffer
- add option to calloc or not, existing code wasnt consistent here, would calloc on first alloc but not on realloc, also - the static memory was never zero'd.
use flag BLI_BUFFER_USE_CALLOC to ensure all new memory is zero'd (static/alloc/realloc's).

- add BLI_buffer_declare_static / BLI_buffer_declare so its possible to have a buffer that never uses static memory.

Commit Details:

Full Hash: 9190c493c17b09dc52b96bb46439d03df086ad7c
SVN Revision: 53503
Parent Commit: a8a60c6
Lines Changed: +68, -24

3 Modified Paths:

/source/blender/blenkernel/intern/pbvh_bmesh.c (+3, -2) (Diff)
/source/blender/blenlib/BLI_buffer.h (+31, -11) (Diff)
/source/blender/blenlib/intern/buffer.c (+34, -11) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021