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

Re: [Libguestfs] [PATCH 1/3] gobject: NFC generated code formatting fix



On Thu, Apr 26, 2012 at 11:44:50AM +0100, Matthew Booth wrote:
> ---
>  generator/generator_gobject.ml |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/generator/generator_gobject.ml b/generator/generator_gobject.ml
> index e4c175b..48ddbf0 100644
> --- a/generator/generator_gobject.ml
> +++ b/generator/generator_gobject.ml
> @@ -391,7 +391,7 @@ let generate_gobject_optargs_source name optargs flags () =
>    pr "G_DEFINE_TYPE(%s, guestfs_%s, G_TYPE_OBJECT);\n\n" camel_name name;
>  
>    pr "enum {\n";
> -  pr "PROP_GUESTFS_%s_PROP0" uc_name;
> +  pr "  PROP_GUESTFS_%s_PROP0" uc_name;
>    List.iter (
>      fun optargt ->
>        let uc_optname = String.uppercase (name_of_optargt optargt) in
> -- 
> 1.7.10

ACK.

Fixes an obvious problem with formatting in the output:

enum {
PROP_GUESTFS_UMOUNT_LOCAL_PROP0,
  PROP_GUESTFS_UMOUNT_LOCAL_RETRY
};

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v


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