[libvirt] [PATCHv2] maint: balance {} usage

Peter Krempa pkrempa at redhat.com
Mon Mar 24 18:54:26 UTC 2014


On 03/24/14 19:50, Eric Blake wrote:
> Emacs gets lost when finding function boundaries when #ifdef
> sections do not have balanced {}.
> 
> * libvirt-override.c (libvirt_PyString_Check): New define.
> (virPyDictToTypedParams): Avoid unbalanced {} across ifdef.
> 
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
> 
> v2: Hoisting #ifdefs outside of function bodies makes it nicer
> 
>  libvirt-override.c | 14 ++++++++------
>  1 file changed, 8 insertions(+), 6 deletions(-)
> 

much nicer, ACK.

Peter


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140324/f77944a6/attachment-0001.sig>


More information about the libvir-list mailing list