Re: [PATCH] remote generator: Add skipgen/autogen flags to .x files

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

 



2011/5/12 Eric Blake <eblake@xxxxxxxxxx>:
> On 05/11/2011 01:28 PM, Matthias Bolte wrote:
>> Make procedure parsing more robust, by allowing arbitrary
>> amounts of whitespaces.
>>
>> Also make some error messages more verbose.
>> ---
>> Âcfg.mk            |  Â2 +-
>> Âdaemon/remote_generator.pl  | Â165 ++++-----------
>> Âsrc/remote/qemu_protocol.x  |  Â5 +-
>> Âsrc/remote/remote_protocol.x | Â463 +++++++++++++++++++++---------------------
>> Â4 files changed, 282 insertions(+), 353 deletions(-)
>>
>> diff --git a/cfg.mk b/cfg.mk
>> index 9ee0dd0..f0ca000 100644
>> --- a/cfg.mk
>> +++ b/cfg.mk
>> @@ -614,7 +614,7 @@ exclude_file_name_regexp--sc_prohibit_asprintf = \
>> Âexclude_file_name_regexp--sc_prohibit_can_not = ^po/
>>
>> Âexclude_file_name_regexp--sc_prohibit_close = \
>> - Â(\.py$$|^docs/|(src/util/files\.c|src/libvirt\.c)$$)
>> + Â(\.py$$|^docs/|(src/util/files\.c|src/libvirt\.c|daemon/remote_generator\.pl)$$)
>
> How about we just exempt _all_ .pl, like we did for .py? ÂReally, the
> rule for requiring VIR_CLOSE is intended only for C sources.
>
> Â (\.p[yl]$$|^docs/|(src/util/files\.c|src/libvirt\.c)$$)
>
>> - Â ÂREMOTE_PROC_DOMAIN_INJECT_NMI = 210
>> + Â Â/* Each function must have a two-word comment. ÂThe first word is
>> + Â Â * whether remote_generator.pl handles daemon, the second whether
>> + Â Â * it handles src/remote. Â*/
>> + Â ÂREMOTE_PROC_OPEN = 1, /* skipgen skipgen */
>
>> + Â ÂREMOTE_PROC_DOMAIN_INJECT_NMI = 210 /* autogen autogen */
>>
>> Â Â Â/*
>> Â Â Â * Notice how the entries are grouped in sets of 10 ?
>
> Might I suggest repeating the comment about the two-word comment at the
> bottom of the list? ÂAfter all, you don't want to have to scroll back
> through 210+ lines just to remind yourself which word applies to which
> generator, and we only ever add to the bottom of the list.
>
> ACK with those nits fixed.
>

Thanks, fixed and pushed.

Matthias

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