On Wed, Nov 17, 2010 at 09:28:53PM -0700, Eric Blake wrote: > * src/util/memory.h (VIR_REALLOC_N): Update docs. > (VIR_EXPAND_N, VIR_SHRINK_N): New macros. > (virAlloc, virAllocN, virReallocN, virAllocVar, virFree): Add some > gcc attributes. > * src/util/memory.c (virExpandN, virShrinkN): New functions. > (virReallocN): Update docs. > * docs/hacking.html.in: Prefer newer interfaces over > VIR_REALLOC_N, since uninitialized memory can bite us. > * HACKING: Regenerate. > * src/libvirt_private.syms: Export new helpers. > --- > HACKING | 24 +++++++++++------- > docs/hacking.html.in | 25 +++++++++++------- > src/libvirt_private.syms | 2 + > src/util/memory.c | 59 +++++++++++++++++++++++++++++++++++++++++++++- > src/util/memory.h | 51 +++++++++++++++++++++++++++++++++++---- > 5 files changed, 134 insertions(+), 27 deletions(-) ACK, was just wondering where this patch had been ! Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list