Re: [PATCH] Move comment after enum members

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

 



On 01/09/2013 07:20 AM, Claudio Bley wrote:
> The api builder always associates comments to the last member it read,
> not to the current member even if there was a comment for the previous
> member and a comma was already seen.
> 
> This has the effect that the comment for the previous member gets
> overwritten and the current member has no comment at all.
> 
> Signed-off-by: Claudio Bley <cbley@xxxxxxxxxx>
> ---
>  include/libvirt/libvirt.h.in |   18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
> index 09c89c5..9110fcf 100644
> --- a/include/libvirt/libvirt.h.in
> +++ b/include/libvirt/libvirt.h.in
> @@ -127,12 +127,12 @@ typedef enum {
>                                      power management */
>  
>  #ifdef VIR_ENUM_SENTINELS
> -    /*
> -     * NB: this enum value will increase over time as new events are
> -     * added to the libvirt API. It reflects the last state supported
> -     * by this version of the libvirt API.
> -     */
>       VIR_DOMAIN_LAST
> +     /*

You changed indentation from 4 to 5; please fix that.  Oh, I see why -
VIR_DOMAIN_LAST is incorrectly indented to begin with.

> +      * NB: this enum value will increase over time as new events are
> +      * added to the libvirt API. It reflects the last state supported
> +      * by this version of the libvirt API.
> +      */
>  #endif
>  } virDomainState;

Hmm, I wonder if we should instead fix the doc-generation parser.  I'm
used to the style:

ONE, /* short comment for one */
/* longer comment for two */
TWO,
THREE, /* and short for three again */

But I guess I could live with this patch, if the style is forced on us
by the doc generator.  Anyone else with an opinion?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]