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