]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Implement variable length structure allocator
authorDavid Allan <dallan@redhat.com>
Mon, 5 Apr 2010 17:11:34 +0000 (13:11 -0400)
committerDavid Allan <dallan@redhat.com>
Wed, 14 Apr 2010 04:46:13 +0000 (00:46 -0400)
commit62170b995286a6a9ee14784d1b7256322ed02fbb
tree7eb1164b1c85144e027b47c85b2428261538900f
parentc593aef7bc449c0120d2054532941a6bfea64d34
Implement variable length structure allocator

* This patch implements a memory allocator to obtain memory for
  structures whose last member is a variable length array.  C99 refers
  to these variable length objects as structs containing flexible
  array members.
* Fixed macro parentheses per Eric Blake
src/util/memory.c
src/util/memory.h