[libvirt] PATCH: Clean up QEMU driver argv builder

Daniel Veillard veillard at redhat.com
Thu May 22 23:00:50 UTC 2008


On Thu, May 22, 2008 at 05:34:19PM +0100, Daniel P. Berrange wrote:
> Daniel pointed out that the way we build up the QEMU argv strnig is becoming
> rather unscalable / error prone. This patch refactors it into to use a short
> macro to do memory allocation/reallocation, which clears it up quite nicely

  Yup, thanks a lot, easier to read and check ! +1

I always feel a bit surprized by macro defined within functions, but
I don't have a good rationale for not doing this :-) (maybe not suggest
the scope might be limited to the function)

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/




More information about the libvir-list mailing list