Re: [PATCH 2/7] vbox: factor a large function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/9/1 Eric Blake <eblake@xxxxxxxxxx>:
> * src/vbox/vbox_tmpl.c (vboxDomainDefineXML): Split...
> (vboxSetBootDeviceOrder, vboxAttachDrives, vboxAttachSound)
> (vboxAttachNetwork, vboxAttachSerial, vboxAttachParallel)
> (vboxAttachVideo, vboxAttachDisplay, vboxAttachUSB): ...into new
> helper functions.
> ---
>
> Should be no functional changes - just breaking up a HUGE function
> into more manageable chunks with less indentation.
>
> In reviewing this, it may help to apply the patch and use
> 'git diff -b'.
>

That helps a lot and it reveals that a major part of the remaining
diff is just breaking long lines. You could have split that into a
separate patch, but it's okay as it is.

ACK.

Mathias

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]