]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
maint: avoid unbalanced {} across vbox #ifdef
authorEric Blake <eblake@redhat.com>
Tue, 18 Mar 2014 20:10:27 +0000 (14:10 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 18 Mar 2014 20:28:05 +0000 (14:28 -0600)
commitb0b5422115d737d123721e80d5fa3aa1029138fe
tree721287fb486681b877eacb22e6c0bb5ea35851aa
parentc0c8c1d7bb53e0420f8573ea961ef7e19b7fff85
maint: avoid unbalanced {} across vbox #ifdef

Emacs is fairly good about navigating across function and scope
boundaries, provided that the code has balanced {}.  The vbox
code, however, violated that premise, by splitting 'if () {'
across several #ifdef branches, but sharing the '} else {...}'
outside of the branches.  The extra lines of code is worth my
sanity, in a function that is already a horrendous 1100+ lines
long.

* src/vbox/vbox_tmpl.c (vboxDomainGetXMLDesc) Duplicate code
rather than trying to share else branch across #ifdef.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/vbox/vbox_tmpl.c